install.sh aktualisiert

This commit is contained in:
olli 2024-02-07 13:50:40 +01:00
parent 2df31c9283
commit a2586aefee

View File

@ -27,5 +27,10 @@ for playbook in $PLAYBOOKS
do
git clone https://gitea.ds9.dedyn.io/olli/${playbook}.git
[ -s /etc/dohardening ] || rm -f ${playbook}/hardening.yml
sudo ansible-playbook --connection=local --inventory $(hostname), --limit $(hostname) ${playbook}/*.yml
if ls ${playbook}/*ansible*.yml >/dev/null
then
sudo ansible-playbook --connection=local --inventory $(hostname), --limit $(hostname) ${playbook}/*ansible*.yml
else
sudo ansible-playbook --connection=local --inventory $(hostname), --limit $(hostname) ${playbook}/*.yml
fi
done