feat: remove become from playbook
Some checks failed
test / Linting (push) Successful in 35s
test / Molecule tests (default, debian11) (push) Successful in 1m39s
test / Molecule tests (default, ubuntu2204) (push) Successful in 2m4s
test / Molecule tests (default, ubuntu2004) (push) Successful in 3m27s
test / Molecule tests (with_custom_config, ubuntu2204) (push) Has been cancelled
test / Molecule tests (with_custom_config, ubuntu2004) (push) Has been cancelled
test / Molecule tests (with_custom_config, debian11) (push) Has been cancelled
test / Molecule tests (with_custom_config, debian12) (push) Has been cancelled
test / Molecule tests (default, debian12) (push) Successful in 2m52s
Some checks failed
test / Linting (push) Successful in 35s
test / Molecule tests (default, debian11) (push) Successful in 1m39s
test / Molecule tests (default, ubuntu2204) (push) Successful in 2m4s
test / Molecule tests (default, ubuntu2004) (push) Successful in 3m27s
test / Molecule tests (with_custom_config, ubuntu2204) (push) Has been cancelled
test / Molecule tests (with_custom_config, ubuntu2004) (push) Has been cancelled
test / Molecule tests (with_custom_config, debian11) (push) Has been cancelled
test / Molecule tests (with_custom_config, debian12) (push) Has been cancelled
test / Molecule tests (default, debian12) (push) Successful in 2m52s
This commit is contained in:
parent
c1d5913bcc
commit
3daa587e89
@ -4,13 +4,11 @@
|
|||||||
ansible.builtin.service:
|
ansible.builtin.service:
|
||||||
name: docker
|
name: docker
|
||||||
enabled: true
|
enabled: true
|
||||||
become: true
|
|
||||||
listen: "systemctl-enable-docker"
|
listen: "systemctl-enable-docker"
|
||||||
|
|
||||||
- name: "Reload docker service"
|
- name: "Reload docker service"
|
||||||
ansible.builtin.service:
|
ansible.builtin.service:
|
||||||
name: docker
|
name: docker
|
||||||
state: reloaded
|
state: reloaded
|
||||||
become: true
|
|
||||||
listen: "systemctl-reload-docker"
|
listen: "systemctl-reload-docker"
|
||||||
when: install_docker_start_service
|
when: install_docker_start_service
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
- name: Converge
|
- name: Converge
|
||||||
hosts: all
|
hosts: all
|
||||||
|
become: true
|
||||||
tasks:
|
tasks:
|
||||||
- name: "Include ednxzu.install_docker"
|
- name: "Include ednxzu.install_docker"
|
||||||
ansible.builtin.include_role:
|
ansible.builtin.include_role:
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
---
|
---
|
||||||
- name: Verify
|
- name: Verify
|
||||||
hosts: all
|
hosts: all
|
||||||
gather_facts: false
|
gather_facts: true
|
||||||
|
become: true
|
||||||
tasks:
|
tasks:
|
||||||
- name: "Test: file /etc/hosts"
|
- name: "Test: file /etc/hosts"
|
||||||
block:
|
block:
|
||||||
@ -78,7 +79,6 @@
|
|||||||
- name: "Command docker ps"
|
- name: "Command docker ps"
|
||||||
ansible.builtin.command: "docker ps"
|
ansible.builtin.command: "docker ps"
|
||||||
changed_when: false
|
changed_when: false
|
||||||
become: true
|
|
||||||
register: docker_ps
|
register: docker_ps
|
||||||
|
|
||||||
- name: "Verify docker interaction"
|
- name: "Verify docker interaction"
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
- name: Converge
|
- name: Converge
|
||||||
hosts: all
|
hosts: all
|
||||||
|
become: true
|
||||||
tasks:
|
tasks:
|
||||||
- name: "Include ednxzu.install_docker"
|
- name: "Include ednxzu.install_docker"
|
||||||
ansible.builtin.include_role:
|
ansible.builtin.include_role:
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Verify
|
- name: Verify
|
||||||
hosts: all
|
hosts: all
|
||||||
gather_facts: true
|
gather_facts: true
|
||||||
|
become: true
|
||||||
tasks:
|
tasks:
|
||||||
- name: "Test: file /etc/hosts"
|
- name: "Test: file /etc/hosts"
|
||||||
block:
|
block:
|
||||||
@ -82,7 +83,6 @@
|
|||||||
- name: "Command docker ps"
|
- name: "Command docker ps"
|
||||||
ansible.builtin.command: "docker ps"
|
ansible.builtin.command: "docker ps"
|
||||||
changed_when: false
|
changed_when: false
|
||||||
become: true
|
|
||||||
register: docker_ps
|
register: docker_ps
|
||||||
|
|
||||||
- name: "Verify docker interaction"
|
- name: "Verify docker interaction"
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
- name: Converge
|
- name: Converge
|
||||||
hosts: all
|
hosts: all
|
||||||
|
become: true
|
||||||
tasks:
|
tasks:
|
||||||
- name: "Include ednxzu.install_docker"
|
- name: "Include ednxzu.install_docker"
|
||||||
ansible.builtin.include_role:
|
ansible.builtin.include_role:
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
---
|
---
|
||||||
- name: Verify
|
- name: Verify
|
||||||
hosts: all
|
hosts: all
|
||||||
gather_facts: false
|
gather_facts: true
|
||||||
|
become: true
|
||||||
tasks:
|
tasks:
|
||||||
- name: "Test: file /etc/hosts"
|
- name: "Test: file /etc/hosts"
|
||||||
block:
|
block:
|
||||||
@ -78,7 +79,6 @@
|
|||||||
- name: "Command docker ps"
|
- name: "Command docker ps"
|
||||||
ansible.builtin.command: "docker ps"
|
ansible.builtin.command: "docker ps"
|
||||||
changed_when: false
|
changed_when: false
|
||||||
become: true
|
|
||||||
register: docker_ps
|
register: docker_ps
|
||||||
|
|
||||||
- name: "Verify docker interaction"
|
- name: "Verify docker interaction"
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
- name: Converge
|
- name: Converge
|
||||||
hosts: all
|
hosts: all
|
||||||
|
become: true
|
||||||
tasks:
|
tasks:
|
||||||
- name: "Include ednxzu.install_docker"
|
- name: "Include ednxzu.install_docker"
|
||||||
ansible.builtin.include_role:
|
ansible.builtin.include_role:
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Verify
|
- name: Verify
|
||||||
hosts: all
|
hosts: all
|
||||||
gather_facts: true
|
gather_facts: true
|
||||||
|
become: true
|
||||||
tasks:
|
tasks:
|
||||||
- name: "Test: file /etc/hosts"
|
- name: "Test: file /etc/hosts"
|
||||||
block:
|
block:
|
||||||
@ -82,7 +83,6 @@
|
|||||||
- name: "Command docker ps"
|
- name: "Command docker ps"
|
||||||
ansible.builtin.command: "docker ps"
|
ansible.builtin.command: "docker ps"
|
||||||
changed_when: false
|
changed_when: false
|
||||||
become: true
|
|
||||||
register: docker_ps
|
register: docker_ps
|
||||||
|
|
||||||
- name: "Verify docker interaction"
|
- name: "Verify docker interaction"
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
groups: "{{ install_docker_group }}"
|
groups: "{{ install_docker_group }}"
|
||||||
append: true
|
append: true
|
||||||
loop: "{{ install_docker_users }}"
|
loop: "{{ install_docker_users }}"
|
||||||
become: true
|
|
||||||
|
|
||||||
- name: "Copy daemon.json template"
|
- name: "Copy daemon.json template"
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
@ -15,7 +14,6 @@
|
|||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
become: true
|
|
||||||
notify:
|
notify:
|
||||||
- "systemctl-enable-docker"
|
- "systemctl-enable-docker"
|
||||||
- "systemctl-reload-docker"
|
- "systemctl-reload-docker"
|
||||||
|
@ -14,7 +14,6 @@
|
|||||||
check_mode: false
|
check_mode: false
|
||||||
changed_when: false
|
changed_when: false
|
||||||
failed_when: false
|
failed_when: false
|
||||||
become: true
|
|
||||||
|
|
||||||
- name: "Set facts for wanted compose release"
|
- name: "Set facts for wanted compose release"
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
@ -35,7 +34,6 @@
|
|||||||
register: _docker_compose_binary_removed
|
register: _docker_compose_binary_removed
|
||||||
when: install_docker_compose_current_version is defined
|
when: install_docker_compose_current_version is defined
|
||||||
and install_docker_compose_wanted_version not in install_docker_compose_current_version
|
and install_docker_compose_wanted_version not in install_docker_compose_current_version
|
||||||
become: true
|
|
||||||
|
|
||||||
- name: "Download and install compose:{{ install_docker_compose_version }}"
|
- name: "Download and install compose:{{ install_docker_compose_version }}"
|
||||||
ansible.builtin.get_url:
|
ansible.builtin.get_url:
|
||||||
@ -46,4 +44,3 @@
|
|||||||
mode: '0755'
|
mode: '0755'
|
||||||
when: (install_docker_compose_current_version is not defined)
|
when: (install_docker_compose_current_version is not defined)
|
||||||
or (_docker_compose_binary_removed.changed)
|
or (_docker_compose_binary_removed.changed)
|
||||||
become: true
|
|
||||||
|
@ -21,5 +21,4 @@
|
|||||||
ansible.builtin.service:
|
ansible.builtin.service:
|
||||||
name: docker
|
name: docker
|
||||||
state: started
|
state: started
|
||||||
become: true
|
|
||||||
when: install_docker_start_service
|
when: install_docker_start_service
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
ansible.builtin.group:
|
ansible.builtin.group:
|
||||||
name: "{{ install_docker_group }}"
|
name: "{{ install_docker_group }}"
|
||||||
state: present
|
state: present
|
||||||
become: true
|
|
||||||
|
|
||||||
- name: "Create directory {{ install_docker_daemon_dir }}"
|
- name: "Create directory {{ install_docker_daemon_dir }}"
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
@ -13,4 +12,3 @@
|
|||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
become: true
|
|
||||||
|
Loading…
Reference in New Issue
Block a user