Define and execute a play for homelab stuff
This commit is contained in:
parent
7976630ad7
commit
fe971cc9a4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user