From 75a63ce0701e5e33146370801be99a85c1c8e895 Mon Sep 17 00:00:00 2001 From: Jordan Del Pilar Date: Sat, 13 Jun 2026 16:54:45 -0700 Subject: [PATCH] fix: vault-pass.txt injection fix Updated the vault-pass,txt injection task to use printf. This avoids issues with special characters in the vault-password --- .gitea/workflows/ansible-cicd.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ansible-cicd.yaml b/.gitea/workflows/ansible-cicd.yaml index 4086163..5d7f153 100644 --- a/.gitea/workflows/ansible-cicd.yaml +++ b/.gitea/workflows/ansible-cicd.yaml @@ -19,7 +19,9 @@ jobs: sudo apt-get install -y ansible ansible-lint - name: Inject Vault Password - run: echo "${{ secrets.ANSIBLE_VAULT_PASSWORD }}" > .vault-pass.txt + run: printf "%s" "$VAULT_PASS" > .vault-pass.txt + env: + VAULT_PASS: ${{ secrets.ANSIBLE_VAULT_PASSWORD }} - name: Lint Playbooks run: ansible-lint site.yaml @@ -49,7 +51,9 @@ jobs: ssh-keyscan 100.64.0.1 100.64.0.2 >> ~/.ssh/known_hosts - name: Inject Vault Password - run: echo "${{ secrets.ANSIBLE_VAULT_PASSWORD }}" > .vault-pass.txt + run: printf "%s" "$VAULT_PASS" > .vault-pass.txt + env: + VAULT_PASS: ${{ secrets.ANSIBLE_VAULT_PASSWORD }} - name: Run Ansible Playbook run: ansible-playbook site.yaml -- 2.54.0