formatting
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
---
|
||||
|
||||
- name: Ensure sshd config options set correctly
|
||||
lineinfile:
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/ssh/sshd_config
|
||||
regexp: "^#?{{ item.key }} .*$"
|
||||
line: "{{ item.key }} {{ item.value }}"
|
||||
state: present
|
||||
validate: '/usr/sbin/sshd -t -f %s'
|
||||
notify: restart ssh
|
||||
notify: Restart ssh
|
||||
with_dict:
|
||||
PermitRootLogin: 'prohibit-password'
|
||||
PasswordAuthentication: "{{ 'yes' if sshd_password_auth else 'no' }}"
|
||||
|
||||
Reference in New Issue
Block a user