From c207eb99aca5f2b9a56a10e862e3cfd60b7fc21e Mon Sep 17 00:00:00 2001 From: dvirlabs Date: Fri, 17 Apr 2026 17:11:21 +0300 Subject: [PATCH] test --- .woodpecker.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 8519d0d..b886066 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,28 +1,32 @@ steps: syntax-check: image: alpine/ansible:latest + environment: + ANSIBLE_CONFIG: ansible.cfg commands: - ansible-playbook -i ansible/inventory/hosts.yml --syntax-check ansible/playbooks/*.yml validate: image: alpine/ansible:latest environment: + ANSIBLE_CONFIG: ansible.cfg SSH_PRIVATE_KEY: from_secret: SSH_PRIVATE_KEY commands: - mkdir -p ~/.ssh - - echo "$${SSH_PRIVATE_KEY}" > ~/.ssh/id_rsa + - echo "$${SSH_PRIVATE_KEY}" | base64 -d > ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa - ansible-playbook -i ansible/inventory/hosts.yml ansible/playbooks/validate.yml drift-check: image: alpine/ansible:latest environment: + ANSIBLE_CONFIG: ansible.cfg SSH_PRIVATE_KEY: from_secret: SSH_PRIVATE_KEY commands: - mkdir -p ~/.ssh - - echo "$${SSH_PRIVATE_KEY}" > ~/.ssh/id_rsa + - echo "$${SSH_PRIVATE_KEY}" | base64 -d > ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa - ansible-playbook -i ansible/inventory/hosts.yml ansible/playbooks/drift-check.yml when: @@ -31,11 +35,12 @@ steps: deploy: image: alpine/ansible:latest environment: + ANSIBLE_CONFIG: ansible.cfg SSH_PRIVATE_KEY: from_secret: SSH_PRIVATE_KEY commands: - mkdir -p ~/.ssh - - echo "$${SSH_PRIVATE_KEY}" > ~/.ssh/id_rsa + - echo "$${SSH_PRIVATE_KEY}" | base64 -d > ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa - ansible-playbook -i ansible/inventory/hosts.yml ansible/playbooks/apply.yml when: