mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-30 15:28:12 +02:00
Normalized run_once_, made openresty handlers without when aviable and forced flush in run_once when blocks to avoid handlers with when conditions
This commit is contained in:
@@ -6,7 +6,7 @@ This Ansible role installs Git on the target system using the Pacman package man
|
||||
|
||||
## Overview
|
||||
|
||||
Designed for Arch Linux systems, this role leverages the `pacman` module to install Git. It uses a fact (`run_once_git`) to control task execution, ensuring that the Git installation is performed only once per run.
|
||||
Designed for Arch Linux systems, this role leverages the `pacman` module to install Git. It uses a fact (`run_once_dev_git`) to control task execution, ensuring that the Git installation is performed only once per run.
|
||||
|
||||
## Purpose
|
||||
|
||||
|
@@ -2,9 +2,9 @@
|
||||
pacman:
|
||||
name: git
|
||||
state: present
|
||||
when: run_once_git is not defined
|
||||
when: run_once_dev_git is not defined
|
||||
|
||||
- name: run the git tasks once
|
||||
set_fact:
|
||||
run_once_git: true
|
||||
when: run_once_git is not defined
|
||||
run_once_dev_git: true
|
||||
when: run_once_dev_git is not defined
|
Reference in New Issue
Block a user