diff --git a/.woodpecker.yml b/.woodpecker.yml index e8af7c7..ddfb897 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -7,7 +7,9 @@ pipeline: - ANSIBLE_HOST_KEY_CHECKING=False commands: - 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: image: plugins/ansible