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:
Devin Buhl committed 2023-05-30 15:10:14 -04:00
1 parent d00d962fad
commit 7a54ce1a0f
3 files changed
+20 -2

No files matched your search

+7 -1
View File
@@ -9,7 +9,7 @@
- name: nuke - name: nuke
prompt: |- prompt: |-
Are you sure you want to nuke this cluster? 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" default: "n"
private: false private: false
pre_tasks: pre_tasks:
@@ -22,6 +22,12 @@
ansible.builtin.pause: ansible.builtin.pause:
seconds: 5 seconds: 5
tasks: tasks:
- name: Uninstall Cilium
ansible.builtin.shell: |
cilium uninstall --wait
environment:
KUBECONFIG: /etc/rancher/k3s/k3s.yaml
- name: Reboot - name: Reboot
ansible.builtin.reboot: ansible.builtin.reboot:
msg: Rebooting nodes msg: Rebooting nodes
+11
View File
@@ -57,6 +57,17 @@
when: "'raspi' in ansible_kernel" when: "'raspi' in ansible_kernel"
when: ansible_facts['distribution'] == 'Ubuntu' 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 - name: User Configuration
block: block:
- name: User Configuration | Add additional SSH public keys - name: User Configuration | Add additional SSH public keys
+2 -1
View File
@@ -11,6 +11,7 @@ collections:
- name: kubernetes.core - name: kubernetes.core
version: 2.4.0 version: 2.4.0
roles: roles:
- name: githubixx.cilium_cli
version: 2.6.0+0.13.2
- name: xanmanning.k3s - name: xanmanning.k3s
src: https://github.com/PyratLabs/ansible-role-k3s.git
version: v3.4.1 version: v3.4.1