mirror of
https://github.com/foo-dogsquared/ansible-playbooks.git
synced 2025-02-12 06:19:01 +00:00
![Gabriel Arazas](/assets/img/avatar_default.png)
Seems like I misunderstood what tags are for. They're not individual flags for the play, they're commonly used for excluding/including tasks at runtime (e.g., `ansible-playbook $PLAYBOOK --tags $TAGS`). When running a playbook, it will execute all tasks by default. Think of them as attaching a label and letting the user choose from the playbook run. Setting multiple tags at the playbook-level seems to be the best practice as seen from jwflory's Ansible playbooks.
9 lines
194 B
YAML
9 lines
194 B
YAML
---
|
|
- name: Install minimal development environment tools
|
|
include: dev_minimal.yml
|
|
tags: dev_minimal
|
|
|
|
- name: Install additional development tools
|
|
include: dev_extra.yml
|
|
tags: dev_extra
|