disable to maintain authorized keys file
This commit is contained in:
parent
e4a3f48c81
commit
291d766fc6
|
@ -18,11 +18,12 @@
|
|||
name: root
|
||||
password: "{{ ssh_password | password_hash('sha512') }}"
|
||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
# DISABLE to MAINTAIN AUTHORIZED KEYS FILE
|
||||
# delete root ssh pub key in Authorized_keys
|
||||
- name: delete ssh pub key in /root/.ssh/authorized_keys
|
||||
file:
|
||||
path: "{{ root_authorized_keys }}"
|
||||
state: absent
|
||||
#- name: delete ssh pub key in /root/.ssh/authorized_keys
|
||||
# file:
|
||||
# path: "{{ root_authorized_keys }}"
|
||||
# state: absent
|
||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
# config sshd_config file , no root password
|
||||
#- name: change sshd_config to no root password
|
||||
|
|
Loading…
Reference in New Issue