diff --git a/roles/config-root-user/tasks/main.yaml b/roles/config-root-user/tasks/main.yaml index 9efa9a4..7bd2131 100644 --- a/roles/config-root-user/tasks/main.yaml +++ b/roles/config-root-user/tasks/main.yaml @@ -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