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