Optimized tests für run once

This commit is contained in:
2025-08-12 02:38:37 +02:00
parent 82aaf7ad74
commit 1595a7c4a6
148 changed files with 1803 additions and 1147 deletions

View File

@@ -1,4 +1,3 @@
---
galaxy_info:
author: "Kevin Veen-Birkenbach"
description: "Installs caffeine-ng and configures it to autostart for preventing screen sleep on GNOME."
@@ -6,12 +5,10 @@ galaxy_info:
license_url: "https://s.veen.world/cncl"
min_ansible_version: "2.4"
platforms:
- name: Archlinux
versions:
- all
- name: Archlinux
versions:
- all
galaxy_tags:
- caffeine
- autostart
- archlinux
dependencies:
- dev-yay
- caffeine
- autostart
- archlinux

View File

@@ -1,9 +1,16 @@
---
- name: Load former meta dependencies once
block:
- name: Include moved dependency 'dev-yay'
include_role:
name: dev-yay
- set_fact:
run_once_desk_gnome_caffeine: true
when: run_once_desk_gnome_caffeine is not defined
- name: Install caffeine
kewlfft.aur.aur:
use: yay
name:
- caffeine-ng
- caffeine-ng
become: false
- name: Create autostart directory if it doesn't exist