mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-10-31 02:10:05 +00:00 
			
		
		
		
	Optimized tests für run once
This commit is contained in:
		| @@ -1,4 +1,3 @@ | ||||
| --- | ||||
| galaxy_info: | ||||
|   author: "Kevin Veen-Birkenbach" | ||||
|   description: "Installs and configures components for sending email notifications. This role is part of the sys-alm-compose suite, providing automated alerts when services fail." | ||||
| @@ -10,18 +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 | ||||
|     - systemd | ||||
|     - notifications | ||||
|     - automation | ||||
|     - msmtp | ||||
|   - email | ||||
|   - systemd | ||||
|   - notifications | ||||
|   - automation | ||||
|   - msmtp | ||||
|   repository: "https://github.com/kevinveenbirkenbach/infinito-nexus" | ||||
|   issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues" | ||||
|   documentation: "https://docs.infinito.nexus" | ||||
| dependencies: | ||||
|   - sys-svc-msmtp | ||||
|   - sys-rst-daemon | ||||
|   | ||||
| @@ -1,3 +1,14 @@ | ||||
| - name: Load former meta dependencies once | ||||
|   block: | ||||
|   - name: Include moved dependencies | ||||
|     include_role: | ||||
|       name: '{{ item }}' | ||||
|     loop: | ||||
|     - sys-svc-msmtp | ||||
|     - sys-rst-daemon | ||||
|   - set_fact: | ||||
|       run_once_sys_alm_email: true | ||||
|   when: run_once_sys_alm_email is not defined | ||||
| - name: "create {{systemd_notifier_email_folder}}" | ||||
|   file: | ||||
|     path: "{{systemd_notifier_email_folder}}" | ||||
| @@ -6,11 +17,11 @@ | ||||
|  | ||||
| - name: configure sys-alm-email.sh | ||||
|   template: | ||||
|     src:  sys-alm-email.sh.j2  | ||||
|     src: sys-alm-email.sh.j2 | ||||
|     dest: "{{systemd_notifier_email_folder}}sys-alm-email.sh" | ||||
|  | ||||
| - name: configure sys-alm-email.infinito.service | ||||
|   template:  | ||||
|     src:  sys-alm-email@.service.j2 | ||||
|   template: | ||||
|     src: sys-alm-email@.service.j2 | ||||
|     dest: /etc/systemd/system/sys-alm-email.infinito@.service | ||||
|   notify: restart sys-alm-email service | ||||
|   | ||||
		Reference in New Issue
	
	Block a user