From fe971cc9a478106ccc3f46e153e9fba3268ff2d6 Mon Sep 17 00:00:00 2001 From: Salt Date: Sat, 20 Nov 2021 19:04:12 -0600 Subject: [PATCH] Define and execute a play for homelab stuff --- .gitlab-ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bc28e2b..3952dd1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -72,3 +72,10 @@ Play_Against_Production: - ansible-playbook -l tags_prod site.yml --vault-password-file /vaultpw || error="$?" - if [ "$error" -eq 4 ]; then echo "Some hosts were unreachable; masking error"; unset error; fi - if [ -n "$error" ]; then echo "Return code $error"; false; fi +Play_Against_Home: + stage: play + retry: 1 + script: + - ansible-playbook -l tags_home site.yml --vault-password-file /vaultpw || error="$?" + - if [ "$error" -eq 4 ]; then echo "Some hosts were unreachable; masking error"; unset error; fi + - if [ -n "$error" ]; then echo "Return code $error"; false; fi