We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca8bc12 commit 9a18b8eCopy full SHA for 9a18b8e
1 file changed
inventory.yml
@@ -4,4 +4,9 @@ all:
4
localhost:
5
ansible_connection: local
6
vars:
7
- controller_ssh_pub_key: "{{ lookup('ansible.builtin.file', '~/.ssh/id_rsa.pub') }}"
+ 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