Ansible.MediaServer/.drone.yml

35 lines
831 B
YAML
Raw Normal View History

2021-07-13 20:04:25 +00:00
kind: pipeline
type: kubernetes
name: mediaserver
steps:
- name: Apply playbook
image: bv11-cr01.bessems.eu/library/packer-extended
commands:
2021-07-14 07:06:22 +00:00
- |
mkdir ~/.ssh && \
echo "$${private_key}" > ~/.ssh/id_rsa && \
chmod 0600 ~/.ssh/id_rsa
- ansible-galaxy collection install -r requirements.yml
2021-07-13 21:18:37 +00:00
- |
ansible-playbook \
--inventory inventory.yml \
2021-07-13 21:18:37 +00:00
--extra-vars "cifs_username=$${cifs_username} cifs_password=$${cifs_password}" \
playbook.yml
2021-07-13 20:04:25 +00:00
environment:
2022-10-15 15:47:55 +00:00
ANSIBLE_HOST_KEY_CHECKING: false
2021-07-13 20:04:25 +00:00
cifs_username:
from_secret: cifs_username
cifs_password:
from_secret: cifs_password
private_key:
from_secret: ssh_privatekey
# volumes:
# - name: certificates
# path: /certificates
2021-07-13 20:04:25 +00:00
# volumes:
# - name: certificates
# claim:
# name: flexvolsmb-drone-certs