Bertrand Lanson
927d07e01b
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
12 lines
436 B
YAML
12 lines
436 B
YAML
---
|
|
# task/systemd file for dns_resolver_conf
|
|
- name: "Populate service facts"
|
|
ansible.builtin.service_facts:
|
|
|
|
- name: "Configure systemd-resolved"
|
|
ansible.builtin.service:
|
|
name: systemd-resolved
|
|
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"
|