Playbooks to a new Lilik
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

12 lines
304 B

- name:
lineinfile:
dest: '/etc/hosts'
line: '{{ ansible_default_ipv4.address }} {{ host_fqdn }}.'
regexp: '^\s*\S* {{ host_fqdn }}.'
delegate_to: gandalf
register: hosts
- name: dnsmasq force hosts reload
command: "killall -HUP dnsmasq"
delegate_to: gandalf
when: hosts.changed