2023-03-08 22:52:10 +00:00
|
|
|
pipeline:
|
2023-03-09 05:33:59 +00:00
|
|
|
test:
|
2023-03-09 05:37:58 +00:00
|
|
|
image: git.dreamfall.space/thrrgilag/ansible-builder
|
2023-03-09 05:33:59 +00:00
|
|
|
secrets: [ ssh_key ]
|
|
|
|
commands:
|
|
|
|
- echo $SSH_KEY > /tmp/privateKey
|
2023-03-09 05:44:54 +00:00
|
|
|
- chmod 600 /tmp/privateKey
|
2023-03-09 05:48:03 +00:00
|
|
|
- wc -l /tmp/privateKey
|
|
|
|
- wc -c /tmp/privateKey
|
2023-03-09 05:42:46 +00:00
|
|
|
- ssh -o "StrictHostKeyChecking=no" -i /tmp/privateKey igor@vimes.dreamfall.space "cat /ec/os-release"
|
2023-03-09 05:33:59 +00:00
|
|
|
|
2023-03-09 02:20:45 +00:00
|
|
|
publish:
|
|
|
|
image: plugins/ansible
|
|
|
|
secrets: [ ssh_key ]
|
|
|
|
settings:
|
2023-03-09 02:22:19 +00:00
|
|
|
playbook: main.yml
|
2023-03-09 02:20:45 +00:00
|
|
|
inventory: hosts.ini
|
|
|
|
user: igor
|
|
|
|
private_key: $SSH_KEY
|