This commit is contained in:
parent
3b8cd9bbfe
commit
689cac7c59
1 changed files with 4 additions and 4 deletions
|
@ -1,20 +1,20 @@
|
||||||
pipeline:
|
pipeline:
|
||||||
test:
|
test:
|
||||||
image: debian:stable
|
image: alpine:latest
|
||||||
secrets: [ ssh_key ]
|
secrets: [ ssh_key ]
|
||||||
environment:
|
environment:
|
||||||
- ANSIBLE_PRIVATE_KEY=$SSH_KEY
|
- ANSIBLE_PRIVATE_KEY=$SSH_KEY
|
||||||
- ANSIBLE_HOST_KEY_CHECKING=False
|
- ANSIBLE_HOST_KEY_CHECKING=False
|
||||||
commands:
|
commands:
|
||||||
# - apt-get update && apt-get install ansible -y
|
# - apt-get update && apt-get install ansible -y
|
||||||
- apt-get update && apt-get install file -y
|
# - apt-get update && apt-get install file -y
|
||||||
- echo -e $SSH_KEY > /tmp/privateKey
|
- printf "$SSH_KEY" > /tmp/privateKey
|
||||||
- chmod 600 /tmp/privateKey
|
- chmod 600 /tmp/privateKey
|
||||||
- sha256sum /tmp/privateKey
|
- sha256sum /tmp/privateKey
|
||||||
- cat /tmp/privateKey
|
- cat /tmp/privateKey
|
||||||
- file /tmp/privateKey
|
- file /tmp/privateKey
|
||||||
- wc -l /tmp/privateKey
|
- wc -l /tmp/privateKey
|
||||||
- ansible-playbook --user igor --inventory hosts.ini --private-key /tmp/privateKey main.yml
|
# - ansible-playbook --user igor --inventory hosts.ini --private-key /tmp/privateKey main.yml
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
image: plugins/ansible
|
image: plugins/ansible
|
||||||
|
|
Loading…
Reference in a new issue