This commit is contained in:
parent
99031b215f
commit
d234c122a0
1 changed files with 3 additions and 12 deletions
|
@ -1,20 +1,11 @@
|
||||||
pipeline:
|
pipeline:
|
||||||
test:
|
|
||||||
image: git.dreamfall.space/thrrgilag/ansible-builder
|
|
||||||
secrets: [ ssh_key ]
|
|
||||||
commands:
|
|
||||||
- echo $SSH_KEY > /tmp/privateKey
|
|
||||||
- chmod 600 /tmp/privateKey
|
|
||||||
- wc -l /tmp/privateKey
|
|
||||||
- wc -c /tmp/privateKey
|
|
||||||
- tail /tmp/privateKey
|
|
||||||
- ssh -o "StrictHostKeyChecking=no" -i /tmp/privateKey igor@vimes.dreamfall.space "cat /ec/os-release"
|
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
image: plugins/ansible
|
image: plugins/ansible
|
||||||
secrets: [ ssh_key ]
|
secrets: [ ssh_key ]
|
||||||
|
environment:
|
||||||
|
- ANSIBLE_HOST_KEY_CHECKING=False
|
||||||
|
- PLUGIN_PRIVATE_KEY=$SSH_KEY
|
||||||
settings:
|
settings:
|
||||||
playbook: main.yml
|
playbook: main.yml
|
||||||
inventory: hosts.ini
|
inventory: hosts.ini
|
||||||
user: igor
|
user: igor
|
||||||
private_key: $SSH_KEY
|
|
||||||
|
|
Loading…
Reference in a new issue