Skip to content

Running ansible with prometheus_install tag fails #659

@Lukas-Heindl

Description

@Lukas-Heindl

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions