mirror of
https://github.com/de-it-krachten/ansible-role-wordpress
synced 2026-05-14 12:01:51 +00:00
No description
- Jinja 100%
# [1.5.0](https://github.com/de-it-krachten/ansible-role-wordpress/compare/v1.4.0...v1.5.0) (2025-09-03) ### Features * Add support for AlmaLinux 10 ([ |
||
|---|---|---|
| .github/workflows | ||
| defaults | ||
| files | ||
| handlers | ||
| meta | ||
| molecule/default | ||
| tasks | ||
| .ansible-lint | ||
| .cicd | ||
| .cicd.overwrite | ||
| .collections | ||
| .gitignore | ||
| .releaserc.yml | ||
| .roles | ||
| .yamllint | ||
| CHANGELOG.md | ||
| README.md | ||
ansible-role-wordpress
Dependencies
Roles
None
Collections
- ansible.posix
- community.general
Platforms
Supported platforms
- Red Hat Enterprise Linux 81
- Red Hat Enterprise Linux 91
- RockyLinux 8
- RockyLinux 9
- OracleLinux 8
- OracleLinux 9
- AlmaLinux 8
- AlmaLinux 9
- Debian 11 (Bullseye)
- Debian 12 (Bookworm)
- Ubuntu 22.04 LTS
- Ubuntu 24.04 LTS
Note: 1 : no automated testing is performed on these platforms
Role Variables
defaults/main.yml
# Wordpress configuration location
wordpress_conf_dir: /var/www/wordpress
# Wordpress code location
wordpress_path: /var/www/wordpress
# Wordpress tmp path
wordpress_tmp_path: /tmp/wordpress
# Wordpress owner
wordpress_user: "{{ webserver_user | default('wordpress') }}"
# Wordpress group
wordpress_group: "{{ webserver_group | default('wordpress') }}"
# Wordpress database name
wordpress_db_name: wordpress
# Wordpress database user
wordpress_db_user: wordpress
# Wordpress database password
wordpress_db_pwd: wordpress
Example Playbook
molecule/default/converge.yml
- name: sample playbook for role 'wordpress'
hosts: all
become: 'yes'
vars:
openssl_fqdn: server.example.com
apache_fqdn: server.example.com
apache_ssl_key: '{{ openssl_server_key }}'
apache_ssl_crt: '{{ openssl_server_crt }}'
apache_ssl_chain: '{{ openssl_server_crt }}'
mariadb_release: 10.11
mariadb_user: root
mariadb_pwd: root
mariadb_db_host: localhost
mariadb_db_name: wordpress
mariadb_db_user: wordpress
mariadb_db_pwd: wordpress
mariadb_socket_authentication: false
wordpress_path: /var/www/html
wordpress_conf_dir: /var/www/html
wordpress_db_host: localhost
wordpress_db_name: wordpress
wordpress_db_user: wordpress
wordpress_db_pwd: wordpress
roles:
- deitkrachten.openssl
- deitkrachten.apache
- deitkrachten.php
- deitkrachten.mariadb
tasks:
- name: Include role 'wordpress'
ansible.builtin.include_role:
name: wordpress