9 lines
287 B
YAML
9 lines
287 B
YAML
|
|
- name: Add multipass in search domains
|
||
|
|
when: "common_search_domains | length > 0"
|
||
|
|
ansible.builtin.lineinfile:
|
||
|
|
path: "/etc/systemd/resolved.conf"
|
||
|
|
search_string: 'Domains='
|
||
|
|
line: "Domains={{ common_search_domains | join(' ') }}"
|
||
|
|
notify:
|
||
|
|
- "Restart systemd-resolved"
|