initial ansible code
This commit is contained in:
8
roles/common/tasks/authorized_keys.yml
Normal file
8
roles/common/tasks/authorized_keys.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
|
||||
- name: Set authorized keys
|
||||
authorized_key:
|
||||
user: "{{ main_user }}"
|
||||
key: "{{ lookup('file', 'public_keys.pub') }}"
|
||||
state: present
|
||||
exclusive: true # removing all the authorized keys already set
|
||||
Reference in New Issue
Block a user