diff options
Diffstat (limited to 'ansible/roles/dns/handlers')
-rw-r--r-- | ansible/roles/dns/handlers/main.yml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ansible/roles/dns/handlers/main.yml b/ansible/roles/dns/handlers/main.yml new file mode 100644 index 00000000..ac3209dc --- /dev/null +++ b/ansible/roles/dns/handlers/main.yml @@ -0,0 +1,14 @@ +--- +- name: Restart dnsmasq container + docker_container: + name: dnsmasq + image: andyshinn/dnsmasq:2.76 + command: -H /simulated_hosts --log-facility=- + capabilities: NET_ADMIN + volumes: + - "{{ app_data_path }}/cfg/simulated_hosts:/simulated_hosts:ro" + ports: + - "53:53/tcp" + - "53:53/udp" + state: started + restart_policy: unless-stopped |