tweak ansible setup during container init

This commit is contained in:
KemoNine 2020-08-04 22:18:06 +00:00
parent 0cba2934e0
commit 5dd57aa2a7

View file

@ -22,13 +22,10 @@ cat /opt/ansible/ssh.key.pub
echo "------------------------------------- echo "-------------------------------------
" "
fi fi
if [ ! -d "/opt/ansible/roles" ] ; then if [ ! -d "/opt/ansible/.git" ] ; then
mkdir /opt/ansible/roles git clone https://git.kemonine.info/PiFrame/ansible.git /opt/ansible/
fi
if [ ! -d "/opt/ansible/roles/wireguard" ] ; then
git clone https://git.kemonine.info/PiFrame/ansible-role-wireguard.git /opt/ansible/roles/wireguard
else else
cd /opt/ansible/roles/wireguard cd /opt/ansible
git pull git pull
fi fi