Skip to content

Commit

Permalink
Update Ansible playbooks with extra-vars and handler_enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
catatsuy committed Apr 28, 2024
1 parent 7576479 commit eb6d13a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ansible.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ jobs:
- name: Run Ansible playbook
run: |
cd provisioning
ansible-playbook --diff -i test image/ansible/playbooks.yml --skip-tags nodejs,exclude_for_test -e 'allinone=True'
ansible-playbook --diff -i test image/ansible/playbooks.yml --skip-tags nodejs,exclude_for_test --extra-vars "allinone=True handler_enabled=false"
- name: Run Ansible playbook in check mode
run: |
cd provisioning
ansible-playbook --check --diff -i test image/ansible/playbooks.yml --skip-tags nodejs,exclude_for_test -e 'allinone=True'
ansible-playbook --check --diff -i test image/ansible/playbooks.yml --skip-tags nodejs,exclude_for_test --extra-vars "allinone=True handler_enabled=false"
3 changes: 1 addition & 2 deletions provisioning/image/ansible/03_nginx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,4 @@
notify: reload nginx
handlers:
- name: reload nginx
tags: exclude_for_test
shell: /usr/sbin/nginx -t && systemctl reload nginx
shell: /usr/sbin/nginx -t

0 comments on commit eb6d13a

Please sign in to comment.