roles/nginx: Move WordPress tasks to separate file

Because of the shift from static imports to dynamic includes these
tags will never be reached unless they have their own task that is
tagged at the top-level (dynamic includes don't pass their tags to
their children).
This commit is contained in:
2018-04-26 17:09:09 +03:00
parent 0f512a5bf7
commit fa5db39674
3 changed files with 20 additions and 12 deletions

View File

@ -39,6 +39,11 @@
when: nginx_vhosts is defined
tags: nginx
- name: Configure WordPress
include_tasks: wordpress.yml
when: nginx_vhosts is defined
tags: wordpress
- name: Configure blank nginx vhost
template: src=blank-vhost.conf.j2 dest={{ nginx_confd_path }}/blank-vhost.conf mode=0644 owner=root group=root
notify: