b91112516d
* Introduce Kumpir, our new www server, add wordpress role * move kumpir to services group, use safer distinction for ssl_cert location, reduce www playbook * set server type to services * fix typo * rename service-wordpress to service-nginx-wordpress * Add service-nginx-etherpad role * Add ed25519 keypair for system_users when supported. * Revert "Add ed25519 keypair for system_users when supported." This reverts commit ffef991ca41185d19953b96439e80b1b9a6ba534. * Change generated keys format to ed25519 * fix indention of nginx templates, reduce amount of needed tasks by adding extra_opts to unarchive, remove not needed mysql db tasks, make new acme_server default * Change new default preference for acme servers, marking acme_server zuckerwatte deprecated soon.
34 lines
1 KiB
Markdown
34 lines
1 KiB
Markdown
<p align="center">
|
|
<img width="150" height="150" src="https://upload.wikimedia.org/wikipedia/commons/9/98/WordPress_blue_logo.svg">
|
|
</p>
|
|
|
|
# Ansible Role: WordPress
|
|
|
|
Ansible role that installs and configures WordPress with Nginx.
|
|
|
|
Features include:
|
|
- Installation of any WordPress version to specified directory
|
|
- Configuration of `wp-config.php`
|
|
- Fetch random salts for wp-config.php (https://api.wordpress.org/secret-key/1.1/salt/)
|
|
|
|
## Requirements & Dependencies
|
|
- Ansible 1.4 or higher
|
|
- Curl
|
|
|
|
## Variables
|
|
Here is a list of all the default variables for this role, which are also available in `defaults/main.yml`.
|
|
|
|
```yaml
|
|
wp_version: latest
|
|
wp_install_dir: '/var/www/html'
|
|
wp_db_name: "{{ wp_mysql_db }}" (required)
|
|
wp_db_user: "{{ wp_mysql_user }}" (required)
|
|
wp_db_password: "{{ wp_mysql_password }}" (required)
|
|
wp_db_host: 'localhost'
|
|
wp_db_charset: 'utf8mb4'
|
|
wp_db_collate: 'utf8mb4_unicode_ci'
|
|
wp_table_prefix: 'wp_'
|
|
wp_debug: false
|
|
wp_admin_email: 'admin@example.com'
|
|
site_name: "{{ wp_sitename }}" (requires)
|
|
```
|