updated build_ansible.sh and privtorrents template to include ansible tags
This commit is contained in:
parent
d1f0aa8848
commit
88f7f7ed55
2 changed files with 14 additions and 6 deletions
|
@ -89,7 +89,15 @@ do
|
|||
echo "issue grabbing role $role - dir/file count less than 9, exiting"
|
||||
exit
|
||||
fi
|
||||
echo " - ${elements[1]}" >> /ansible/new/$fqdn.yml
|
||||
|
||||
#get tags and add role
|
||||
if [ -n "${elements[3]}" ];then
|
||||
tags="\"${elements[3]//,/\",\"}\""
|
||||
echo " - { role: ${elements[1]}, tags: [${tags}] }" >> /ansible/new/$fqdn.yml
|
||||
else
|
||||
echo " - ${elements[1]}" >> /ansible/new/$fqdn.yml
|
||||
fi
|
||||
|
||||
|
||||
# retrieve var file if it exists
|
||||
curl -k "https://git.actcur.com/actcur-ansible/playbook-builder/raw/branch/$branch/var_files/${elements[1]}/$fqdn" -H "accept: application/raw" -o /tmp/main.yml
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
role:core:testing
|
||||
role:mount:testing
|
||||
role:deluge:testing
|
||||
role:nginx-ssl:testing
|
||||
role:certbot:testing
|
||||
role:core:v1.0:core
|
||||
role:mount:v1.0:core,mount
|
||||
role:deluge:v1.0:workload,deluge
|
||||
role:nginx-ssl:v1.0:common,nginx-ssl
|
||||
role:certbot:v1.0:common,certbot
|
||||
|
||||
# end of file
|
Loading…
Add table
Reference in a new issue