2022-01-01 07:18:03 +03:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: exec
|
2022-01-03 11:26:26 +03:00
|
|
|
name: master
|
2022-01-01 07:18:03 +03:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Check playbook
|
|
|
|
commands:
|
|
|
|
- ansible-playbook -C playbook.yml
|
|
|
|
|
|
|
|
- name: Run playbook
|
|
|
|
commands:
|
|
|
|
- ansible-playbook playbook.yml
|
2022-01-01 07:44:39 +03:00
|
|
|
node:
|
|
|
|
target: shell-scripts
|
2022-01-03 11:26:26 +03:00
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: exec
|
|
|
|
name: not master
|
|
|
|
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- test
|
|
|
|
- feature/*
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Check playbook
|
|
|
|
commands:
|
|
|
|
- ansible-playbook -C playbook.yml
|
|
|
|
|
|
|
|
- name: Run playbook
|
|
|
|
commands:
|
|
|
|
- ansible-playbook playbook.yml
|
|
|
|
|
|
|
|
node:
|
|
|
|
target: generic
|