aboutsummaryrefslogtreecommitdiffstats
path: root/apply_roles
blob: 8b0aa514fd2fef66123fc84edfc3e43103e7d192 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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



remember that computers suck.