Skip to content

Commit 9a18b8e

Browse files
committed
controller ssh key, lookup first found
Assisted-By: Claude (claude-4.5-sonnet) Signed-off-by: Harald Jensås <hjensas@redhat.com>
1 parent ca8bc12 commit 9a18b8e

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

inventory.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,9 @@ all:
44
localhost:
55
ansible_connection: local
66
vars:
7-
controller_ssh_pub_key: "{{ lookup('ansible.builtin.file', '~/.ssh/id_rsa.pub') }}"
7+
controller_ssh_pub_key: >-
8+
{{ lookup('ansible.builtin.file',
9+
lookup('ansible.builtin.first_found',
10+
['~/.ssh/id_rsa.pub',
11+
'~/.ssh/id_ed25519.pub']))
12+
}}

0 commit comments

Comments
 (0)