do not start macchiato during the task

Starting macchiato here brings down the network connection for a couple
seconds, which will cause subsequent network dependent tasks to fail.
Start the service with a handler after everything else is done.
This commit is contained in:
Pig Monkey 2018-05-05 15:50:38 -07:00
parent 643419592a
commit 1027c3ce1b

View file

@ -9,7 +9,7 @@
with_items: "{{ ansible_interfaces }}"
- name: Enable macchiato
service: name=macchiato.service enabled=yes state=started
service: name=macchiato.service enabled=yes
when: network.spoof_mac == True
notify:
- start macchiato