Add secret
Some checks failed
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is failing
continuous-integration/drone Build is passing

This commit is contained in:
Kasper Juul Hermansen 2021-11-14 20:16:21 +01:00
parent a6ce20151f
commit faa81b78cf
Signed by: kjuulh
GPG Key ID: 0F95C140730F2F23

View File

@ -2,25 +2,15 @@ kind: pipeline
name: default name: default
steps: steps:
- name: check ansible syntax - name: apply ansible production
image: plugins/ansible:latest image: plugins/ansible:latest
settings: settings:
playbook: deployment/todo-setup.yml playbook: deployment/todo-setup.yml
inventory: deployment/hosts inventory: deployment/hosts
galaxy: deployment/requirements.yml galaxy: deployment/requirements.yml
syntax_check: false private_key:
from_secret: ansible_private_key
when: when:
event:
- pull_request
- name: apply ansible playbook
image: plugins/ansible:1
settings:
playbook: deployment/todo-setup.yml
inventory: deployment/hosts
when:
branch:
- production
event: event:
- push - push