morbidick.semaphore

Ansible UI Semaphore

Ansible 角色用于安装和配置 Ansible UI Semaphore

要求

没有特别要求。但是在生产环境中,您应该安装一个 web 服务器作为 SSL 终端的代理。

示例剧本

- hosts: all
  become: yes

  roles:
  - semaphore

  vars:
    semaphore_addn_config:
      email_alert: true
      email_sender: "[email protected]"

使用现有的数据库/MariaDB

只需将 semaphore_mysql_install 设置为 false,并提供凭据 semaphore_mysql_*

角色变量

以下变量皆为可选。

变量 默认值 备注
semaphore_version v2.8.77 要下载的版本,另见 semaphore_download_urlsemaphore_download_checksum
semaphore_mysql_install true 是否在主机上安装 mysql,默认密码为 mysql_root_password
semaphore_mysql_create_db true 是否创建 mysql 数据库和用户
semaphore_mysql_host:semaphore_mysql_port 127.0.0.1:3306 mysql 主机
semaphore_mysql_db semaphore mysql 数据库
semaphore_mysql_user semaphore mysql 用户
semaphore_mysql_password semaphore mysql 用户密码
semaphore_user semaphore semaphore 运行的用户和 systemd 标识符
semaphore_port 3000 semaphore 绑定的端口
semaphore_path /opt/semaphore 二进制文件存放位置
semaphore_addn_config {} 所有选项请参见 源代码
semaphore_config_path /etc/semaphore/semaphore.json 配置文件
semaphore_default_user admin 默认用户的登录名
semaphore_default_user_name semaphore_default_user 可读用户名
semaphore_default_user_password admin 密码
semaphore_default_user_mail admin@example.com 邮箱地址

有关所有选项,请参见 defaults/main.yml

演示/开发

使用 Molecule 进行测试,CentOS 机器的 web 界面将被暴露,可以用作演示。

  • 运行 molecule converge
  • 在浏览器中打开 127.0.0.1:3000
  • 使用用户名和密码 admin 登录。

许可证

MIT

关于项目

install and configure the Ansible UI Semaphore

安装
ansible-galaxy install morbidick.semaphore
许可证
Unknown
下载
835
拥有者
mostly web dev, freelancer with @madways