service-ansible/.drone.yml
Kristóf Torma ca847ed343
Some checks failed
continuous-integration/drone/push Build is failing
add notify
2023-08-30 23:39:41 +02:00

27 lines
620 B
YAML

---
kind: pipeline
type: docker
name: ansible
steps:
- name: ansible nightly run
image: alpinelinux/ansible
environment:
ANSIBLE_HOST_KEY_CHECKING: "False"
ANSIBLE_PRIVATE_KEY_FILE: "/drone/src/id_rsa"
ANSIBLE_CONFIG: "/drone/src/ansible.cfg"
SSH_KEY:
from_secret: SSH_KEY
commands:
- echo "$SSH_KEY" > $PWD/id_rsa
- chmod 0600 $PWD/id_rsa
- ansible-galaxy collection install -r requirements.yaml
- ansible-playbook -i inventory.yaml nightly.yaml
- name: notify
image: drillster/drone-email
settings:
host: smtp.intra.tormakris.dev
from: drone@tormakris.dev
...