Optimized pkgmgr-install

This commit is contained in:
Kevin Veen-Birkenbach 2025-07-15 17:59:32 +02:00
parent 766fe39c4c
commit 111d6ac50d
No known key found for this signature in database
GPG Key ID: 44D8F11FD62F878E
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
package_notify: "" # The handler which should be notified, if the package install changes something

View File

@ -8,7 +8,7 @@
shell: |
source ~/.venvs/pkgmgr/bin/activate
pkgmgr update {{ package_name }} --dependencies --clone-mode https
notify: "{{ package_notify | default(omit) }}"
notify: "{{ package_notify | default(omit,true) }}"
register: pkgmgr_update_result
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