2018-04-26 16:09:09 +02:00
|
|
|
---
|
|
|
|
- block:
|
2023-08-23 21:22:51 +02:00
|
|
|
- name: Install WordPress
|
|
|
|
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
|
|
|
|
when:
|
|
|
|
- item.has_wordpress is defined
|
|
|
|
- item.has_wordpress
|
|
|
|
loop: "{{ nginx_vhosts }}"
|
2018-04-26 16:09:09 +02:00
|
|
|
|
2023-08-23 21:22:51 +02:00
|
|
|
- name: Fix WordPress directory permissions
|
|
|
|
ansible.builtin.file: path={{ nginx_root_prefix }}/{{ item.domain_name }} state=directory owner=nginx group=nginx recurse=true
|
|
|
|
when:
|
|
|
|
- item.has_wordpress is defined
|
|
|
|
- item.has_wordpress
|
|
|
|
loop: "{{ nginx_vhosts }}"
|
2018-04-26 16:09:09 +02:00
|
|
|
tags: wordpress
|
|
|
|
|
|
|
|
# vim: set ts=2 sw=2:
|