2018-04-26 16:09:09 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
- block:
|
|
|
|
- name: Install WordPress
|
2022-09-10 21:33:19 +02:00
|
|
|
ansible.builtin.git: repo=https://github.com/WordPress/WordPress.git dest={{ nginx_root_prefix }}/{{ item.domain_name }}/wordpress version={{ item.wordpress_version }} depth=1 force=true
|
2022-09-10 22:12:49 +02:00
|
|
|
when:
|
|
|
|
- item.has_wordpress is defined
|
2022-09-11 07:39:59 +02:00
|
|
|
- item.has_wordpress
|
2018-04-26 16:09:09 +02:00
|
|
|
loop: "{{ nginx_vhosts }}"
|
|
|
|
|
|
|
|
- name: Fix WordPress directory permissions
|
2022-09-10 21:33:19 +02:00
|
|
|
ansible.builtin.file: path={{ nginx_root_prefix }}/{{ item.domain_name }} state=directory owner=nginx group=nginx recurse=true
|
2022-09-10 22:12:49 +02:00
|
|
|
when:
|
|
|
|
- item.has_wordpress is defined
|
2022-09-11 07:39:59 +02:00
|
|
|
- item.has_wordpress
|
2018-04-26 16:09:09 +02:00
|
|
|
loop: "{{ nginx_vhosts }}"
|
|
|
|
tags: wordpress
|
|
|
|
|
|
|
|
# vim: set ts=2 sw=2:
|