Skip to content

Commit 96676ec

Browse files
committed
fix: add dummy vault pass for ansible-lint in CI
1 parent 2105f27 commit 96676ec

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/ansible-deploy.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Ansible Deployment
22

33
on:
44
push:
5-
branches: [master]
5+
branches: [master, lab06]
66
paths:
77
- 'ansible/**'
88
- '!ansible/docs/**'
@@ -37,6 +37,9 @@ jobs:
3737
- name: Install Ansible and ansible-lint
3838
run: pip install ansible ansible-lint
3939

40+
- name: Create dummy vault password for lint
41+
run: echo "dummy" > ansible/.vault_pass
42+
4043
- name: Run ansible-lint
4144
run: |
4245
cd ansible
@@ -46,7 +49,7 @@ jobs:
4649
name: Deploy Application
4750
needs: lint
4851
runs-on: ubuntu-latest
49-
if: github.event_name == 'push'
52+
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
5053
steps:
5154
- name: Checkout repository
5255
uses: actions/checkout@v4

0 commit comments

Comments
 (0)