kind: pipeline name: default steps: - name: check ansible syntax image: plugins/ansible:latest settings: playbook: deployment/todo-setup.yml inventory: deployment/hosts galaxy: deployment/requirements.yml syntax_check: false when: event: - pull_request - name: apply ansible playbook image: plugins/ansible:1 settings: playbook: deployment/todo-setup.yml inventory: deployment/hosts when: branch: - production event: - push