fix(ansible/rke2): replace hardcoded metallb version with var

This commit is contained in:
Niclas Roßberger 2024-11-19 15:21:11 +01:00
parent 9b130ebc96
commit 93f032a9f5
No known key found for this signature in database
GPG Key ID: 517409C225FEE5BB
1 changed files with 2 additions and 2 deletions

View File

@ -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