fix: add cilium-cli to prepare playbook and cilium uninstall to nuke playbook
Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
3 files changed
+20
-2
No files matched your search
@@ -9,7 +9,7 @@
|
||||
- name: nuke
|
||||
prompt: |-
|
||||
Are you sure you want to nuke this cluster?
|
||||
Type YES I WANT TO DESTROY THIS CLUSTER to proceed
|
||||
Type 'YES I WANT TO DESTROY THIS CLUSTER' to proceed
|
||||
default: "n"
|
||||
private: false
|
||||
pre_tasks:
|
||||
@@ -22,6 +22,12 @@
|
||||
ansible.builtin.pause:
|
||||
seconds: 5
|
||||
tasks:
|
||||
- name: Uninstall Cilium
|
||||
ansible.builtin.shell: |
|
||||
cilium uninstall --wait
|
||||
environment:
|
||||
KUBECONFIG: /etc/rancher/k3s/k3s.yaml
|
||||
|
||||
- name: Reboot
|
||||
ansible.builtin.reboot:
|
||||
msg: Rebooting nodes
|
||||
|
||||
@@ -57,6 +57,17 @@
|
||||
when: "'raspi' in ansible_kernel"
|
||||
when: ansible_facts['distribution'] == 'Ubuntu'
|
||||
|
||||
- name: Packages | Cilium CLI
|
||||
ansible.builtin.include_role:
|
||||
name: githubixx.cilium_cli
|
||||
public: true
|
||||
vars:
|
||||
cilium_cli_arch: "{{ 'amd64' if ansible_architecture == 'x86_64' else 'arm64' }}"
|
||||
cilium_cli_tmp_directory: /tmp
|
||||
when:
|
||||
- k3s_control_node is defined
|
||||
- k3s_control_node
|
||||
|
||||
- name: User Configuration
|
||||
block:
|
||||
- name: User Configuration | Add additional SSH public keys
|
||||
|
||||
@@ -11,6 +11,7 @@ collections:
|
||||
- name: kubernetes.core
|
||||
version: 2.4.0
|
||||
roles:
|
||||
- name: githubixx.cilium_cli
|
||||
version: 2.6.0+0.13.2
|
||||
- name: xanmanning.k3s
|
||||
src: https://github.com/PyratLabs/ansible-role-k3s.git
|
||||
version: v3.4.1
|
||||
Reference in new issue
Block a user