2014-09-13 22:16:54 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
- 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
|
|
|
|
|
2015-02-26 15:39:17 +01:00
|
|
|
- name: Install WordPress
|
|
|
|
git: repo=https://github.com/WordPress/WordPress.git dest={{ nginx_root_prefix }}/{{ item.nginx_domain_name }}/wordpress version={{ item.wordpress_version }}
|
|
|
|
when: item.has_wordpress == 'yes'
|
|
|
|
with_items: nginx_vhosts
|
|
|
|
tags: wordpress
|
|
|
|
|
2014-09-13 22:16:54 +02:00
|
|
|
# vim: set ts=2 sw=2:
|