dns_resolver_conf/tasks/resolv_conf.yml
Bertrand Lanson 6218ed1fdd
All checks were successful
test / Linting (push) Successful in 28s
test / Molecule tests (default, ubuntu2004) (push) Successful in 47s
test / Molecule tests (default, debian12) (push) Successful in 1m15s
test / Molecule tests (default, debian11) (push) Successful in 1m24s
test / Molecule tests (default, ubuntu2204) (push) Successful in 52s
test / Molecule tests (with_custom_config, debian11) (push) Successful in 56s
test / Molecule tests (with_custom_config, ubuntu2004) (push) Successful in 31s
test / Molecule tests (with_custom_config, debian12) (push) Successful in 1m0s
test / Molecule tests (with_custom_config, ubuntu2204) (push) Successful in 46s
feat: add become: true, add vagrant tests, add systemd-resolved service check to avoid failure if service is not on host
2023-12-01 18:36:27 +01:00

11 lines
251 B
YAML

---
# task/resolv_conf for dns_resolver_conf
- name: "Copy /etc/resolv.conf file"
ansible.builtin.template:
src: "resolv.conf.j2"
dest: "{{ dns_resolv_conf_path }}/resolv.conf"
owner: root
group: root
mode: '0644'
become: true