don't use free-form to conform with ansible-lint

This commit is contained in:
Bertrand Lanson 2023-06-18 22:07:03 +02:00
parent 83d51dd733
commit 75841b7a51

View File

@ -2,22 +2,22 @@
# task/configure_host file for provision_management_user # task/configure_host file for provision_management_user
- name: "Lock root password authentication" - name: "Lock root password authentication"
ansible.builtin.lineinfile: ansible.builtin.lineinfile:
dest=/etc/ssh/sshd_config dest: /etc/ssh/sshd_config
regexp='^PasswordAuthentication' regexp: '^PasswordAuthentication'
line="PasswordAuthentication no" line: "PasswordAuthentication no"
state=present state: present
backup=yes backup: yes
notify: notify:
- systemctl-restart-sshd - systemctl-restart-sshd
when: provision_management_user_disable_root_password_auth when: provision_management_user_disable_root_password_auth
- name: "Lock root authentication" - name: "Lock root authentication"
ansible.builtin.lineinfile: ansible.builtin.lineinfile:
dest=/etc/ssh/sshd_config dest: /etc/ssh/sshd_config
regexp='^PermitRootLogin' regexp: '^PermitRootLogin'
line="PermitRootLogin no" line: "PermitRootLogin no"
state=present state: present
backup=yes backup: yes
notify: notify:
- systemctl-restart-sshd - systemctl-restart-sshd
when: provision_management_user_disable_root_login when: provision_management_user_disable_root_login