Rewrote the names for two tasks

This commit is contained in:
Alex Tavarez
2024-05-12 17:41:16 -04:00
parent 4f77bd62e7
commit 3d7d13dc64

View File

@@ -196,9 +196,9 @@
owner: root owner: root
group: root group: root
mode: "u=rw,g=r,o=r" mode: "u=rw,g=r,o=r"
- name: "disabling password authentication" - name: "disabling ssh password authentication"
ansible.builtin.shell: 'printf "PasswordAuthentication no\n" >> {{ ssh_auth_file }}' ansible.builtin.shell: 'printf "PasswordAuthentication no\n" >> {{ ssh_auth_file }}'
- name: "disabling empty password usage" - name: "disabling ssh empty password usage"
ansible.builtin.shell: 'printf "PermitEmptyPasswords no\n" >> {{ ssh_auth_file }}' ansible.builtin.shell: 'printf "PermitEmptyPasswords no\n" >> {{ ssh_auth_file }}'
- name: "disabling ssh root login" - name: "disabling ssh root login"
ansible.builtin.shell: 'printf "PermitRootLogin no\n" > {{ ssh_no_root }}' ansible.builtin.shell: 'printf "PermitRootLogin no\n" > {{ ssh_no_root }}'