Packer.Images/ansible/roles/firstboot/files/ansible_payload/upgrade/playbook.yml

28 lines
587 B
YAML
Raw Normal View History

2021-06-09 08:39:00 +00:00
---
- hosts: 127.0.0.1
2021-06-09 08:39:00 +00:00
connection: local
gather_facts: true
2022-07-10 11:47:53 +00:00
vars_files:
- defaults.yml
2022-07-10 11:47:53 +00:00
- metacluster.yml
2021-06-09 08:39:00 +00:00
# become: true
roles:
- vapp
- network
- preflight
2021-06-10 13:07:48 +00:00
- users
2022-06-28 14:37:54 +00:00
- disks
- metacluster
- workloadcluster
- decommission
2022-07-22 07:38:03 +00:00
- 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