This commit is contained in:
2026-05-12 21:22:58 +02:00
parent 134291ef02
commit 266ded9954
+4 -10
View File
@@ -57,15 +57,7 @@
command: helm version
environment: "{{ helm_env }}"
when: inventory_hostname.endswith('-vm01.home.lan')
# ----------------------------
# 2. Prepare Helm config dir
# ----------------------------
- name: Create Helm config directory
file:
path: /tmp/helm/.config/helm
state: directory
mode: '0755'
when: inventory_hostname.endswith('-vm01.home.lan')
# ----------------------------
# 3. Add NFS Helm repo
# ----------------------------
@@ -74,11 +66,13 @@
name: nfs-subdir-external-provisioner
repo_url: https://kubernetes-sigs.github.io/nfs-subdir-external-provisioner/
environment: "{{ helm_env }}"
become_user: "{{ ansible_user }}"
when: inventory_hostname.endswith('-vm01.home.lan')
- name: Update Helm repos
command: helm repo update
environment: "{{ helm_env }}"
become_user: "{{ ansible_user }}"
when: inventory_hostname.endswith('-vm01.home.lan')
# ----------------------------