Ansible.Turn/.drone.yml
Danny Bessems dd24759151
All checks were successful
continuous-integration/drone/push Build is passing
Disable SSH host key checking
2022-10-15 17:38:54 +02:00

30 lines
619 B
YAML

kind: pipeline
type: kubernetes
name: turn
steps:
- name: Apply playbook
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:
ANSIBLE_HOST_KEY_CHECKING: false
private_key:
from_secret: ssh_privatekey
volumes:
- name: certificates
path: /certificates
volumes:
- name: certificates
claim:
name: flexvolsmb-drone-certs