aboutsummaryrefslogblamecommitdiffstats
path: root/apply_roles
blob: 8b0aa514fd2fef66123fc84edfc3e43103e7d192 (plain) (tree)
1
2
3
4
5
6
7
8
9
10






                                                       
                                                                       

 


                                                          
    


 
#!/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.