From 93f032a9f52476c6383b6c03ba168537137c1b11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niclas=20Ro=C3=9Fberger?= Date: Tue, 19 Nov 2024 15:21:11 +0100 Subject: [PATCH] fix(ansible/rke2): replace hardcoded metallb version with var --- Ansible/Playbooks/RKE2/roles/apply-manifests/tasks/main.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Ansible/Playbooks/RKE2/roles/apply-manifests/tasks/main.yaml b/Ansible/Playbooks/RKE2/roles/apply-manifests/tasks/main.yaml index bf5ea47..6837513 100644 --- a/Ansible/Playbooks/RKE2/roles/apply-manifests/tasks/main.yaml +++ b/Ansible/Playbooks/RKE2/roles/apply-manifests/tasks/main.yaml @@ -12,7 +12,7 @@ # Create namespace so that we can deploy metallb - name: Apply metallb namespace ansible.builtin.command: - cmd: kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.12.1/manifests/namespace.yaml + cmd: kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/{{ metallb_version }}/manifests/namespace.yaml become_user: "{{ ansible_user }}" changed_when: true when: inventory_hostname == groups['servers'][0] @@ -48,7 +48,7 @@ dest: /home/{{ ansible_user }}/ippool.yaml owner: "{{ ansible_user }}" group: "{{ ansible_user }}" - mode: '0755' + mode: "0755" when: inventory_hostname == groups['servers'][0] # don't think this will work as nodes are no execute, might need agents first