Removed dependencies and used include_roles to raise performance and make infinito to a racing car

This commit is contained in:
2025-08-11 21:56:34 +02:00
parent b301e58ee6
commit fbaee683fd
9 changed files with 183 additions and 29 deletions

View File

@@ -1,14 +1,14 @@
- name: create sshd_config
template:
src: "sshd_config.j2"
dest: /etc/ssh/sshd_config
owner: root
group: root
mode: '0644'
notify: sshd restart
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
- name: run the sshd tasks once
set_fact:
run_once_sys_svc_sshd: true
when: run_once_sys_svc_sshd is not defined