feat(docker): add the docker role (#522)
Extracted from the environment repository, wave 1. Scrubbed of private references: namespace mortis, no repository paths or issue numbers in comments and docs, the removed docker_ufw_rules guard dropped, the molecule scenario uses the FQCN and no provisioner environment overrides. ansible-lint mocks the role's FQCN because CI checks the Collection out outside an ansible_collections path. Verified: the commit hooks. Not verified: the molecule scenario (CI only). Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
This commit is contained in:
1 parent
903a1a2e5a
commit
aad59fc339
17 files changed
+774
No files matched your search
@@ -0,0 +1,30 @@
|
||||
---
|
||||
- name: Remove Docker (explicit only)
|
||||
ansible.builtin.include_tasks: remove.yml
|
||||
when: docker_remove | default(false) | bool
|
||||
tags: [docker, remove]
|
||||
|
||||
- name: Install Docker Engine
|
||||
ansible.builtin.include_tasks: install.yml
|
||||
when: not (docker_remove | default(false) | bool)
|
||||
tags: [docker, install]
|
||||
|
||||
- name: Ensure Docker Engine is up-to-date
|
||||
ansible.builtin.include_tasks: update.yml
|
||||
when:
|
||||
- not (docker_remove | default(false) | bool)
|
||||
- docker_update | bool
|
||||
tags: [docker, update]
|
||||
|
||||
- name: Add configured users to the docker group
|
||||
become: true
|
||||
ansible.builtin.user:
|
||||
name: "{{ item }}"
|
||||
groups: "{{ docker_group }}"
|
||||
append: true
|
||||
loop: "{{ docker_users }}"
|
||||
when: not (docker_remove | default(false) | bool)
|
||||
tags: [docker, configure]
|
||||
|
||||
- name: Flush handlers
|
||||
ansible.builtin.meta: flush_handlers
|
||||
Reference in new issue
Block a user