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 "-------------------------------------
|
||||
"
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue