Replaced depenencies by includes for performance reasons

This commit is contained in:
2025-08-12 03:08:33 +02:00
parent 8634b5e1b3
commit 1a42e8bd14
89 changed files with 716 additions and 830 deletions

View File

@@ -0,0 +1,17 @@
- name: Include dependency 'sys-hlth-msmtp'
include_role:
name: sys-hlth-msmtp
when: run_once_sys_hlth_msmtp is not defined
- name: install msmtp msmtp-mta
community.general.pacman:
name:
- msmtp
- msmtp-mta
state: present
- name: configure msmtprc.conf.j2
template:
src: "msmtprc.conf.j2"
dest: "/root/.msmtprc"
mode: 600

View File

@@ -1,27 +1,5 @@
- name: Load former meta dependencies once
block:
- name: Include moved dependency 'sys-hlth-msmtp'
include_role:
name: sys-hlth-msmtp
- block:
- include_tasks: 01_core.yml
- set_fact:
run_once_sys_svc_msmtp: true
when: run_once_sys_svc_msmtp is not defined
- name: install msmtp msmtp-mta
community.general.pacman:
name:
- msmtp
- msmtp-mta
state: present
when: run_once_sys_svc_msmtp is not defined
- name: configure msmtprc.conf.j2
template:
src: "msmtprc.conf.j2"
dest: "/root/.msmtprc"
mode: 600
when: run_once_sys_svc_msmtp is not defined
- name: run the msmtp tasks once
set_fact:
run_once_sys_svc_msmtp: true
when: run_once_sys_svc_msmtp is not defined