feat: remove become from role
All checks were successful
test / Linting (push) Successful in 18s
test / Molecule tests (default, debian11) (push) Successful in 47s
test / Molecule tests (default, debian12) (push) Successful in 53s
test / Molecule tests (default, ubuntu2204) (push) Successful in 49s
test / Molecule tests (default, ubuntu2004) (push) Successful in 1m21s
test / Molecule tests (with_custom_config, debian11) (push) Successful in 45s
test / Molecule tests (with_custom_config, debian12) (push) Successful in 49s
test / Molecule tests (with_custom_config, ubuntu2004) (push) Successful in 51s
test / Molecule tests (with_custom_config, ubuntu2204) (push) Successful in 46s
All checks were successful
test / Linting (push) Successful in 18s
test / Molecule tests (default, debian11) (push) Successful in 47s
test / Molecule tests (default, debian12) (push) Successful in 53s
test / Molecule tests (default, ubuntu2204) (push) Successful in 49s
test / Molecule tests (default, ubuntu2004) (push) Successful in 1m21s
test / Molecule tests (with_custom_config, debian11) (push) Successful in 45s
test / Molecule tests (with_custom_config, debian12) (push) Successful in 49s
test / Molecule tests (with_custom_config, ubuntu2004) (push) Successful in 51s
test / Molecule tests (with_custom_config, ubuntu2204) (push) Successful in 46s
This commit is contained in:
parent
a6f3132957
commit
30ce327d55
@ -3,7 +3,6 @@
|
|||||||
- name: "Generate netplan configuration"
|
- name: "Generate netplan configuration"
|
||||||
ansible.builtin.command: netplan generate
|
ansible.builtin.command: netplan generate
|
||||||
changed_when: false
|
changed_when: false
|
||||||
become: true
|
|
||||||
listen: "netplan-generate"
|
listen: "netplan-generate"
|
||||||
|
|
||||||
- name: "Apply netplan configuration"
|
- name: "Apply netplan configuration"
|
||||||
@ -11,4 +10,3 @@
|
|||||||
listen: "netplan-apply"
|
listen: "netplan-apply"
|
||||||
changed_when: false
|
changed_when: false
|
||||||
when: manage_netplan_apply
|
when: manage_netplan_apply
|
||||||
become: true
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
- name: Converge
|
- name: Converge
|
||||||
hosts: all
|
hosts: all
|
||||||
|
become: true
|
||||||
tasks:
|
tasks:
|
||||||
- name: "Include ednxzu.manage_netplan"
|
- name: "Include ednxzu.manage_netplan"
|
||||||
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_netplan"
|
- name: "Include ednxzu.manage_netplan"
|
||||||
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_netplan"
|
- name: "Include ednxzu.manage_netplan"
|
||||||
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_netplan"
|
- name: "Include ednxzu.manage_netplan"
|
||||||
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:
|
||||||
|
@ -9,7 +9,6 @@
|
|||||||
group: root
|
group: root
|
||||||
backup: true
|
backup: true
|
||||||
when: manage_netplan_configuration != []
|
when: manage_netplan_configuration != []
|
||||||
become: true
|
|
||||||
notify:
|
notify:
|
||||||
- "netplan-generate"
|
- "netplan-generate"
|
||||||
- "netplan-apply"
|
- "netplan-apply"
|
||||||
|
@ -20,4 +20,3 @@
|
|||||||
owner: "root"
|
owner: "root"
|
||||||
group: "root"
|
group: "root"
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
become: true
|
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
paths: /etc/netplan
|
paths: /etc/netplan
|
||||||
patterns: "*.yml,*.yaml"
|
patterns: "*.yml,*.yaml"
|
||||||
register: _netplan_configs
|
register: _netplan_configs
|
||||||
become: true
|
|
||||||
|
|
||||||
- name: "Removing existing configurations"
|
- name: "Removing existing configurations"
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
@ -14,4 +13,3 @@
|
|||||||
loop: "{{ _netplan_configs['files'] }}"
|
loop: "{{ _netplan_configs['files'] }}"
|
||||||
when: item['path'] != manage_netplan_config_file
|
when: item['path'] != manage_netplan_config_file
|
||||||
and manage_netplan_configuration != []
|
and manage_netplan_configuration != []
|
||||||
become: true
|
|
||||||
|
Loading…
Reference in New Issue
Block a user