lint: .yml -> .yaml

This commit is contained in:
uumas
2025-01-27 04:57:37 +02:00
parent e2f5e49fe8
commit b76fce1e1f
19 changed files with 0 additions and 0 deletions

13
roles/ssh/tasks/main.yaml Normal file
View File

@@ -0,0 +1,13 @@
---
- name: Ensure sshd config options set correctly
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 sshd
with_dict:
PermitRootLogin: 'prohibit-password'
PasswordAuthentication: "{{ 'yes' if sshd_password_auth else 'no' }}"
X11Forwarding: "{{ 'yes' if sshd_x11_forwarding else 'no' }}"