Premier commit
This commit is contained in:
16
pull-config
Normal file
16
pull-config
Normal file
@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -z ${UREP+x} ]; then
|
||||
UREP=https://gitea.lyc-lecastel.fr/gadmin/gsb2022.git
|
||||
fi
|
||||
|
||||
dir=/root/tools/ansible
|
||||
|
||||
[ -e "${dir}" ] || mkdir -p "${dir}"
|
||||
|
||||
cd "${dir}" || exit 1
|
||||
|
||||
hostname > hosts
|
||||
ansible-pull -i "${dir}/hosts" -U "${UREP}"
|
||||
|
||||
exit 0
|
Reference in New Issue
Block a user