This commit is contained in:
parent
795209523f
commit
e90e52d8c6
1 changed files with 3 additions and 1 deletions
|
@ -7,7 +7,9 @@ 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
|
||||||
- ansible-playbook --user igor --inventory hosts.ini main.yml
|
- echo $ANSIBLE_PRIVATE_KEY > /tmp/privateKey
|
||||||
|
- chmod 600 /tmp/privateKey
|
||||||
|
- 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