24 lines
462 B
YAML
24 lines
462 B
YAML
---
|
|
|
|
- hosts: k3s_cluster
|
|
gather_facts: yes
|
|
roles:
|
|
- role: reset
|
|
become: true
|
|
- role: raspberrypi
|
|
become: true
|
|
vars: {state: absent}
|
|
post_tasks:
|
|
- name: Reboot and wait for node to come back up
|
|
become: true
|
|
reboot:
|
|
reboot_timeout: 3600
|
|
|
|
- hosts: proxmox
|
|
gather_facts: true
|
|
become: yes
|
|
remote_user: "{{ proxmox_lxc_ssh_user }}"
|
|
roles:
|
|
- role: reset_proxmox_lxc
|
|
when: proxmox_lxc_configure
|