23 lines
571 B
YAML

- name: Load former meta dependencies once
block:
- name: Include moved dependency 'user-administrator'
include_role:
name: user-administrator
- set_fact:
run_once_sys_svc_sshd: true
when: run_once_sys_svc_sshd is not defined
- block:
- name: create sshd_config
template:
src: "sshd_config.j2"
dest: /etc/ssh/sshd_config
owner: root
group: root
mode: '0644'
notify: sshd restart
- name: run the sshd tasks once
set_fact:
run_once_sys_svc_sshd: true
when: run_once_sys_svc_sshd is not defined