From eb346e7fb0e3e7965f6c5479329ebc1a73baa23f Mon Sep 17 00:00:00 2001 From: John Ratliff Date: Thu, 9 May 2024 10:46:51 +0000 Subject: [PATCH] move defaults into role --- Ansible/Playbooks/RKE2/inventory/group_vars/all.yaml | 12 +++++++----- .../Playbooks/RKE2/roles/kube-vip/defaults/main.yaml | 3 +++ 2 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 Ansible/Playbooks/RKE2/roles/kube-vip/defaults/main.yaml diff --git a/Ansible/Playbooks/RKE2/inventory/group_vars/all.yaml b/Ansible/Playbooks/RKE2/inventory/group_vars/all.yaml index 5af9f3f..dcf978e 100644 --- a/Ansible/Playbooks/RKE2/inventory/group_vars/all.yaml +++ b/Ansible/Playbooks/RKE2/inventory/group_vars/all.yaml @@ -1,16 +1,18 @@ +--- os: "linux" arch: "amd64" -kube_vip_version: "v0.8.0" -vip_interface: eth0 vip: 192.168.3.50 metallb_version: v0.13.12 lb_range: 192.168.3.80-192.168.3.90 lb_pool_name: first-pool -# Set this if you want a different rke2 version than the default -# rke2_version: "v1.29.4+rke2r1" - ansible_become: true ansible_become_method: sudo +################################################################################ +# options to change default values +# kube_vip_version: "v0.8.0" +# vip_interface: "eth0" +# rke2_version: "v1.29.4+rke2r1" +# rke2_install_dir: "/usr/local/bin" diff --git a/Ansible/Playbooks/RKE2/roles/kube-vip/defaults/main.yaml b/Ansible/Playbooks/RKE2/roles/kube-vip/defaults/main.yaml new file mode 100644 index 0000000..4de5242 --- /dev/null +++ b/Ansible/Playbooks/RKE2/roles/kube-vip/defaults/main.yaml @@ -0,0 +1,3 @@ +--- +kube_vip_version: v0.8.0 +vip_interface: eth0