From e90e52d8c6a9abb8fb0b0d8b30ee995e58573855 Mon Sep 17 00:00:00 2001 From: Morgan McMillian Date: Thu, 9 Mar 2023 07:50:08 -0800 Subject: [PATCH] test private key again --- .woodpecker.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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