Alan Orth
aa1dac8c30
ansible-lint told me not to test equality with booleans using literal "True" and "False", but it Ansible complains if I use "is True" also. It seems that I need to adjust the syntax slightly.
16 lines
606 B
YAML
16 lines
606 B
YAML
---
|
|
|
|
- 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
|
|
when: item.has_wordpress is defined and item.has_wordpress
|
|
loop: "{{ nginx_vhosts }}"
|
|
|
|
- name: Fix WordPress directory permissions
|
|
file: path={{ nginx_root_prefix }}/{{ item.domain_name }} state=directory owner=nginx group=nginx recurse=yes
|
|
when: item.has_wordpress is defined and item.has_wordpress
|
|
loop: "{{ nginx_vhosts }}"
|
|
tags: wordpress
|
|
|
|
# vim: set ts=2 sw=2:
|