web-build: Initial version
This commit is contained in:
parent
bce775efd5
commit
e4e9e6a692
2 changed files with 36 additions and 0 deletions
11
roles/web-build/files/web-sync.sh
Executable file
11
roles/web-build/files/web-sync.sh
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
SRC=/srv/web-build
|
||||
PROXIES=$(ansible -i /srv/ansible/hosts proxy --list-hosts | \
|
||||
awk '{ if ($2 == "") { print $1 } }')
|
||||
|
||||
for site in "$SRC"/* ; do
|
||||
for proxy in $PROXIES ; do
|
||||
rsync -av --delete --progress "$site" "$proxy:/srv/web/"
|
||||
done
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue