ansible-sshd/tasks/main.yml

17 lines
362 B
YAML
Raw Normal View History

2014-12-18 23:12:51 +01:00
---
- 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