26 lines
650 B
YAML
26 lines
650 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 \
|
||
|
# --inventory inventory.yml \
|
||
|
--extra-vars "cifs_username=$${cifs_username} cifs_password=$${cifs_password}" \
|
||
|
playbook.yml
|
||
|
environment:
|
||
|
cifs_username:
|
||
|
from_secret: cifs_username
|
||
|
cifs_password:
|
||
|
from_secret: cifs_password
|
||
|
private_key:
|
||
|
from_secret: ssh_privatekey
|