mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-07-19 23:04:25 +02:00
Optimized pkgmgr-install
This commit is contained in:
parent
766fe39c4c
commit
111d6ac50d
1
roles/pkgmgr-install/defaults/main.yml
Normal file
1
roles/pkgmgr-install/defaults/main.yml
Normal file
@ -0,0 +1 @@
|
|||||||
|
package_notify: "" # The handler which should be notified, if the package install changes something
|
@ -8,7 +8,7 @@
|
|||||||
shell: |
|
shell: |
|
||||||
source ~/.venvs/pkgmgr/bin/activate
|
source ~/.venvs/pkgmgr/bin/activate
|
||||||
pkgmgr update {{ package_name }} --dependencies --clone-mode https
|
pkgmgr update {{ package_name }} --dependencies --clone-mode https
|
||||||
notify: "{{ package_notify | default(omit) }}"
|
notify: "{{ package_notify | default(omit,true) }}"
|
||||||
register: pkgmgr_update_result
|
register: pkgmgr_update_result
|
||||||
changed_when: "'No command defined and neither main.sh nor main.py found' not in pkgmgr_update_result.stdout"
|
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
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user