blob: ad33233f35f71924a9c40a41808a4fc07b200921 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/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
|