diff --git a/bootstrap.yml b/bootstrap.yml index 00d1900..23c0b0c 100644 --- a/bootstrap.yml +++ b/bootstrap.yml @@ -227,14 +227,15 @@ key: "{{ lookup('file', 'files/ssh-keys/hpf-ans.pub') }}" ## New -- name: first needs multiple authorized keys - ansible.posix.authorized_key: - user: first - state: present - key: "{{ lookup('file', item) }}" - loop: - - files/ssh-keys/heath.pub - - files/ssh-keys/hpf-ans.pub + - name: first needs multiple authorized keys + become: true + ansible.posix.authorized_key: + user: first + state: present + key: "{{ lookup('file', item) }}" + loop: + - files/ssh-keys/heath.pub + - files/ssh-keys/hpf-ans.pub ## New - name: heath needs heath's authorized_key diff --git a/files/ssh_keys/first.pub b/files/ssh-keys/first.pub similarity index 100% rename from files/ssh_keys/first.pub rename to files/ssh-keys/first.pub diff --git a/files/ssh_keys/heath.pub b/files/ssh-keys/heath.pub similarity index 100% rename from files/ssh_keys/heath.pub rename to files/ssh-keys/heath.pub diff --git a/files/ssh_keys/hpf-ans.pub b/files/ssh-keys/hpf-ans.pub similarity index 100% rename from files/ssh_keys/hpf-ans.pub rename to files/ssh-keys/hpf-ans.pub