From c67c9780b52959331861828465af522059bf760b Mon Sep 17 00:00:00 2001 From: John Ratliff Date: Thu, 9 May 2024 10:10:38 +0000 Subject: [PATCH] update rke2 inventory add rke2 group for added targeting --- Ansible/Playbooks/RKE2/inventory/group_vars/all.yaml | 1 - Ansible/Playbooks/RKE2/inventory/hosts.ini | 9 +++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Ansible/Playbooks/RKE2/inventory/group_vars/all.yaml b/Ansible/Playbooks/RKE2/inventory/group_vars/all.yaml index 458b16e..c35b3e0 100644 --- a/Ansible/Playbooks/RKE2/inventory/group_vars/all.yaml +++ b/Ansible/Playbooks/RKE2/inventory/group_vars/all.yaml @@ -13,6 +13,5 @@ rke2_version: "v1.29.4+rke2r1" rke2_install_dir: "/usr/local/bin" rke2_binary_url: "https://github.com/rancher/rke2/releases/download/{{ rke2_version }}/rke2.linux-amd64" -ansible_user: ubuntu ansible_become: true ansible_become_method: sudo diff --git a/Ansible/Playbooks/RKE2/inventory/hosts.ini b/Ansible/Playbooks/RKE2/inventory/hosts.ini index 2ebbc5d..2cd7cac 100644 --- a/Ansible/Playbooks/RKE2/inventory/hosts.ini +++ b/Ansible/Playbooks/RKE2/inventory/hosts.ini @@ -9,3 +9,12 @@ server3 ansible_host=192.168.3.23 [agents] agent1 ansible_host=192.168.3.24 agent2 ansible_host=192.168.3.25 + +[rke2] + +[rke2:children] +servers +agents + +[rke2:vars] +ansible_user=ansible