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

This commit is contained in:
Bertrand Lanson 2023-12-03 17:03:05 +01:00
parent 6218ed1fdd
commit 927d07e01b
11 changed files with 10 additions and 5 deletions

View File

@ -1,6 +1,7 @@
---
- name: Converge
hosts: all
become: true
tasks:
- name: "Include ednxzu.dns_resolver_conf"
ansible.builtin.include_role:

View File

@ -1,7 +1,8 @@
---
- name: Verify
hosts: all
gather_facts: false
gather_facts: true
become: true
tasks:
- name: "Test: file /etc/hosts"
block:

View File

@ -1,6 +1,7 @@
---
- name: Converge
hosts: all
become: true
tasks:
- name: "Include ednxzu.dns_resolver_conf"
ansible.builtin.include_role:

View File

@ -2,6 +2,7 @@
- name: Verify
hosts: all
gather_facts: true
become: true
tasks:
- name: "Test: file /etc/hosts"
block:

View File

@ -1,6 +1,7 @@
---
- name: Converge
hosts: all
become: true
tasks:
- name: "Include ednxzu.dns_resolver_conf"
ansible.builtin.include_role:

View File

@ -1,7 +1,8 @@
---
- name: Verify
hosts: all
gather_facts: false
gather_facts: true
become: true
tasks:
- name: "Test: file /etc/hosts"
block:

View File

@ -1,6 +1,7 @@
---
- name: Converge
hosts: all
become: true
tasks:
- name: "Include ednxzu.dns_resolver_conf"
ansible.builtin.include_role:

View File

@ -2,6 +2,7 @@
- name: Verify
hosts: all
gather_facts: true
become: true
tasks:
- name: "Test: file /etc/hosts"
block:

View File

@ -7,4 +7,3 @@
owner: root
group: root
mode: '0644'
become: true

View File

@ -7,4 +7,3 @@
owner: root
group: root
mode: '0644'
become: true

View File

@ -9,4 +9,3 @@
enabled: "{{ 'true' if not dns_resolv_conf_disable_resolvectl else 'false' }}"
state: "{{ 'started' if not dns_resolv_conf_disable_resolvectl else 'stopped' }}"
when: "'systemd-resolved.service' in ansible_facts.services"
become: true