theshire/ansible/main/playbooks/tasks/helm_controller.yaml

17 lines
562 B
YAML
Raw Normal View History

2024-01-11 15:03:54 -06:00
---
- name: Helm Controller
block:
- name: Helm Controller | Disable Helm controller
ansible.builtin.replace:
path: /etc/rancher/k3s/config.yaml
regexp: '^disable-helm-controller: false$'
replace: 'disable-helm-controller: true'
- name: Helm Controller | Delete Helm controller CRDs
kubernetes.core.k8s:
kubeconfig: /etc/rancher/k3s/k3s.yaml
name: "{{ item }}"
kind: CustomResourceDefinition
state: absent
loop: ["helmcharts.helm.cattle.io", "helmchartconfigs.helm.cattle.io"]