Packer.Images/ansible/roles/firstboot/files/ansible_payload/playbook.yml
2022-09-04 14:51:07 +02:00

25 lines
534 B
YAML

---
- hosts: 127.0.0.1
connection: local
gather_facts: false
vars_files:
- metacluster.yml
# become: true
roles:
- vapp
- network
- users
- disks
- metacluster
- workloadcluster
- tty
- cleanup
handlers:
- name: Apply manifests
kubernetes.core.k8s:
src: "{{ item }}"
state: present
kubeconfig: "{{ kubeconfig.path }}"
loop: "{{ query('ansible.builtin.fileglob', '/var/lib/rancher/k3s/server/manifests/*.yaml') | sort }}"
ignore_errors: yes