* Need to become to reboot * Fix rc.local insertion of script * Fix syntax Add new line to lxc.yml * Remove need to set fact * Add reset for LXC container config * Fix syntax Its always the newlines.. * remove fact setting from reset task We should mirror the deployment task * Proxmox LXC reset functions * Handle if rc.local already has data * Dont compare literal * Cleanup Erroneous newline * Handle rc.local not present on a hybrid cluster * Update roles/reset/tasks/main.yml Co-authored-by: Simon Leiner <simon@leiner.me> * Update roles/lxc/tasks/main.yml Co-authored-by: Simon Leiner <simon@leiner.me> --------- Co-authored-by: Techno Tim <timothystewart6@gmail.com> Co-authored-by: Simon Leiner <simon@leiner.me>
38 lines
607 B
YAML
38 lines
607 B
YAML
---
|
|
|
|
- hosts: proxmox
|
|
gather_facts: true
|
|
become: yes
|
|
remote_user: "{{ proxmox_lxc_ssh_user }}"
|
|
roles:
|
|
- role: proxmox_lxc
|
|
when: proxmox_lxc_configure
|
|
|
|
- hosts: k3s_cluster
|
|
gather_facts: yes
|
|
roles:
|
|
- role: lxc
|
|
become: true
|
|
when: proxmox_lxc_configure
|
|
- role: prereq
|
|
become: true
|
|
- role: download
|
|
become: true
|
|
- role: raspberrypi
|
|
become: true
|
|
|
|
- hosts: master
|
|
roles:
|
|
- role: k3s/master
|
|
become: true
|
|
|
|
- hosts: node
|
|
roles:
|
|
- role: k3s/node
|
|
become: true
|
|
|
|
- hosts: master
|
|
roles:
|
|
- role: k3s/post
|
|
become: true
|