This commit is contained in:
Pünkösd Marcell 2021-11-08 04:37:39 +01:00
parent f7500ae05a
commit a84927483b
2 changed files with 8 additions and 12 deletions

View File

@ -1,18 +1,14 @@
- name: "prepare vms for ultrabirb-cluster" - name: "prepare vms for ultrabirb-cluster"
hosts: all hosts: all
handlers: handlers:
- name: "netplanapply"
block:
- name: "run netplan apply"
command: netplan apply
async: 45
poll: 0
- name: "reset connections" - name: "reset connections"
meta: reset_connection meta: reset_connection
- name: clear errors - name: "netplanapply"
meta: clear_host_errors command: netplan apply
async: 45
poll: 0
notify: "reset connections"
tasks: tasks:
- name: "do apt stuff" - name: "do apt stuff"

View File

@ -7,4 +7,4 @@
template: template:
src: templates/netplan.yaml src: templates/netplan.yaml
dest: /etc/netplan/00-static.yaml dest: /etc/netplan/00-static.yaml
notify: "netplanapply" notify: netplanapply