No description
Find a file
semantic-release-bot b5ea074049 chore(release): 1.7.0 [skip ci]
# [1.7.0](https://github.com/de-it-krachten/ansible-role-wordpress_docker/compare/v1.6.0...v1.7.0) (2026-07-26)

### Features

* Added support for Fedora 44 ([1f2995e](1f2995eefe))
* Added support for Ubuntu 26.04 LTS ([8d94f70](8d94f704f9))
* Drop support for Fedora 42 ([fe19fee](fe19fee5b4))
2026-07-26 20:00:02 +00:00
.github/workflows Update CI 2026-07-23 18:46:57 +02:00
defaults Update CI 2023-04-11 20:55:16 +02:00
handlers feat: Update supported platforms & CI 2024-12-29 15:19:58 +01:00
meta Update CI 2026-06-07 18:10:11 +02:00
molecule/default Update CI 2026-07-25 17:59:55 +02:00
tasks Update some stuff 2023-02-16 23:44:54 +01:00
templates Update CI 2023-04-11 20:55:16 +02:00
.ansible-lint Update CI 2026-06-07 18:10:11 +02:00
.cicd Update CI 2026-06-09 10:34:50 +02:00
.cicd.overwrite Update CI 2026-06-07 18:10:11 +02:00
.collections feat: Add support for Ubuntu 24.04 LTS + Fedora 40 2024-06-01 00:01:54 +02:00
.gitignore feat: Update supported platforms & CI 2024-12-29 15:19:58 +01:00
.releaserc.yml Update CI 2025-09-03 22:21:58 +02:00
.roles Initial commit 2022-11-26 22:58:46 +01:00
.yamllint feat: Update supported platforms & CI 2024-12-29 15:19:58 +01:00
CHANGELOG.md chore(release): 1.7.0 [skip ci] 2026-07-26 20:00:02 +00:00
README.md Update CI 2026-06-07 18:10:11 +02:00

CI

ansible-role-wordpress_docker

Sets up a Wordpress instance using Docker.
This consists of Wordpress/PHP/MySQL/nginx

Dependencies

Roles

None

Collections

  • community.docker

Platforms

Supported platforms

  • Red Hat Enterprise Linux 81
  • Red Hat Enterprise Linux 91
  • Red Hat Enterprise Linux 101
  • RockyLinux 81
  • RockyLinux 91
  • RockyLinux 101
  • OracleLinux 81
  • OracleLinux 91
  • OracleLinux 101
  • AlmaLinux 81
  • AlmaLinux 91
  • AlmaLinux 101
  • Debian 11 (Bullseye)1
  • Debian 12 (Bookworm)1
  • Debian 13 (Trixie)1
  • Ubuntu 18.04 LTS1
  • Ubuntu 20.04 LTS1
  • Ubuntu 22.04 LTS1
  • Ubuntu 24.04 LTS1
  • Ubuntu 26.04 LTS1
  • Fedora 431
  • Fedora 441
  • Alpine 31
  • Docker dind (CI only)

Note: 1 : no automated testing is performed on these platforms

Role Variables

defaults/main.yml


# Wordpress FQDN
wordpress_fqdn: wp.example.com

# Retrieve SSL certificate from let's encrypt
wordpress_certbot: true

# Run nginx in docker
wordpress_nginx_docker: true

# Is there a reverse proxy in front
wordpress_reverse_proxy: false

# Custom SSL certificate
# wordpress_ssl_key: /path/to/key
# wordpress_ssl_certificate_chain: /path/to/certificate/chain

# Max upload size
wordpress_max_upload_size: 100M

Example Playbook

molecule/default/converge.yml


- name: sample playbook for role 'wordpress_docker'
  hosts: all
  become: 'yes'
  vars:
    molecule_driver: '{{ lookup(''env'', ''MOLECULE_DRIVER_NAME'') }}'
    mysql_root_password: wordpress
    mysql_user: wordpress
    mysql_password: wordpress
    mysql_database: wordpress
    wordpress_certbot: false
    wordpress_domain: example.com
    wordpress_docker_data: /export/docker/wordpress
    wordpress_db_name: wordpress
    wordpress_db_user: wordpress
    wordpress_db_pwd: wordpress
    letsencrypt_email: info@{{ wordpress_domain }}
    letsencrypt_domain: '{{ wordpress_domain }}'
    letsencrypt_domains: '{{ [ wordpress_domain ] }}'
  roles:
    - deitkrachten.openssl
  tasks:
    - name: Include role 'wordpress_docker'
      ansible.builtin.include_role:
        name: wordpress_docker