2021-11-09 01:13:48 +01:00
|
|
|
- name: "prepare vms for kmlabs-k8s-cluster"
|
|
|
|
hosts: all
|
2021-11-09 02:18:02 +01:00
|
|
|
handlers:
|
|
|
|
- name: "netplanapply"
|
|
|
|
command: netplan apply
|
|
|
|
async: 45
|
|
|
|
poll: 0
|
2021-11-09 01:13:48 +01:00
|
|
|
|
2021-11-09 23:13:21 +01:00
|
|
|
- name: "restartkubelet"
|
|
|
|
systemd:
|
|
|
|
name: kubelet
|
|
|
|
state: restarted
|
|
|
|
|
2021-11-09 01:13:48 +01:00
|
|
|
tasks:
|
|
|
|
- name: "do apt stuff"
|
|
|
|
import_tasks: tasks/apt.yaml
|
|
|
|
|
|
|
|
- name: "disable cloudinit"
|
|
|
|
import_tasks: tasks/disable-cloudinit.yaml
|
|
|
|
|
|
|
|
- name: "remove snap"
|
|
|
|
import_tasks: tasks/remove-snap.yaml
|
|
|
|
|
|
|
|
- name: "clean motd"
|
2021-11-09 02:18:02 +01:00
|
|
|
import_tasks: tasks/clean-motd.yaml
|
|
|
|
|
2021-11-09 03:11:35 +01:00
|
|
|
- name: "fix dns"
|
|
|
|
import_tasks: tasks/fix-dns-resolution.yaml
|
|
|
|
|
2021-11-09 02:18:02 +01:00
|
|
|
- name: "setup networking"
|
|
|
|
import_tasks: tasks/static-networking.yaml
|