16 lines
428 B
YAML

- block:
- name: Include dependency 'user-administrator'
include_role:
name: user-administrator
when: run_once_user_administrator is not defined
- name: create sshd_config
template:
src: "sshd_config.j2"
dest: /etc/ssh/sshd_config
owner: root
group: root
mode: '0644'
notify: sshd restart
- include_tasks: utils/run_once.yml
when: run_once_sys_svc_sshd is not defined