disable to maintain authorized keys file

This commit is contained in:
Ruben Blanco 2024-02-12 11:23:17 +01:00
parent e4a3f48c81
commit 291d766fc6
1 changed files with 5 additions and 4 deletions

View File

@ -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