feat: remove become from role
All checks were successful
test / Linting (push) Successful in 17s
test / Molecule tests (default, debian11) (push) Successful in 31s
test / Molecule tests (default, debian12) (push) Successful in 30s
test / Molecule tests (default, ubuntu2004) (push) Successful in 37s
test / Molecule tests (default, ubuntu2204) (push) Successful in 32s
test / Molecule tests (with_custom_config, debian11) (push) Successful in 31s
test / Molecule tests (with_custom_config, debian12) (push) Successful in 30s
test / Molecule tests (with_custom_config, ubuntu2204) (push) Successful in 32s
test / Molecule tests (with_custom_config, ubuntu2004) (push) Successful in 37s
All checks were successful
test / Linting (push) Successful in 17s
test / Molecule tests (default, debian11) (push) Successful in 31s
test / Molecule tests (default, debian12) (push) Successful in 30s
test / Molecule tests (default, ubuntu2004) (push) Successful in 37s
test / Molecule tests (default, ubuntu2204) (push) Successful in 32s
test / Molecule tests (with_custom_config, debian11) (push) Successful in 31s
test / Molecule tests (with_custom_config, debian12) (push) Successful in 30s
test / Molecule tests (with_custom_config, ubuntu2204) (push) Successful in 32s
test / Molecule tests (with_custom_config, ubuntu2004) (push) Successful in 37s
This commit is contained in:
parent
6218ed1fdd
commit
927d07e01b
@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
- name: Converge
|
- name: Converge
|
||||||
hosts: all
|
hosts: all
|
||||||
|
become: true
|
||||||
tasks:
|
tasks:
|
||||||
- name: "Include ednxzu.dns_resolver_conf"
|
- name: "Include ednxzu.dns_resolver_conf"
|
||||||
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.dns_resolver_conf"
|
- name: "Include ednxzu.dns_resolver_conf"
|
||||||
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.dns_resolver_conf"
|
- name: "Include ednxzu.dns_resolver_conf"
|
||||||
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.dns_resolver_conf"
|
- name: "Include ednxzu.dns_resolver_conf"
|
||||||
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:
|
||||||
|
@ -7,4 +7,3 @@
|
|||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
become: true
|
|
||||||
|
@ -7,4 +7,3 @@
|
|||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
become: true
|
|
||||||
|
@ -9,4 +9,3 @@
|
|||||||
enabled: "{{ 'true' if not dns_resolv_conf_disable_resolvectl else 'false' }}"
|
enabled: "{{ 'true' if not dns_resolv_conf_disable_resolvectl else 'false' }}"
|
||||||
state: "{{ 'started' if not dns_resolv_conf_disable_resolvectl else 'stopped' }}"
|
state: "{{ 'started' if not dns_resolv_conf_disable_resolvectl else 'stopped' }}"
|
||||||
when: "'systemd-resolved.service' in ansible_facts.services"
|
when: "'systemd-resolved.service' in ansible_facts.services"
|
||||||
become: true
|
|
||||||
|
Loading…
Reference in New Issue
Block a user