This repository has been archived on 2023-02-09. You can view files and clone it, but cannot push or open issues or pull requests.
drone-ansible-runner/README.md

44 lines
950 B
Markdown
Raw Permalink Normal View History

2021-12-15 00:21:52 +01:00
# Drone Ansible Runner
Config:
```yml
kind: pipeline
name: default
steps:
- name: Check ansible syntax
image: harbor.sebclem.fr/sebclem/drone-ansible-runner
settings:
playbook: sites.yml
galaxy_file: roles/requirements.yml
check_syntax: true
vault_token:
from_secret: ansible_vault_password
private_key:
from_secret: ansible_private_key
when:
event:
- push
- custom
- name: Run ansible playbook
image: harbor.sebclem.fr/sebclem/drone-ansible-runner
settings:
2022-02-28 11:27:38 +01:00
verbosity: ${verbosity=1}
limit: ${limit}
tags: ${tags}
2021-12-15 00:21:52 +01:00
playbook: sites.yml
galaxy_file: roles/requirements.yml
check_syntax: true
vault_token:
from_secret: ansible_vault_password
private_key:
from_secret: ansible_private_key
limit: harbor.home
when:
event:
- promote
- rollback
- custom
```