Commit b3fdd50b authored by Okhin's avatar Okhin

Syntax check for ansible playbooks

parent f22ca956
Pipeline #2436 failed with stages
in 3 seconds
stages:
- test
- deploy
syntax check:
stage: test
script:
- ansible-playbook --syntax-check site.yml
tags: [preprod]
ansible check:
stage: test
script:
- ansible-playbook -i hosts --check site.yml
tags: [preprod]
ansible run:
stage: deploy
script:
- ansible-playbook -i hosts site.yml
only:
- master
tags: [preprod]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment