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 "-------------------------------------
"
fi
if [ ! -d "/opt/ansible/roles" ] ; then
mkdir /opt/ansible/roles
fi
if [ ! -d "/opt/ansible/roles/wireguard" ] ; then
git clone https://git.kemonine.info/PiFrame/ansible-role-wireguard.git /opt/ansible/roles/wireguard
if [ ! -d "/opt/ansible/.git" ] ; then
git clone https://git.kemonine.info/PiFrame/ansible.git /opt/ansible/
else
cd /opt/ansible/roles/wireguard
cd /opt/ansible
git pull
fi