Ansible.K3sCluster/.drone.yml
djpbessems 859eebb642
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Remove malformed comment
2022-04-18 14:29:39 +02:00

23 lines
535 B
YAML

kind: pipeline
type: kubernetes
name: k3s_cluster
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 \
--extra-vars "hv_password=$${hv_password}" \
playbook.yml
environment:
hv_password:
from_secret: hv_password
# private_key:
# from_secret: ssh_privatekey