ansible-roles/library/roles/sshd_config/tasks/main.yml

7 lines
255 B
YAML

---
- name: Install the sshd configuration file
template: src=sshd_config.j2 dest={{ sshd_config_dir }}/{{ sshd_config_file }} owner=root group=root mode=0644
notify: Reload the ssh service
when: sshd_install_config
tags: [ 'ssh', 'sshd_config' ]