Update
This commit is contained in:
parent
8e171bb79d
commit
0912b451f2
1 changed files with 2 additions and 2 deletions
|
@ -76,7 +76,7 @@ echo "- hosts: $fqdn
|
|||
while read line
|
||||
do
|
||||
elements=()
|
||||
for element in $(echo $line | tr ";" "\n"); do elements+=("$e");done
|
||||
for element in $(echo $line | tr ":" "\n"); do elements+=("$e");done
|
||||
case ${elements[0]} in
|
||||
"role")
|
||||
# format role:role name:branch/tag to use
|
||||
|
@ -114,6 +114,6 @@ done </tmp/$fqdn
|
|||
rm -r /ansible/prev/*
|
||||
mv /ansible/$fqdn.yml /ansible/prev/
|
||||
mv /ansible/roles/ /ansible/prev
|
||||
mv /ansible/new /ansible
|
||||
mv /ansible/new/* /ansible/
|
||||
|
||||
# end of build_ansible.sh
|
Loading…
Add table
Reference in a new issue