From 75841b7a51ba59f4c4566687518bda7ac1b26096 Mon Sep 17 00:00:00 2001 From: Bertrand Lanson Date: Sun, 18 Jun 2023 22:07:03 +0200 Subject: [PATCH] don't use free-form to conform with ansible-lint --- tasks/configure_host.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tasks/configure_host.yml b/tasks/configure_host.yml index 0fb2e58..f1cd330 100644 --- a/tasks/configure_host.yml +++ b/tasks/configure_host.yml @@ -2,22 +2,22 @@ # task/configure_host file for provision_management_user - name: "Lock root password authentication" ansible.builtin.lineinfile: - dest=/etc/ssh/sshd_config - regexp='^PasswordAuthentication' - line="PasswordAuthentication no" - state=present - backup=yes + dest: /etc/ssh/sshd_config + regexp: '^PasswordAuthentication' + line: "PasswordAuthentication no" + state: present + backup: yes notify: - systemctl-restart-sshd when: provision_management_user_disable_root_password_auth - name: "Lock root authentication" ansible.builtin.lineinfile: - dest=/etc/ssh/sshd_config - regexp='^PermitRootLogin' - line="PermitRootLogin no" - state=present - backup=yes + dest: /etc/ssh/sshd_config + regexp: '^PermitRootLogin' + line: "PermitRootLogin no" + state: present + backup: yes notify: - systemctl-restart-sshd when: provision_management_user_disable_root_login