ansible-roles/library/roles/wordpress/tasks/wp_prerequisites.yml

16 lines
477 B
YAML

---
- block:
- name: Install the wordpress php prerequisites
apt: name={{ item }} state=present
with_items: '{{ wordpress_php_prereq }}'
- 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: '{{ phpfpm_pools }}'
tags: wordpress