Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tasks in install.debian.yml when using tags aren't executed #175

Open
HugoPoi opened this issue Sep 11, 2019 · 1 comment
Open

Tasks in install.debian.yml when using tags aren't executed #175

HugoPoi opened this issue Sep 11, 2019 · 1 comment

Comments

@HugoPoi
Copy link

HugoPoi commented Sep 11, 2019

When you use undergreen.mongodb and you use the --tags mongodb, the task Include OS-specific variables and all tasks in install.debian.yml are NOT executed, resulting a very different behavior.

Also there is lot of include aka include_tasks but I'm not sure about the usage but in the documentation it seems tags aren't applied to included tasks.
May be need to use this syntax

- name: Apply tags to tasks within included file
  include_tasks:
    file: install.yml
    apply:
      tags:
        - install
  tags:
    - always
@HugoPoi
Copy link
Author

HugoPoi commented Sep 12, 2019

I found a workaround

  roles:
    - role: undergreen.mongodb
      tags: ['mongodb']

@HugoPoi HugoPoi changed the title Debian.yml doesn't included when using tags, change the general behavior Task in install.debian.yml when using tags aren't executed Sep 12, 2019
@HugoPoi HugoPoi changed the title Task in install.debian.yml when using tags aren't executed Tasks in install.debian.yml when using tags aren't executed Sep 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant