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:
14
14
15
15
env :
16
16
COB_DATAPIPELINE_BRANCH : ${{ github.ref_name }}
17
+ ANSIBLE_VAULT_PASSWORD : ${{ secrets.ANSIBLE_VAULT_PASSWORD }}
17
18
18
19
jobs :
19
20
prod-deploy :
20
21
runs-on : ubuntu-latest
21
- env :
22
- ANSIBLE_VAULT_PASSWORD : ${{ vars.ANSIBLE_VAULT_PASSWORD }}
23
-
24
22
timeout-minutes : 30
25
23
strategy :
26
24
matrix :
53
51
working-directory : ansible-playbook-airflow
54
52
run : |
55
53
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 16
16
qa-deploy :
17
17
runs-on : ubuntu-latest
18
18
env :
19
- ANSIBLE_VAULT_PASSWORD : ${{ vars .ANSIBLE_VAULT_PASSWORD }}
19
+ ANSIBLE_VAULT_PASSWORD : ${{ secrets .ANSIBLE_VAULT_PASSWORD }}
20
20
21
21
timeout-minutes : 30
22
22
strategy :
50
50
working-directory : ansible-playbook-airflow
51
51
run : |
52
52
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