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:
@@ -1,4 +1,3 @@
|
||||
---
|
||||
galaxy_info:
|
||||
author: "Kevin Veen-Birkenbach"
|
||||
description: "Disk-space usage monitor; alerts when usage exceeds threshold."
|
||||
@@ -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
|
||||
- disk
|
||||
- space
|
||||
- health
|
||||
- systemd
|
||||
- monitor
|
||||
- disk
|
||||
- space
|
||||
- health
|
||||
- systemd
|
||||
repository: "https://github.com/kevinveenbirkenbach/infinito-nexus"
|
||||
documentation: "https://docs.infinito.nexus"
|
||||
dependencies:
|
||||
- sys-alm-compose
|
||||
|
@@ -1,3 +1,11 @@
|
||||
- name: Load former meta dependencies once
|
||||
block:
|
||||
- name: Include moved dependency 'sys-alm-compose'
|
||||
include_role:
|
||||
name: sys-alm-compose
|
||||
- set_fact:
|
||||
run_once_sys_hlth_disc_space: true
|
||||
when: run_once_sys_hlth_disc_space is not defined
|
||||
- name: "create {{health_disc_space_folder}}"
|
||||
file:
|
||||
path: "{{health_disc_space_folder}}"
|
||||
@@ -10,7 +18,7 @@
|
||||
dest: "{{health_disc_space_folder}}sys-hlth-disc-space.sh"
|
||||
|
||||
- name: create sys-hlth-disc-space.infinito.service
|
||||
template:
|
||||
template:
|
||||
src: sys-hlth-disc-space.service.j2
|
||||
dest: /etc/systemd/system/sys-hlth-disc-space.infinito.service
|
||||
notify: reload sys-hlth-disc-space.infinito.service
|
||||
@@ -23,4 +31,4 @@
|
||||
include_role:
|
||||
name: sys-timer
|
||||
vars:
|
||||
on_calendar: "{{on_calendar_health_disc_space}}"
|
||||
on_calendar: "{{on_calendar_health_disc_space}}"
|
||||
|
Reference in New Issue
Block a user