2023-06-21 15:53:57 +02:00
|
|
|
steps:
|
2023-02-17 14:29:25 +01:00
|
|
|
check-ansible-syntax:
|
2023-04-20 19:52:27 +02:00
|
|
|
image: git.sebclem.fr/sebclem/woodpecker-ansible-runner
|
2023-02-17 14:29:25 +01:00
|
|
|
pull: true
|
|
|
|
settings:
|
|
|
|
playbook: playbooks/install.yml
|
|
|
|
galaxy_file: roles/requirements.yml
|
|
|
|
check_syntax: true
|
|
|
|
vault_token:
|
|
|
|
from_secret: ansible_vault_token
|
|
|
|
when:
|
|
|
|
- event: "push"
|
|
|
|
branch: [main, master]
|
|
|
|
- event: [pull_request, manual, deployment]
|
|
|
|
|
|
|
|
run-ansible-playbook:
|
2023-04-20 19:52:27 +02:00
|
|
|
image: git.sebclem.fr/sebclem/woodpecker-ansible-runner
|
2023-02-17 14:29:25 +01:00
|
|
|
pull: true
|
|
|
|
settings:
|
|
|
|
verbosity: ${verbosity=0}
|
|
|
|
limit: ${limit}
|
|
|
|
tags: ${tags}
|
|
|
|
playbook: playbooks/install.yml
|
|
|
|
galaxy_file: roles/requirements.yml
|
|
|
|
vault_token:
|
|
|
|
from_secret: ansible_vault_token
|
|
|
|
private_key:
|
|
|
|
from_secret: ansible_private_key
|
|
|
|
when:
|
|
|
|
environment: production
|
|
|
|
event: deployment
|
|
|
|
|
|
|
|
when:
|
|
|
|
- event: "push"
|
|
|
|
branch: [main, master]
|
|
|
|
- event: [pull_request, manual, deployment]
|