mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-10-31 18:29:21 +00:00 
			
		
		
		
	Optimized tests für run once
This commit is contained in:
		| @@ -1,4 +1,3 @@ | ||||
| --- | ||||
| galaxy_info: | ||||
|   author: "Kevin Veen-Birkenbach" | ||||
|   description: "Periodic MTA health-check: sends test mail via msmtp and alerts on failure." | ||||
| @@ -10,15 +9,13 @@ galaxy_info: | ||||
|   license_url: "https://s.veen.world/cncl" | ||||
|   min_ansible_version: "2.9" | ||||
|   platforms: | ||||
|     - name: Archlinux | ||||
|       versions: ["rolling"] | ||||
|   - name: Archlinux | ||||
|     versions: ["rolling"] | ||||
|   galaxy_tags: | ||||
|     - monitor | ||||
|     - msmtp | ||||
|     - email | ||||
|     - health | ||||
|     - systemd | ||||
|   - monitor | ||||
|   - msmtp | ||||
|   - email | ||||
|   - health | ||||
|   - systemd | ||||
|   repository: "https://github.com/kevinveenbirkenbach/infinito-nexus" | ||||
|   documentation: "https://docs.infinito.nexus" | ||||
| dependencies: | ||||
|   - sys-alm-telegram | ||||
|   | ||||
| @@ -1,3 +1,11 @@ | ||||
| - name: Load former meta dependencies once | ||||
|   block: | ||||
|   - name: Include moved dependency 'sys-alm-telegram' | ||||
|     include_role: | ||||
|       name: sys-alm-telegram | ||||
|   - set_fact: | ||||
|       run_once_sys_hlth_msmtp: true | ||||
|   when: run_once_sys_hlth_msmtp is not defined | ||||
| - name: "create {{ health_msmtp_folder }}" | ||||
|   file: | ||||
|     path: "{{ health_msmtp_folder }}" | ||||
| @@ -6,7 +14,7 @@ | ||||
|  | ||||
| - name: create sys-hlth-msmtp.sh | ||||
|   template: | ||||
|     src:  sys-hlth-msmtp.sh.j2 | ||||
|     src: sys-hlth-msmtp.sh.j2 | ||||
|     dest: "{{ health_msmtp_folder }}sys-hlth-msmtp.sh" | ||||
|     mode: '0755' | ||||
|  | ||||
| @@ -24,4 +32,4 @@ | ||||
|   include_role: | ||||
|     name: sys-timer | ||||
|   vars: | ||||
|     on_calendar: "{{ on_calendar_health_msmtp }}" | ||||
|     on_calendar: "{{ on_calendar_health_msmtp }}" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user