Created prepare playbook

This commit is contained in:
2021-11-08 03:32:56 +01:00
parent 04fbb0c3e3
commit 2d8ae4e8da
8 changed files with 197 additions and 0 deletions

28
ansible/prepare.yaml Normal file
View File

@@ -0,0 +1,28 @@
- name: "prepare vms for ultrabirb-cluster"
hosts: all
handlers:
- name: "netplan apply"
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
tasks:
- name: "disable cloudinit"
import_tasks: tasks/disable-cloudinit.yaml
- name: "remove snap"
import_tasks: tasks/remove-snap.yaml
- name: "clean motd"
import_tasks: tasks/clean-motd.yaml
- name: "setup static route"
import_tasks: tasks/setup-static-route.yaml