2021-11-08 03:32:56 +01:00
|
|
|
- name: "prepare vms for ultrabirb-cluster"
|
|
|
|
hosts: all
|
|
|
|
handlers:
|
2021-11-08 04:37:39 +01:00
|
|
|
- name: "netplanapply"
|
|
|
|
command: netplan apply
|
|
|
|
async: 45
|
|
|
|
poll: 0
|
2021-11-08 03:32:56 +01:00
|
|
|
|
2021-11-10 00:37:26 +01:00
|
|
|
- name: "restartkubelet"
|
|
|
|
systemd:
|
|
|
|
name: kubelet
|
|
|
|
state: restarted
|
|
|
|
|
2021-11-08 03:32:56 +01:00
|
|
|
tasks:
|
2021-11-12 00:36:16 +01:00
|
|
|
|
|
|
|
- name: "fix dns"
|
|
|
|
import_tasks: tasks/fix-dns-resolution.yaml
|
|
|
|
|
2021-11-08 04:10:06 +01:00
|
|
|
- name: "do apt stuff"
|
|
|
|
import_tasks: tasks/apt.yaml
|
|
|
|
|
2021-11-08 03:54:39 +01:00
|
|
|
- name: "disable cloudinit"
|
|
|
|
import_tasks: tasks/disable-cloudinit.yaml
|
2021-11-08 03:32:56 +01:00
|
|
|
|
2021-11-08 03:54:39 +01:00
|
|
|
- name: "remove snap"
|
|
|
|
import_tasks: tasks/remove-snap.yaml
|
2021-11-08 03:32:56 +01:00
|
|
|
|
2021-11-08 03:54:39 +01:00
|
|
|
- name: "clean motd"
|
|
|
|
import_tasks: tasks/clean-motd.yaml
|
2021-11-08 03:32:56 +01:00
|
|
|
|
2021-11-08 03:54:39 +01:00
|
|
|
- name: "setup static route"
|
2021-11-12 00:36:16 +01:00
|
|
|
import_tasks: tasks/setup-static-route.yaml
|
|
|
|
|
|
|
|
- name: "setup router stuff"
|
|
|
|
import_tasks: tasks/enable-routing.yaml
|
|
|
|
when: ansible_host == "magic-router"
|