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:
2025-08-08 15:32:26 +02:00
parent e675aa5886
commit c7b25ed093
58 changed files with 410 additions and 293 deletions

View File

@@ -4,27 +4,27 @@
path: "{{ path_docker_compose_instances }}"
register: docker_compose_directory_stat
when:
- run_once_update is not defined
- run_once_update_compose is not defined
- name: "Update with pacman"
include_role:
name: update-pacman
when:
- run_once_update is not defined
- run_once_update_compose is not defined
- ansible_distribution == 'Archlinux'
- name: "Update with apt"
include_role:
name: update-apt
when:
- run_once_update is not defined
- run_once_update_compose is not defined
- ansible_distribution == "Debian"
- name: "Update Docker Images"
include_role:
name: update-docker
when:
- run_once_update is not defined
- run_once_update_compose is not defined
- docker_compose_directory_stat.stat.exists
- name: "Check if yay is installed"
@@ -33,13 +33,13 @@
changed_when: false
failed_when: false
when:
- run_once_update is not defined
- run_once_update_compose is not defined
- name: "Update with yay"
include_role:
name: update-yay
when:
- run_once_update is not defined
- run_once_update_compose is not defined
- yay_installed.rc == 0
@@ -49,13 +49,13 @@
changed_when: false
failed_when: false
when:
- run_once_update is not defined
- run_once_update_compose is not defined
- name: "Update with pip"
include_role:
name: update-pip
when:
- run_once_update is not defined
- run_once_update_compose is not defined
- name: "Check if pkgmgr command is available"
@@ -63,16 +63,16 @@
register: pkgmgr_available
failed_when: false
when:
- run_once_update is not defined
- run_once_update_compose is not defined
- name: "Update all repositories using pkgmgr"
include_role:
name: update-pkgmgr
when:
- pkgmgr_available.rc == 0
- run_once_update is not defined
- run_once_update_compose is not defined
- name: run the update tasks once
set_fact:
run_once_update: true
when: run_once_update is not defined
run_once_update_compose: true
when: run_once_update_compose is not defined