From e04d80e08be7291d6e4fe90131eaec361ffdfbb8 Mon Sep 17 00:00:00 2001 From: michael Date: Sat, 3 Sep 2022 00:48:55 +1200 Subject: [PATCH] group vars --- ansible/group_vars/all.yaml | 3 +++ ansible/host_vars/lab.yaml | 4 ++++ ansible/inventory/hosts.yaml | 1 - 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ansible/group_vars/all.yaml b/ansible/group_vars/all.yaml index ed97d53..3080775 100644 --- a/ansible/group_vars/all.yaml +++ b/ansible/group_vars/all.yaml @@ -1 +1,4 @@ --- + +ansible_connection: ssh +ansible_become_method: sudo \ No newline at end of file diff --git a/ansible/host_vars/lab.yaml b/ansible/host_vars/lab.yaml index 8120458..00a280e 100644 --- a/ansible/host_vars/lab.yaml +++ b/ansible/host_vars/lab.yaml @@ -1,5 +1,9 @@ --- +# common + +ansible_become_user: ladmin + # sshd authorized_keys_file: lab_authorized_keys diff --git a/ansible/inventory/hosts.yaml b/ansible/inventory/hosts.yaml index bdf6317..5138b71 100644 --- a/ansible/inventory/hosts.yaml +++ b/ansible/inventory/hosts.yaml @@ -8,7 +8,6 @@ all: ansible_host: lab.balsillie.net ansible_os_family: Arch ansible_user: ladmin - ansible_connection: ssh nodes: node1: ansible_host: node1.balsillie.net