From a84927483b07d59fd04d7372e0cf974d1c5e74dd Mon Sep 17 00:00:00 2001 From: marcsello Date: Mon, 8 Nov 2021 04:37:39 +0100 Subject: [PATCH] =?UTF-8?q?any=C3=A1d?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ansible/prepare.yaml | 18 +++++++----------- ansible/tasks/setup-static-route.yaml | 2 +- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/ansible/prepare.yaml b/ansible/prepare.yaml index 409942c..405f5a1 100644 --- a/ansible/prepare.yaml +++ b/ansible/prepare.yaml @@ -1,18 +1,14 @@ - name: "prepare vms for ultrabirb-cluster" hosts: all handlers: + - name: "reset connections" + meta: reset_connection + - name: "netplanapply" - block: - - name: "run netplan apply" - command: netplan apply - async: 45 - poll: 0 - - - name: "reset connections" - meta: reset_connection - - - name: clear errors - meta: clear_host_errors + command: netplan apply + async: 45 + poll: 0 + notify: "reset connections" tasks: - name: "do apt stuff" diff --git a/ansible/tasks/setup-static-route.yaml b/ansible/tasks/setup-static-route.yaml index 1d41cb0..5cc80ad 100644 --- a/ansible/tasks/setup-static-route.yaml +++ b/ansible/tasks/setup-static-route.yaml @@ -7,4 +7,4 @@ template: src: templates/netplan.yaml dest: /etc/netplan/00-static.yaml - notify: "netplanapply" \ No newline at end of file + notify: netplanapply \ No newline at end of file