xoxys.sshd/tasks/main.yml

15 lines
417 B
YAML
Raw Normal View History

2019-11-02 18:10:39 +00:00
---
- name: Configure sshd
ansible.builtin.include_tasks: "{{ lookup('first_found', params) }}"
2019-11-02 18:10:39 +00:00
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
2019-11-02 18:10:39 +00:00
when: sshd_google_auth_enabled | bool