woodpecker-ansible-runner/README.md
SebClem cab88875b1
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Convert to go
2023-07-04 16:30:42 +02:00

48 lines
1.1 KiB
Markdown

# Drone Ansible Runner
Config:
```yml
kind: pipeline
name: default
steps:
check-ansible-syntax:
image: git.sebclem.fr/sebclem/woodpecker-ansible-runner
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:
image: git.sebclem.fr/sebclem/woodpecker-ansible-runner
pull: true
settings:
verbosity: ${verbosity=0}
diff: ${diff=false}
check: ${check=false}
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]
```