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

Updated the vault-pass,txt injection task to use printf. This avoids issues with special characters in the vault-password
This commit is contained in:
Jordan Del Pilar
2026-06-13 16:54:45 -07:00
parent cf8f2435f8
commit 75a63ce070
+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