I tried running my playbook with ansible-playbook -i production.ini --tags prometheus_install ... and it failed with
TASK [prometheus.prometheus._common : Make sure binary install dir exists] *****
fatal: [prod]: FAILED! => {"msg": "The conditional check 'not __common_binary_install_dir.stat.exists' failed. The error was: error while evaluating conditional (not __common_binary_install_dir.stat.exists): '__common_binary_install_dir' is undefined
The issue seams to be that some tasks like
|
- name: "Check existence of binary install dir" |
|
ansible.builtin.stat: |
|
path: "{{ _common_binary_install_dir }}" |
|
register: __common_binary_install_dir |
are not tagged with *install like the others.
Is there a specifiy reason for this?
I'm not sure whether this is a mistake or if this is on purpose (the behavior makes me believe it is a mistake but the code looks like it is on purpose).
I tried running my playbook with
ansible-playbook -i production.ini --tags prometheus_install ...and it failed withThe issue seams to be that some tasks like
ansible/roles/_common/tasks/install.yml
Lines 125 to 128 in c7a8953
are not tagged with
*installlike the others.Is there a specifiy reason for this?
I'm not sure whether this is a mistake or if this is on purpose (the behavior makes me believe it is a mistake but the code looks like it is on purpose).