mirror of
https://github.com/willshersystems/ansible-sshd
synced 2024-09-20 15:31:32 +02:00
17 lines
362 B
YAML
17 lines
362 B
YAML
|
---
|
||
|
- name: Include OS specific configuration
|
||
|
include_vars: "{{ item }}"
|
||
|
with_first_found:
|
||
|
- "{{ ansible_distribution }}.yml"
|
||
|
- "{{ ansible_os_family }}.yml"
|
||
|
- default.yml
|
||
|
|
||
|
- name: sshd configuration
|
||
|
template:
|
||
|
src: sshd_config.j2
|
||
|
dest: "{{ sshd_config_file }}"
|
||
|
owner: root
|
||
|
group: root
|
||
|
mode: 600
|
||
|
notify: check and reload sshd
|