2022-07-18 19:01:37 +02:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: ansible
|
|
|
|
|
|
|
|
steps:
|
2023-08-30 23:21:24 +02:00
|
|
|
- name: ansible nightly run
|
|
|
|
image: alpinelinux/ansible
|
2022-07-18 19:01:37 +02:00
|
|
|
environment:
|
2023-08-30 23:21:24 +02:00
|
|
|
ANSIBLE_HOST_KEY_CHECKING: "False"
|
|
|
|
ANSIBLE_PRIVATE_KEY_FILE: "/drone/src/id_rsa"
|
|
|
|
ANSIBLE_CONFIG: "/drone/src/ansible.cfg"
|
2022-07-18 19:01:37 +02:00
|
|
|
SSH_KEY:
|
|
|
|
from_secret: SSH_KEY
|
|
|
|
commands:
|
|
|
|
- echo "$SSH_KEY" > $PWD/id_rsa && chmod 0600 $PWD/id_rsa
|
2023-08-30 23:21:24 +02:00
|
|
|
- ansible-galaxy collection install -r requirements.yaml
|
|
|
|
- ansible-playbook -i inventory.yaml nightly.yaml
|
|
|
|
...
|