- name: restart hostapd service: name=hostapd state=restarted enabled=yes - name: restart dnsmasq service: name=dnsmasq state=restarted