# Role: wordpress

## Description

Install WordPress, it's dependencies and configurations.

https://wordpress.com/

## Usage

Using in a playbook:

``yaml
- name: Play
  gather_facts: true
  gather_subset:
    - distribution
  hosts:
    - all
  roles:
    - samuliy.ansible.wordpress
  vars:
    ...
``

### Vars

`wordpress_access_log`:

Nginx config for the WP access log.

`wordpress_error_log`:

Nginx config for the WP error log.

`wordpress_content_dir`:

Directory where to store WP content.

`wordpress_db_auth_plugin`:

Authentication plugin type.

`wordpress_db_host`:

Database host.

`wordpress_db_name`:

Database name.

`wordpress_db_password`:

Database password.

`wordpress_db_user`:

Database user.

`wordpress_fs_method`:

Filesystem access method.

`wordpress_max_post_size`:

Max POST request body size for the site.

`wordpress_php_fpm_sock`:

PHP-FPM socket path.

`wordpress_user`:

WP user.

`wordpress_group`:

WP group.

`wordpress_admin_allow`:

Addresses to allow for admin access.

`wordpress_admin_headers`:

Headers for admin paths.

`wordpress_content_headers`:

Content headers.

`wordpress_php_headers`:

PHP headers.

`wordpress_root_headers`:

Root path headers.

`wordpress_servers`:

Server names.

`wordpress_deny_json`:

Block WP-JSON.

`wordpress_deny_xmlrpc`:

Block WP-XMLRPC.

`wordpress_wpcron`:

Enable/Disable WP-Cron.

`wordpress_deny_feed`:

Deny access to feed.

`wordpress_deny_comments_feed`:

Deny access to comments feed.

`wordpress_nginx_server_config`:

Add custom Nginx config to the template server block.
