We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 224b343 + 04f60db commit ca9a23eCopy full SHA for ca9a23e
roles/captive-portal/tasks/main.yml
@@ -124,8 +124,23 @@
124
name: apache2
125
state: restarted
126
127
-- name: Restart dnsmasq
128
- systemd:
+#- name: Restart dnsmasq
+# systemd:
129
+# name: dnsmasq
130
+# state: restarted
131
+# when: dnsmasq_enabled
132
+
133
+# ABOVE DOES NOT WORK ON UBUNTU 16.04 -- what follows is a crude hack (seems to work!)
134
135
+- name: Stop dnsmasq
136
+ systemd:
137
name: dnsmasq
- state: restarted
138
+ state: stopped
139
+ when: dnsmasq_enabled
140
141
+- name: Start dnsmasq
142
143
+ name: dnsmasq
144
+ state: started
145
when: dnsmasq_enabled
146
0 commit comments