blob: 8b0aa514fd2fef66123fc84edfc3e43103e7d192 (
plain) (
tree)
|
|
#!/bin/bash
#
# Apply specific ansible tags/roles to selected machine
# @usage
# Help fonction
function usage() {
echo "Usage: ${0} \"role1 role2 .. roleN\" [ANSIBLE_ARGUMENTS]"
}
for role in ${1}; do
ansible_args=$(echo "${@:2}")
ansible-playbook ${ansible_args} --tags "${role}"
done
|