mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 23:08:06 +02:00
Optimized tests für run once
This commit is contained in:
@@ -9,17 +9,15 @@ galaxy_info:
|
||||
https://www.veen.world
|
||||
min_ansible_version: "2.9"
|
||||
platforms:
|
||||
- name: Archlinux
|
||||
versions:
|
||||
- rolling
|
||||
- name: Archlinux
|
||||
versions:
|
||||
- rolling
|
||||
galaxy_tags:
|
||||
- email
|
||||
- msmtp
|
||||
- smtp
|
||||
- automation
|
||||
- archlinux
|
||||
- email
|
||||
- msmtp
|
||||
- smtp
|
||||
- automation
|
||||
- archlinux
|
||||
repository: "https://github.com/kevinveenbirkenbach/infinito-nexus"
|
||||
issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues"
|
||||
documentation: "https://docs.infinito.nexus"
|
||||
dependencies:
|
||||
- sys-hlth-msmtp
|
||||
|
@@ -1,14 +1,22 @@
|
||||
- name: install msmtp msmtp-mta
|
||||
- name: Load former meta dependencies once
|
||||
block:
|
||||
- name: Include moved dependency 'sys-hlth-msmtp'
|
||||
include_role:
|
||||
name: sys-hlth-msmtp
|
||||
- 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
|
||||
- msmtp
|
||||
- msmtp-mta
|
||||
state: present
|
||||
when: run_once_sys_svc_msmtp is not defined
|
||||
|
||||
- name: configure msmtprc.conf.j2
|
||||
template:
|
||||
src: "msmtprc.conf.j2"
|
||||
src: "msmtprc.conf.j2"
|
||||
dest: "/root/.msmtprc"
|
||||
mode: 600
|
||||
when: run_once_sys_svc_msmtp is not defined
|
||||
@@ -16,4 +24,4 @@
|
||||
- name: run the msmtp tasks once
|
||||
set_fact:
|
||||
run_once_sys_svc_msmtp: true
|
||||
when: run_once_sys_svc_msmtp is not defined
|
||||
when: run_once_sys_svc_msmtp is not defined
|
||||
|
Reference in New Issue
Block a user