r/base: Set SSH authorized keys for root
To ensure all machines have the same keys to allow root to log in via SSH (in case Active Directory is unavailable or something).
This commit is contained in:
@@ -21,3 +21,12 @@
|
||||
tags:
|
||||
- root-user
|
||||
- user
|
||||
- name: ensure ssh keys are authorized for root login
|
||||
ansible.posix.authorized_key:
|
||||
user: root
|
||||
exclusive: true
|
||||
key: '{{ root_authorized_keys }}'
|
||||
when: root_authorized_keys is defined
|
||||
tags:
|
||||
- root-user
|
||||
- ssh-key
|
||||
|
||||
Reference in New Issue
Block a user