Consolidate plays into mutually exclusive and all-encompassing sets
This commit is contained in:
parent
46a567c46a
commit
fadeb64cb8
@ -52,17 +52,10 @@ Test:
|
||||
- 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_Desktops:
|
||||
Play_Against_Remote:
|
||||
stage: play
|
||||
script:
|
||||
- ansible-playbook -l device_roles_workstation 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_Production:
|
||||
stage: play
|
||||
retry: 1
|
||||
script:
|
||||
- ansible-playbook -l tags_prod site.yml --vault-password-file /vaultpw || error="$?"
|
||||
- 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
|
||||
Play_Against_Home:
|
||||
|
Loading…
Reference in New Issue
Block a user