File tree Expand file tree Collapse file tree 3 files changed +4
-14
lines changed Expand file tree Collapse file tree 3 files changed +4
-14
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -14,13 +14,11 @@ concurrency:
1414
1515env :
1616 COB_DATAPIPELINE_BRANCH : ${{ github.ref_name }}
17+ ANSIBLE_VAULT_PASSWORD : ${{ secrets.ANSIBLE_VAULT_PASSWORD }}
1718
1819jobs :
1920 prod-deploy :
2021 runs-on : ubuntu-latest
21- env :
22- ANSIBLE_VAULT_PASSWORD : ${{ vars.ANSIBLE_VAULT_PASSWORD }}
23-
2422 timeout-minutes : 30
2523 strategy :
2624 matrix :
5351 working-directory : ansible-playbook-airflow
5452 run : |
5553 pipenv run ansible-galaxy install -r requirements.yml
56- cp "${GITHUB_WORKSPACE}/.github/.vault" "${HOME}/.vault"
57- chmod +x ~/.vault
58- pipenv run ansible-playbook -i inventory/prod playbook.yml --tags "jumphost,role::airflow::dags" --vault-password-file=~/.vault -e 'ansible_ssh_port=9229' -e cob_datapipeline_branch=$COB_DATAPIPELINE_BRANCH
54+ pipenv run ansible-playbook -i inventory/prod playbook.yml --tags "jumphost,role::airflow::dags" --vault-id @env:ANSIBLE_VAULT_PASSWORD -e 'ansible_ssh_port=9229' -e cob_datapipeline_branch=$COB_DATAPIPELINE_BRANCH
Original file line number Diff line number Diff line change 1616 qa-deploy :
1717 runs-on : ubuntu-latest
1818 env :
19- ANSIBLE_VAULT_PASSWORD : ${{ vars .ANSIBLE_VAULT_PASSWORD }}
19+ ANSIBLE_VAULT_PASSWORD : ${{ secrets .ANSIBLE_VAULT_PASSWORD }}
2020
2121 timeout-minutes : 30
2222 strategy :
5050 working-directory : ansible-playbook-airflow
5151 run : |
5252 pipenv run ansible-galaxy install -r requirements.yml
53- cp "${GITHUB_WORKSPACE}/.github/.vault" "${HOME}/.vault"
54- chmod +x ~/.vault
55- pipenv run ansible-playbook -i inventory/qa playbook.yml --tags "jumphost,role::airflow::dags" --vault-password-file=~/.vault -e 'ansible_ssh_port=9229'
53+ pipenv run ansible-playbook -i inventory/qa playbook.yml --tags "jumphost,role::airflow::dags" --vault-id @env:ANSIBLE_VAULT_PASSWORD -e 'ansible_ssh_port=9229'
You can’t perform that action at this time.
0 commit comments