Alan Orth
ffe7a872dd
According to Ansible we can use yes, true, True, "or any quoted st- ring" for a boolean true, but ansible-lint wants us to use either true or false. See: https://chronicler.tech/red-hat-ansible-yes-no-and/
16 lines
640 B
YAML
16 lines
640 B
YAML
---
|
|
|
|
- block:
|
|
- 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 and item.has_wordpress
|
|
loop: "{{ nginx_vhosts }}"
|
|
|
|
- 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 and item.has_wordpress
|
|
loop: "{{ nginx_vhosts }}"
|
|
tags: wordpress
|
|
|
|
# vim: set ts=2 sw=2:
|