Ansible: In a playbook, filter a role by tag(s) without passing at the command-line

后端 未结 2 1265
醉话见心
醉话见心 2021-02-05 00:08

In Ansible 1.7, I can use --tags from the command-line to only run a subset of that playbooks tasks.

But I\'m wanting to bake into my playbook to run a set of roles wit

2条回答
  •  忘掉有多难
    2021-02-05 00:27

    The use of conditionals can meet your needs.

    You can see more information in my answer to another person's similar question here.

提交回复
热议问题