Tags
The tags provide the user with a very useful tool to run selected tasks of the role. List them to see what tags are available
ansible-playbook pb.yml –list-tags
playbook: pb.yml
play #1 (build.example.com): build.example.com TAGS: []
TASK TAGS: [poudriere_cert, poudriere_conf, poudriere_conf_dirs,
poudriere_conf_file, poudriere_debug, poudriere_dirs, poudriere_key,
poudriere_make, poudriere_options, poudriere_pkg, poudriere_pkglists,
poudriere_sanity]
For example:
Display the variables and their values usisng the tag
poudriere_debug(enable debugpoudriere_debug=true)shell> ansible-playbook pb.yml -t poudriere_debug -e poudriere_debug=true
See what packages will be installed (enable installation
poudriere_install=true)shell> ansible-playbook pb.yml -t poudriere_pkg -e poudriere_install=true --check
Install packages and exit the play
shell> ansible-playbook pb.yml -t poudriere_pkg -e poudriere_install=true
See what package lists will be created
shell> ansible-playbook pb.yml -t poudriere_pkglists --check --diff