tweak ansible setup during container init
This commit is contained in:
parent
0cba2934e0
commit
5dd57aa2a7
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue