Tobias Manske
adce374a85
All checks were successful
continuous-integration/drone/push Build is passing
33 lines
720 B
YAML
33 lines
720 B
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: Ansible-Playbook
|
|
|
|
trigger:
|
|
branch:
|
|
- main
|
|
event:
|
|
include:
|
|
- push
|
|
- custom
|
|
|
|
node:
|
|
ansible: true
|
|
|
|
steps:
|
|
- name: Run Ansible
|
|
image: registry.tobiasmanske.de/ansible-runner:latest
|
|
pull: always
|
|
commands:
|
|
- cd coreos-config
|
|
- ansible-playbook --limit host.nc.chaoswg.org --private-key /ssh_key --inventory=inventory.yaml playbook.yaml
|
|
- name: Validate Ansible
|
|
image: registry.tobiasmanske.de/ansible-runner:latest
|
|
pull: always
|
|
commands:
|
|
- cd coreos-config
|
|
- ansible-playbook --limit host.nc.chaoswg.org --check --private-key /ssh_key --inventory=inventory.yaml playbook.yaml
|
|
|
|
image_pull_secrets:
|
|
- registry
|