robertdebock.roundcubemail

Ansible Role RoundcubeMail

This guide helps you install and set up RoundcubeMail on your system.

GitHub GitLab Downloads Version
GitHub GitLab Downloads Version

Example Playbook

The example below is taken from molecule/default/converge.yml and is tested with every update.

---
- name: Converge
  hosts: all
  become: true
  gather_facts: true

  vars_files:
    ../../vars/main.yml

  roles:
    - role: robertdebock.httpd
      httpd_vhosts:
        - name: docroot
          servername: localhost
          documentroot: "{{ roundcubemail_install_directory }}"
    - role: robertdebock.roundcubemail

Before running the playbook, you need to prepare the machine. In CI, this is done using molecule/default/prepare.yml:

---
- name: Prepare
  hosts: all
  become: true
  gather_facts: false

  roles:
    - role: robertdebock.bootstrap
    - role: robertdebock.epel
    - role: robertdebock.buildtools
    - role: robertdebock.python_pip
    - role: robertdebock.openssl
      openssl_items:
        - name: apache-httpd
          common_name: "{{ ansible_fqdn }}"
    - role: robertdebock.selinux
    - role: robertdebock.httpd
    - role: robertdebock.php
      php_upload_max_filesize: 5M
      php_post_max_size: 6M
      php_date_timezone: Europe/Amsterdam
      php_extension:
        - mcrypt.so
    - role: robertdebock.mysql
      mysql_databases:
        - name: roundcube
      mysql_users:
        - name: roundcube
          password: roundcube
          priv: "roundcube.*:ALL"

For a full explanation and example of how to use these roles, check the link.

Role Variables

Default variable values are set in defaults/main.yml:

---
# defaults file for roundcubemail

roundcubemail_database_host: localhost
roundcubemail_database_user: roundcube
roundcubemail_database_password: roundcube
roundcubemail_database_name: roundcube

# A URL for support.
roundcubemail_support_url: "{{ ansible_fqdn }}/support"

# A key for encrypting sensitive data.
roundcubemail_des_key: 964af56991531a805bd55085

# The spellchecker to use: 'google', 'pspell', 'enchant', or 'atd'.
roundcubemail_spellcheck_engine: pspell

# The mail server used for login.
roundcubemail_default_host: localhost
roundcubemail_default_port: 143

# SMTP server settings for sending emails.
roundcubemail_smtp_server: localhost
roundcubemail_smtp_port: 25
roundcubemail_smtp_user: ""
roundcubemail_smtp_pass: ""

Requirements

Used Roles

The following roles will prepare your system, though you can use other methods as well.

Requirement GitHub GitLab
robertdebock.bootstrap Build Status GitHub Build Status GitLab
robertdebock.buildtools Build Status GitHub Build Status GitLab
robertdebock.epel Build Status GitHub Build Status GitLab
robertdebock.httpd Build Status GitHub Build Status GitLab
robertdebock.mysql Build Status GitHub Build Status GitLab
robertdebock.openssl Build Status GitHub Build Status GitLab
robertdebock.php Build Status GitHub Build Status GitLab
robertdebock.python_pip Build Status GitHub Build Status GitLab
robertdebock.reboot Build Status GitHub Build Status GitLab
robertdebock.selinux Build Status GitHub Build Status GitLab

Context

This role works alongside many other roles. For more information, refer to the documentation of these roles.

Here's a look at the related roles: dependencies

Compatibility

This role has been tested with these Docker images:

Container Tags
Debian all
Fedora all
Ubuntu all

You need Ansible version 2.12 or higher. Tests have been done for:

  • The last version.
  • The current version.
  • The development version.

If you find any problems, please report them on GitHub.

License

This role is licensed under Apache-2.0.

Author Information

Created by robertdebock.

Consider sponsoring me.

Informazioni sul progetto

Install and configure roundcubemail on your system.

Installa
ansible-galaxy install robertdebock.roundcubemail
Licenza
apache-2.0
Download
464
Proprietario
I know my way around (Linux) infrastructure, have a passion for automation, Docker, Ansible, Molecule and ci/cd.