Skip to content

Commit ca9a23e

Browse files
authored
Merge pull request #1364 from holta/dnsmasq-hack-for-16.04
dnsmasq hack (in roles/captive-portal/tasks/main.yml) so iiab-install runs on Ubuntu 16.04
2 parents 224b343 + 04f60db commit ca9a23e

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

roles/captive-portal/tasks/main.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,23 @@
124124
name: apache2
125125
state: restarted
126126

127-
- name: Restart dnsmasq
128-
systemd:
127+
#- name: Restart dnsmasq
128+
# 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:
129137
name: dnsmasq
130-
state: restarted
138+
state: stopped
139+
when: dnsmasq_enabled
140+
141+
- name: Start dnsmasq
142+
systemd:
143+
name: dnsmasq
144+
state: started
131145
when: dnsmasq_enabled
146+

0 commit comments

Comments
 (0)