Replaced depenencies by includes for performance reasons

This commit is contained in:
2025-08-12 03:08:33 +02:00
parent 8634b5e1b3
commit 1a42e8bd14
89 changed files with 716 additions and 830 deletions

View File

@@ -0,0 +1,9 @@
- name: Include dependency 'pkgmgr'
include_role:
name: pkgmgr
when: run_once_pkgmgr is not defined
- name: update pkgmgr
shell: |
source ~/.venvs/pkgmgr/bin/activate
pkgmgr update pkgmgr

View File

@@ -1,16 +1,8 @@
- name: Load former meta dependencies once
block:
- name: Include moved dependency 'pkgmgr'
include_role:
name: pkgmgr
- block:
- include_tasks: 01_core.yml
- set_fact:
run_once_pkgmgr_install: true
when: run_once_pkgmgr_install is not defined
- name: update pkgmgr
shell: |
source ~/.venvs/pkgmgr/bin/activate
pkgmgr update pkgmgr
when: run_once_pkgmgr_install is not defined
- name: update {{ package_name }}
shell: |
@@ -21,7 +13,3 @@
changed_when: "'No command defined and neither main.sh nor main.py found' not in pkgmgr_update_result.stdout"
failed_when: pkgmgr_update_result.rc != 0 and 'No command defined and neither main.sh nor main.py found' not in pkgmgr_update_result.stdout
- name: mark pkgmgr update as done
set_fact:
run_once_pkgmgr_install: true
when: run_once_pkgmgr_install is not defined