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).jenkins-master
parent
815240983f
commit
d6fff04985
|
@ -21,3 +21,12 @@
|
||||||
tags:
|
tags:
|
||||||
- root-user
|
- root-user
|
||||||
- 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
|
||||||
|
|
Loading…
Reference in New Issue