Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 18 additions & 3 deletions roles/captive-portal/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,23 @@
name: apache2
state: restarted

- name: Restart dnsmasq
systemd:
#- 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:
name: dnsmasq
state: restarted
state: stopped
when: dnsmasq_enabled

- name: Start dnsmasq
systemd:
name: dnsmasq
state: started
when: dnsmasq_enabled