Refactor default ssh keys
This commit is contained in:
parent
3517033108
commit
acbc38aa8a
1 changed files with 40 additions and 34 deletions
6
playbooks/roles/users/tasks/main.yml
Normal file
6
playbooks/roles/users/tasks/main.yml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
- name: Set authorized keys for ansible
|
||||
ansible.posix.authorized_key:
|
||||
user: ansible
|
||||
exclusive: true
|
||||
key: "{{ opentofu.ssh_keys.values() | join('\n') }}"
|
||||
become: true
|
||||
Loading…
Reference in a new issue