15 lines
417 B
YAML
15 lines
417 B
YAML
---
|
|
- name: Configure sshd
|
|
ansible.builtin.include_tasks: "{{ lookup('first_found', params) }}"
|
|
vars:
|
|
params:
|
|
files:
|
|
- "ssh_{{ ansible_lsb.id | default('') | lower }}.yml"
|
|
- "ssh_{{ ansible_os_family | lower }}.yml"
|
|
- "ssh_default.yml"
|
|
paths:
|
|
- "tasks"
|
|
- name: Configure sshd 2FA
|
|
ansible.builtin.include_tasks: ssh_2fa.yml
|
|
when: sshd_google_auth_enabled | bool
|