aboutsummaryrefslogtreecommitdiff
path: root/roles/sshd
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2022-12-06 22:33:49 +0100
committerJohannes Stoelp <johannes.stoelp@gmail.com>2022-12-06 22:33:49 +0100
commitb7cdaac241843b03c1947c2981286e12fa050153 (patch)
treea0b41a3b24ff1a3012b217f466d4635a0c25963f /roles/sshd
parent3b040fac09eb158caf963d7c956610f99f8e0c17 (diff)
downloadansible-memzero-b7cdaac241843b03c1947c2981286e12fa050153.tar.gz
ansible-memzero-b7cdaac241843b03c1947c2981286e12fa050153.zip
fix ansible-lint lints
Diffstat (limited to 'roles/sshd')
-rw-r--r--roles/sshd/handlers/main.yml4
-rw-r--r--roles/sshd/tasks/main.yml6
2 files changed, 5 insertions, 5 deletions
diff --git a/roles/sshd/handlers/main.yml b/roles/sshd/handlers/main.yml
index 429dd83..2aadb6d 100644
--- a/roles/sshd/handlers/main.yml
+++ b/roles/sshd/handlers/main.yml
@@ -1,6 +1,6 @@
---
- name: Restart sshd
- become: True
+ become: true
ansible.builtin.service:
name: sshd
- state: restarted \ No newline at end of file
+ state: restarted
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' }