No description
Find a file
semantic-release-bot fe4f22c850 chore(release): 1.6.0 [skip ci]
# [1.6.0](https://github.com/de-it-krachten/ansible-role-wordpress_docker/compare/v1.5.0...v1.6.0) (2026-03-15)

### Features

* Added support for Fedora 43 ([c07b60e](c07b60e5bb))
* Drop support for Debian 10 (Buster) ([1fdb3e0](1fdb3e09b4))
* Drop support for Fedora 41 ([25a500a](25a500a465))
* Drop support for openSUSE Leap 15 ([8ffe50d](8ffe50d2c5))
* Drop support for SUSE Linux Enterprise 15 ([0528a2b](0528a2b9ec))
2026-03-15 11:42:22 +00:00
.github/workflows Update CI 2026-03-14 20:11:38 +01: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-03-14 20:11:38 +01:00
molecule/default Update supported platforms & CI 2026-03-14 20:11:38 +01: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 Initial commit 2022-11-26 22:58:46 +01:00
.cicd Update CI 2026-03-07 01:13:48 +01:00
.cicd.overwrite Update CI 2026-03-14 20:11:38 +01: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.6.0 [skip ci] 2026-03-15 11:42:22 +00:00
README.md Update CI 2026-03-14 20:11:38 +01: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
  • Fedora 421
  • Fedora 431
  • 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