feat: remove become from role
All checks were successful
test / Linting (push) Successful in 18s
test / Molecule tests (default, debian12) (push) Successful in 46s
test / Molecule tests (default, ubuntu2004) (push) Successful in 51s
test / Molecule tests (default, debian11) (push) Successful in 1m5s
test / Molecule tests (default, ubuntu2204) (push) Successful in 42s
test / Molecule tests (with_custom_packages, debian11) (push) Successful in 1m16s
test / Molecule tests (with_custom_packages, debian12) (push) Successful in 1m22s
test / Molecule tests (with_custom_packages, ubuntu2004) (push) Successful in 1m35s
test / Molecule tests (with_custom_packages, ubuntu2204) (push) Successful in 1m48s
All checks were successful
test / Linting (push) Successful in 18s
test / Molecule tests (default, debian12) (push) Successful in 46s
test / Molecule tests (default, ubuntu2004) (push) Successful in 51s
test / Molecule tests (default, debian11) (push) Successful in 1m5s
test / Molecule tests (default, ubuntu2204) (push) Successful in 42s
test / Molecule tests (with_custom_packages, debian11) (push) Successful in 1m16s
test / Molecule tests (with_custom_packages, debian12) (push) Successful in 1m22s
test / Molecule tests (with_custom_packages, ubuntu2004) (push) Successful in 1m35s
test / Molecule tests (with_custom_packages, ubuntu2204) (push) Successful in 1m48s
This commit is contained in:
parent
2a3e54aa53
commit
3c1be4d599
@ -3,5 +3,4 @@
|
|||||||
- name: "Remove unnecessary dependencies"
|
- name: "Remove unnecessary dependencies"
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
autoremove: yes
|
autoremove: yes
|
||||||
become: true
|
|
||||||
listen: "apt-autoremove"
|
listen: "apt-autoremove"
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
- name: Converge
|
- name: Converge
|
||||||
hosts: all
|
hosts: all
|
||||||
|
become: true
|
||||||
tasks:
|
tasks:
|
||||||
- name: "Include ednxzu.manage_apt_packages"
|
- name: "Include ednxzu.manage_apt_packages"
|
||||||
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:
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
- name: Converge
|
- name: Converge
|
||||||
hosts: all
|
hosts: all
|
||||||
|
become: true
|
||||||
tasks:
|
tasks:
|
||||||
- name: "Include ednxzu.manage_apt_packages"
|
- name: "Include ednxzu.manage_apt_packages"
|
||||||
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:
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
- name: Converge
|
- name: Converge
|
||||||
hosts: all
|
hosts: all
|
||||||
|
become: true
|
||||||
tasks:
|
tasks:
|
||||||
- name: "Include ednxzu.manage_apt_packages"
|
- name: "Include ednxzu.manage_apt_packages"
|
||||||
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:
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
- name: Converge
|
- name: Converge
|
||||||
hosts: all
|
hosts: all
|
||||||
|
become: true
|
||||||
tasks:
|
tasks:
|
||||||
- name: "Include ednxzu.manage_apt_packages"
|
- name: "Include ednxzu.manage_apt_packages"
|
||||||
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:
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
cache_valid_time: "{{ manage_apt_packages_apt_cache_time }}"
|
cache_valid_time: "{{ manage_apt_packages_apt_cache_time }}"
|
||||||
become: true
|
|
||||||
|
|
||||||
- name: "Install/remove required apt packages"
|
- name: "Install/remove required apt packages"
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
@ -15,4 +14,3 @@
|
|||||||
when: manage_apt_packages_list is defined
|
when: manage_apt_packages_list is defined
|
||||||
and manage_apt_packages_list not in [None, '']
|
and manage_apt_packages_list not in [None, '']
|
||||||
notify: "apt-autoremove"
|
notify: "apt-autoremove"
|
||||||
become: true
|
|
||||||
|
Loading…
Reference in New Issue
Block a user