Tags
The tags provide the user with a very useful tool to run selected tasks of the role. To see what tags are available list the tags of the role with the command
shell> ansible-playbook pb.yml --list-tags
playbook: pb.yml
play #1 (build.example.com): build.example.com TAGS: []
TASK TAGS: [always, poudriere_cert, poudriere_conf,
poudriere_conf_dirs, poudriere_conf_file, poudriere_debug,
poudriere_dirs, poudriere_key, poudriere_make,
poudriere_options, poudriere_packages, poudriere_pkglists]
For example, display the list of the variables and their values with the tag poudriere_debug
(when the
debug is enabled poudriere_debug: true
)
shell> ansible-playbook pb.yml -t poudriere_debug
See what packages will be installed
shell> ansible-playbook pb.yml -t poudriere_packages --check
Install packages and exit the play
shell> ansible-playbook pb.yml -t poudriere_packages