fix: vault-pass.txt injection fix (#5)
Johto Infrastructure Pipeline / Run Ansible Lint (push) Successful in 1m46s
Johto Infrastructure Pipeline / Deploy to Production (push) Has been cancelled

Updated the vault-pass,txt injection task to use printf. This avoids issues with special characters in the vault-password

---------

Co-authored-by: Jordan Del Pilar <[email protected]>
Reviewed-on: #5
This commit was merged in pull request #5.
This commit is contained in:
2026-06-13 16:58:01 -07:00
co-authored by Jordan Del Pilar
parent cf8f2435f8
commit 010e4d3c49
+6 -2
View File
@@ -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