From 1027c3ce1bf6102015db85c7092796100c536625 Mon Sep 17 00:00:00 2001 From: Pig Monkey Date: Sat, 5 May 2018 15:50:38 -0700 Subject: [PATCH] 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. --- roles/macchiato/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/macchiato/tasks/main.yml b/roles/macchiato/tasks/main.yml index 8be7f7e..1ac2105 100644 --- a/roles/macchiato/tasks/main.yml +++ b/roles/macchiato/tasks/main.yml @@ -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