Esteso ansible-pull.sh per gestire anche branch e playbook, comunque a default.
This commit is contained in:
parent
ffc74fc52f
commit
e5aaed31ac
@ -1,9 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
url=https://github.com/syntaxerrormmm/pulltest.git
|
# Script provvisorio.
|
||||||
|
# Potremmo decidere di far eseguire uno script generato da servizio
|
||||||
|
# domainhelper contenente anche l'eventuale branch da usare.
|
||||||
|
|
||||||
|
url=git://{{ serverfqdn }}/client-pull-installation.git
|
||||||
repo=/var/lib/{{ domainfull }}/config
|
repo=/var/lib/{{ domainfull }}/config
|
||||||
logfile=/var/lib/ansible-pull.log
|
logfile=/var/lib/ansible-pull.log
|
||||||
|
branch=master
|
||||||
|
playbook=local.yml
|
||||||
|
|
||||||
export https_proxy=https://{{ serverip }}:3128
|
ansible-pull -d "${repo}" -U "${url}" -C "${branch}" "${playbook}"
|
||||||
ansible-pull -d "${repo}" -U "${url}"
|
|
||||||
unset https_proxy
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user