apt-get update
This commit is contained in:
parent
1f9de2d92c
commit
35aa14d418
@ -13,6 +13,7 @@ then
|
|||||||
exit $?
|
exit $?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
apt-get update
|
||||||
which ansible >/dev/null 2>&1 || sudo apt-get -y install ansible git
|
which ansible >/dev/null 2>&1 || sudo apt-get -y install ansible git
|
||||||
#sudo ansible-galaxy collection list | grep -q community.general || sudo ansible-galaxy collection install community.general
|
#sudo ansible-galaxy collection list | grep -q community.general || sudo ansible-galaxy collection install community.general
|
||||||
sudo ansible-galaxy collection install community.general
|
sudo ansible-galaxy collection install community.general
|
||||||
@ -38,4 +39,4 @@ do
|
|||||||
else
|
else
|
||||||
sudo ansible-playbook --connection=local --inventory $(hostname), --limit $(hostname) ${playbook}/*.yml
|
sudo ansible-playbook --connection=local --inventory $(hostname), --limit $(hostname) ${playbook}/*.yml
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user