Ansible.Turn/.drone.yml

30 lines
619 B
YAML
Raw Normal View History

2022-10-15 13:13:25 +00:00
kind: pipeline
type: kubernetes
name: turn
steps:
- name: Apply playbook
2022-10-15 15:33:12 +00:00
image: bv11-cr01.bessems.eu/library/packer-extended
commands:
- |
mkdir ~/.ssh && \
echo "$${private_key}" > ~/.ssh/id_rsa && \
chmod 0600 ~/.ssh/id_rsa
- ansible-galaxy collection install -r requirements.yml
- |
ansible-playbook \
--inventory inventory.yml \
playbook.yml
environment:
2022-10-15 15:38:54 +00:00
ANSIBLE_HOST_KEY_CHECKING: false
2022-10-15 15:33:12 +00:00
private_key:
from_secret: ssh_privatekey
2022-10-15 13:13:25 +00:00
volumes:
- name: certificates
path: /certificates
volumes:
- name: certificates
claim:
name: flexvolsmb-drone-certs