roles/nginx: Official builds for Debian Stretch
Now that there are official nginx.org builds for Debian 9 we don't need to use Debian's own nginx packages.
This commit is contained in:
@ -17,15 +17,9 @@
|
||||
- reload nginx
|
||||
|
||||
- name: Create vhost document roots
|
||||
when: ansible_distribution_major_version | version_compare('9', '!=')
|
||||
file: path={{ nginx_root_prefix }}/{{ item.domain_name }} state=directory mode=0755 owner=nginx group=nginx
|
||||
with_items: "{{ nginx_vhosts }}"
|
||||
|
||||
- name: Create vhost document roots
|
||||
when: ansible_distribution_major_version | version_compare('9', '==')
|
||||
file: path={{ nginx_root_prefix }}/{{ item.domain_name }} state=directory mode=0755 owner=www-data group=www-data
|
||||
with_items: "{{ nginx_vhosts }}"
|
||||
|
||||
- name: Install WordPress
|
||||
git: repo=https://github.com/WordPress/WordPress.git dest={{ nginx_root_prefix }}/{{ item.domain_name }}/wordpress version={{ item.wordpress_version }} depth=1 force=yes
|
||||
when: item.has_wordpress is defined and item.has_wordpress == True
|
||||
@ -34,13 +28,7 @@
|
||||
|
||||
- name: Fix WordPress directory permissions
|
||||
file: path={{ nginx_root_prefix }}/{{ item.domain_name }} state=directory owner=nginx group=nginx recurse=yes
|
||||
when: item.has_wordpress is defined and item.has_wordpress == True and ansible_distribution_major_version | version_compare('9', '!=')
|
||||
with_items: "{{ nginx_vhosts }}"
|
||||
tags: wordpress
|
||||
|
||||
- name: Fix WordPress directory permissions
|
||||
file: path={{ nginx_root_prefix }}/{{ item.domain_name }} state=directory owner=www-data group=www-data recurse=yes
|
||||
when: item.has_wordpress is defined and item.has_wordpress == True and ansible_distribution_major_version | version_compare('9', '==')
|
||||
when: item.has_wordpress is defined and item.has_wordpress == True
|
||||
with_items: "{{ nginx_vhosts }}"
|
||||
tags: wordpress
|
||||
|
||||
|
Reference in New Issue
Block a user