working on configuring a k3s cluster

This commit is contained in:
2022-08-02 09:42:08 -04:00
parent 31ed336880
commit 3a0f4a84b1
23 changed files with 562 additions and 37 deletions

View File

@@ -0,0 +1,24 @@
---
- name: Add repository locally
local_action:
module: kubernetes.core.helm_repository
name: "{{ item.name }}"
repo_url: "{{ item.repo_url }}"
loop: "{{ helm.repos }}"
- name: Add repository to cluster
kubernetes.core.helm_repository:
name: "{{ item.name }}"
repo_url: "{{ item.repo_url }}"
loop: "{{ helm.repos }}"
become: true
- name: Separately update the repository cache
kubernetes.core.helm:
kubeconfig_path: "/etc/rancher/k3s/k3s.yaml"
name: dummy
namespace: kube-system
state: absent
update_repo_cache: true
become: true