From b7cdaac241843b03c1947c2981286e12fa050153 Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Tue, 6 Dec 2022 22:33:49 +0100 Subject: fix ansible-lint lints --- roles/sshd/tasks/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'roles/sshd/tasks/main.yml') diff --git a/roles/sshd/tasks/main.yml b/roles/sshd/tasks/main.yml index c4dd9ea..a0f2ba3 100644 --- a/roles/sshd/tasks/main.yml +++ b/roles/sshd/tasks/main.yml @@ -1,7 +1,7 @@ --- - name: Configure sshd - become: True - lineinfile: + become: true + ansible.builtin.lineinfile: dest: "/etc/ssh/sshd_config" regexp: "{{ item.regex }}" line: "{{ item.line }}" @@ -10,4 +10,4 @@ - { regex: '^(#\s*)?PermitEmptyPasswords' , line: 'PermitEmptyPasswords no' } - { regex: '^(#\s*)?PermitRootLogin' , line: 'PermitRootLogin no' } - { regex: '^(#\s*)?PasswordAuthentication', line: 'PasswordAuthentication no' } - - { regex: '^(#\s*)?UsePAM' , line: 'UsePAM yes' } \ No newline at end of file + - { regex: '^(#\s*)?UsePAM' , line: 'UsePAM yes' } -- cgit v1.2.3