robertdebock.roundcubemail

Ansible 角色 roundcubemail

在您的系统上安装和配置 roundcubemail。

GitHub GitLab 下载量 版本
github gitlab downloads Version

示例剧本

这个示例来自 molecule/default/converge.yml,并在每次推送、拉取请求和发布时进行测试。

---
- 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

需要对机器进行准备。在 CI 中,这通过 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: 欧洲/阿姆斯特丹
      php_extension:
        - mcrypt.so
    - role: robertdebock.mysql
      mysql_databases:
        - name: roundcube
      mysql_users:
        - name: roundcube
          password: roundcube
          priv: "roundcube.*:ALL"

还可以查看 完整的说明和示例 来了解如何使用这些角色。

角色变量

变量的默认值在 defaults/main.yml 中设置:

---
# roundcubemail 的默认值文件

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

# 获取支持的 URL。
roundcubemail_support_url: "{{ ansible_fqdn }}/support"

# 加密敏感数据的密钥。
roundcubemail_des_key: 964af56991531a805bd55085

# 使用的拼写检查工具。可以是:'google'、'pspell'、'enchant' 或 'atd'。
roundcubemail_spellcheck_engine: pspell

# 用于登录的邮件主机。
roundcubemail_default_host: localhost
roundcubemail_default_port: 143

# SMTP 服务器主机(用于发送邮件)。
roundcubemail_smtp_server: localhost
roundcubemail_smtp_port: 25
roundcubemail_smtp_user: ""
roundcubemail_smtp_pass: ""

要求

使用的角色状态

以下角色用于准备系统。您可以以其他方式准备系统。

需求 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

背景

该角色是许多兼容角色的一部分。有关更多信息,请查看 这些角色的文档

以下是相关角色的概述: dependencies

兼容性

此角色已在以下 容器镜像 上进行了测试:

容器 标签
Debian all
Fedora all
Ubuntu all

所需的 Ansible 最低版本为 2.12,测试已在以下版本上进行:

  • 之前的版本。
  • 当前版本。
  • 开发版本。

如果您发现问题,请在 GitHub 中报告。

许可

Apache-2.0

作者信息

robertdebock

请考虑 赞助我

关于项目

Install and configure roundcubemail on your system.

安装
ansible-galaxy install robertdebock.roundcubemail
许可证
apache-2.0
下载
464
拥有者
I know my way around (Linux) infrastructure, have a passion for automation, Docker, Ansible, Molecule and ci/cd.