Skip to content

deployment: Using tags to limit what is deployed does not work #140

@csomh

Description

@csomh

In theory specifying some tags when running a deployment for the update service, should limit the tasks which are run. For example:

$ DEPLOYMENT=local TAGS="worker,pushgateway" make deploy

should only run the tasks from the deploy role which are tagged with always or worker or pushgateway.

But instead no task is run.

Adding the always tag to the role in deployment/deploy.yml will make all tasks to be executed (no filtering happens).

Tried the above with:

ansible-playbook 2.9.14
  config file = /home/hcsomort/.ansible.cfg
  configured module search path = ['/home/hcsomort/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.8/site-packages/ansible
  executable location = /usr/bin/ansible-playbook
  python version = 3.8.6 (default, Sep 25 2020, 00:00:00) [GCC 10.2.1 20200723 (Red Hat 10.2.1-1)]

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