ansible-role-wordpress/tasks/wp_prerequisites.yml

15 lines
481 B
YAML

---
- block:
- name: Install the wordpress php prerequisites
apt: name={{ wordpress_php_prereq }} state=present cache_valid_time=1800
- name: Get the wordpress CLI tool
get_url: url={{ wordpress_cli_url }} dest={{ wordpress_cli_bin }} mode=0755
- name: Create the wordpress document root
file: dest={{ wordpress_doc_root }} state=directory owner={{ item.user }} group={{ item.group }}
with_items: '{{ wordpress_phpfpm_pools }}'
tags: wordpress