Change pattern from nginx_tls_vhosts→nginx_vhosts

All hosts should have TLS now, whether self-signed "snakeoil" certs
or otherwise.

Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
Alan Orth 2015-12-09 23:54:18 +02:00
parent 27a4abfcfd
commit dc5c09036c
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
3 changed files with 0 additions and 31 deletions

View File

@ -27,11 +27,6 @@
- name: Create fastcgi cache dir - name: Create fastcgi cache dir
file: path=/var/cache/nginx/cached/fastcgi state=directory owner=nginx group=nginx mode=0755 file: path=/var/cache/nginx/cached/fastcgi state=directory owner=nginx group=nginx mode=0755
tags: nginx
- include: vhosts.yml
when: nginx_vhosts is defined
tags: nginx
- include: tls_vhosts.yml - include: tls_vhosts.yml
when: nginx_tls_vhosts is defined when: nginx_tls_vhosts is defined

View File

@ -1,19 +0,0 @@
---
- name: Configure http vhosts
template: src=vhost.conf.j2 dest={{ nginx_confd_path }}/{{ item.nginx_domain_name }}.conf mode=0644 owner=root group=root
with_items: nginx_vhosts
notify:
- reload nginx
- name: Create vhost document roots
file: path={{ nginx_root_prefix }}/{{ item.nginx_domain_name }} state=directory mode=0755 owner=nginx group=nginx
with_items: nginx_vhosts
- name: Install WordPress
git: repo=https://github.com/WordPress/WordPress.git dest={{ nginx_root_prefix }}/{{ item.nginx_domain_name }}/wordpress version={{ item.wordpress_version }} depth=1
when: item.has_wordpress == 'yes'
with_items: nginx_vhosts
tags: wordpress
# vim: set ts=2 sw=2:

View File

@ -9,13 +9,6 @@
- php5-curl - php5-curl
tags: php5-fpm tags: php5-fpm
- name: Copy php5-fpm pool config
template: src=pool.conf.j2 dest=/etc/php5/fpm/pool.d/{{ item.nginx_domain_name }}.conf owner=root group=root mode=0644
with_items: nginx_vhosts
when: nginx_vhosts is defined
notify: restart php5-fpm
tags: php5-fpm
- name: Copy php5-fpm pool config - name: Copy php5-fpm pool config
template: src=pool.conf.j2 dest=/etc/php5/fpm/pool.d/{{ item.nginx_domain_name }}.conf owner=root group=root mode=0644 template: src=pool.conf.j2 dest=/etc/php5/fpm/pool.d/{{ item.nginx_domain_name }}.conf owner=root group=root mode=0644
with_items: nginx_tls_vhosts with_items: nginx_tls_vhosts