ultrabirb-cluster/ansible/prepare.yaml

36 lines
820 B
YAML

- name: "prepare vms for ultrabirb-cluster"
hosts: all
handlers:
- name: "netplanapply"
command: netplan apply
async: 45
poll: 0
- name: "restartkubelet"
systemd:
name: kubelet
state: restarted
tasks:
- name: "fix dns"
import_tasks: tasks/fix-dns-resolution.yaml
- 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"
import_tasks: tasks/clean-motd.yaml
- name: "setup static route"
import_tasks: tasks/setup-static-route.yaml
- name: "setup router stuff"
import_tasks: tasks/enable-routing.yaml
when: ansible_host == "magic-router"