This commit is contained in:
parent
6d5ce135d7
commit
321ec086dc
1 changed files with 5 additions and 3 deletions
|
@ -7,10 +7,12 @@ pipeline:
|
||||||
- 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
|
||||||
- echo $ANSIBLE_PRIVATE_KEY > /tmp/privateKey
|
- echo $${ANSIBLE_PRIVATE_KEY} > /tmp/privateKey_a
|
||||||
|
- echo $${SSH_KEY} > /tmp/privateKey
|
||||||
- chmod 600 /tmp/privateKey
|
- chmod 600 /tmp/privateKey
|
||||||
- echo $SSH_KEY|sha256sum
|
- echo $${SSH_KEY}|sha256sum
|
||||||
- echo $ANSIBLE_PRIVATE_KEY|sha256sum
|
- echo $${ANSIBLE_PRIVATE_KEY}|sha256sum
|
||||||
|
- sha256sum /tmp/privateKey_a
|
||||||
- sha256sum /tmp/privateKey
|
- sha256sum /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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue