2018-04-26 16:09:09 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
- block:
|
|
|
|
- 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
|
2019-11-26 10:19:22 +01:00
|
|
|
when: item.has_wordpress is defined and item.has_wordpress
|
2018-04-26 16:09:09 +02:00
|
|
|
loop: "{{ nginx_vhosts }}"
|
|
|
|
|
|
|
|
- name: Fix WordPress directory permissions
|
|
|
|
file: path={{ nginx_root_prefix }}/{{ item.domain_name }} state=directory owner=nginx group=nginx recurse=yes
|
2019-11-26 10:19:22 +01:00
|
|
|
when: item.has_wordpress is defined and item.has_wordpress
|
2018-04-26 16:09:09 +02:00
|
|
|
loop: "{{ nginx_vhosts }}"
|
|
|
|
tags: wordpress
|
|
|
|
|
|
|
|
# vim: set ts=2 sw=2:
|