forked from LibreSchool/server-config
17 lines
638 B
Bash
17 lines
638 B
Bash
#!/bin/bash
|
|
|
|
# Script provvisorio.
|
|
# Potremmo decidere di far eseguire uno script generato da servizio
|
|
# domainhelper contenente anche l'eventuale branch da usare.
|
|
|
|
url=git://{{ ansible_local.domain.serverfqdn }}/client-pull-installation.git
|
|
repo=/var/lib/{{ ansible_local.domain.domainfull }}/config
|
|
logfile=/var/lib/ansible-pull.log
|
|
branch=master
|
|
playbook=local.yml
|
|
|
|
vaultpassfile=$(\curl -sSL http://{{ ansible_local.domain.serverfqdn }}/ks/ansible-pull/getvaultpass.py | python)
|
|
|
|
ansible-pull --accept-host-key -d "${repo}" -U "${url}" -C "${branch}" "${playbook}" --vault-password-file "${vaultpassfile}" $@
|
|
rm -f "${vaultpassfile}"
|