This commit is contained in:
parent
2ab990c444
commit
6a980c8958
1 changed files with 8 additions and 9 deletions
|
@ -1,10 +1,9 @@
|
||||||
pipeline:
|
pipeline:
|
||||||
test:
|
publish:
|
||||||
image: git.dreamfall.space/thrrgilag/ansible-builder
|
image: plugins/ansible
|
||||||
secrets: [ igor_key ]
|
secrets: [ ssh_key ]
|
||||||
commands:
|
settings:
|
||||||
- echo $IGOR_KEY > /tmp/privateKey
|
playbook: main.yaml
|
||||||
- echo >> /tmp/privateKey
|
inventory: hosts.ini
|
||||||
- chmod 600 /tmp/privateKey
|
user: igor
|
||||||
- wc -l /tmp/privateKey
|
private_key: $SSH_KEY
|
||||||
- ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -v --inventory hosts.ini --private-key /tmp/privateKey --user igor main.yml
|
|
||||||
|
|
Loading…
Reference in a new issue