Correct yaml errors in gitlab CI
This commit is contained in:
parent
815e1bcda1
commit
708a27926b
@ -52,24 +52,24 @@ Test:
|
|||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- ansible-playbook --skip-tags no-test -C site.yml --vault-password-file /vaultpw || error="$?"
|
- ansible-playbook --skip-tags no-test -C site.yml --vault-password-file /vaultpw || error="$?"
|
||||||
- [ "$error" -eq 4 ] && echo "Some hosts were unreachable; masking error" && unset error
|
- if [ "$error" -eq 4 ]; then echo "Some hosts were unreachable; masking error"; unset error; fi
|
||||||
- [ -n "$error" ] && echo "Return code $error" && false
|
- if [ -n "$error" ]; then echo "Return code $error"; false; fi
|
||||||
|
|
||||||
Play_Against_Pis:
|
Play_Against_Pis:
|
||||||
stage: play
|
stage: play
|
||||||
script:
|
script:
|
||||||
- ansible-playbook -l pis site.yml --vault-password-file /vaultpw || error="$?"
|
- ansible-playbook -l pis site.yml --vault-password-file /vaultpw || error="$?"
|
||||||
- [ "$error" -eq 4 ] && echo "Some hosts were unreachable; masking error" && unset error
|
- if [ "$error" -eq 4 ]; then echo "Some hosts were unreachable; masking error"; unset error; fi
|
||||||
- [ -n "$error" ] && echo "Return code $error" && false
|
- if [ -n "$error" ]; then echo "Return code $error"; false; fi
|
||||||
Play_Against_Desktops:
|
Play_Against_Desktops:
|
||||||
stage: play
|
stage: play
|
||||||
script:
|
script:
|
||||||
- ansible-playbook -l desktop site.yml --vault-password-file /vaultpw || error="$?"
|
- ansible-playbook -l desktop site.yml --vault-password-file /vaultpw || error="$?"
|
||||||
- [ "$error" -eq 4 ] && echo "Some hosts were unreachable; masking error" && unset error
|
- if [ "$error" -eq 4 ]; then echo "Some hosts were unreachable; masking error"; unset error; fi
|
||||||
- [ -n "$error" ] && echo "Return code $error" && false
|
- if [ -n "$error" ]; then echo "Return code $error"; false; fi
|
||||||
Play_Against_Production:
|
Play_Against_Production:
|
||||||
stage: play
|
stage: play
|
||||||
script:
|
script:
|
||||||
- ansible-playbook -l prod site.yml --vault-password-file /vaultpw || error="$?"
|
- ansible-playbook -l prod site.yml --vault-password-file /vaultpw || error="$?"
|
||||||
- [ "$error" -eq 4 ] && echo "Some hosts were unreachable; masking error" && unset error
|
- if [ "$error" -eq 4 ]; then echo "Some hosts were unreachable; masking error"; unset error; fi
|
||||||
- [ -n "$error" ] && echo "Return code $error" && false
|
- if [ -n "$error" ]; then echo "Return code $error"; false; fi
|
||||||
|
Loading…
Reference in New Issue
Block a user