ansible-role-wordpress/tasks/wp_prerequisites.yml

16 lines
499 B
YAML
Raw Normal View History

2020-02-04 11:29:02 +01:00
---
- block:
- name: Install the wordpress php prerequisites
apt: name={{ item }} state=present cache_valid_time=1800
2020-02-04 11:29:02 +01:00
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