Skip to content

Commit

Permalink
Update ansible.yml to exclude tag 'exclude_for_test'.Include tag 'exc…
Browse files Browse the repository at this point in the history
…lude_for_test' in 03_nginx.yml
  • Loading branch information
catatsuy committed Apr 28, 2024
1 parent 9e95ade commit 0cb8a99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ansible.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ jobs:
- name: Run Ansible playbook
run: |
cd provisioning
ansible-playbook --diff -i test image/ansible/playbooks.yml --skip-tags nodejs -e 'allinone=True'
ansible-playbook --diff -i test image/ansible/playbooks.yml --skip-tags nodejs,exclude_for_test -e 'allinone=True'
- name: Run Ansible playbook in check mode
run: |
cd provisioning
ansible-playbook --check --diff -i test image/ansible/playbooks.yml --skip-tags nodejs -e 'allinone=True'
ansible-playbook --check --diff -i test image/ansible/playbooks.yml --skip-tags nodejs,exclude_for_test -e 'allinone=True'
1 change: 1 addition & 0 deletions provisioning/image/ansible/03_nginx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- apt: name=nginx
- name: start nginx
service: name=nginx state=started enabled=yes
tag: exclude_for_test
notify: restart nginx
- name: clean nginx
file: path=/etc/nginx/sites-available/default state=absent
Expand Down

0 comments on commit 0cb8a99

Please sign in to comment.