From a2586aefeebe0e2af72d8c5984170272295f366a Mon Sep 17 00:00:00 2001 From: olli Date: Wed, 7 Feb 2024 13:50:40 +0100 Subject: [PATCH] install.sh aktualisiert --- install.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index cf30443..3add062 100644 --- a/install.sh +++ b/install.sh @@ -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 \ No newline at end of file