1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00

Update main.yml

This commit is contained in:
A Holt 2019-01-08 22:55:05 -05:00 committed by GitHub
parent 3c672b3e8e
commit 04f60db1b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -124,8 +124,23 @@
name: apache2 name: apache2
state: restarted state: restarted
- name: Restart dnsmasq #- name: Restart dnsmasq
# systemd:
# name: dnsmasq
# state: restarted
# when: dnsmasq_enabled
# ABOVE DOES NOT WORK ON UBUNTU 16.04 -- what follows is a crude hack (seems to work!)
- name: Stop dnsmasq
systemd: systemd:
name: dnsmasq name: dnsmasq
state: restarted state: stopped
when: dnsmasq_enabled when: dnsmasq_enabled
- name: Start dnsmasq
systemd:
name: dnsmasq
state: started
when: dnsmasq_enabled