Reloading DNSMasq when updating /etc/hosts.

This commit is contained in:
Samuel Clay 2021-05-13 10:43:33 -04:00
parent 540f7d3c45
commit 13fd328cfd
2 changed files with 5 additions and 1 deletions

View file

@ -1,4 +1,7 @@
---
- name: restart nginx
service: name=nginx state=restarted
- name: reload dnsmasq
become: yes
service: name=dnsmasq state=reloaded

View file

@ -57,6 +57,7 @@
src: /srv/secrets-newsblur/configs/hosts
dest: /etc/hosts
tags: hosts
notify: reload dnsmasq
- name: "Add inventory_hostname to /etc/hosts"
become: yes