网站 二级域名需要备案吗,丛台企业做网站推广,动漫网站策划书,做一个宣传网站要多少钱在处理 Ansible 相关项目时#xff0c;我们经常面临繁琐的命令行操作#xff0c;这对于不熟悉命令行的用户来说可能是一个挑战。此外#xff0c;当项目规模扩大时#xff0c;跟踪和管理多个 playbook 变得困难#xff0c;同时缺乏对失败的及时通知和访问控制。这些问题催生…在处理 Ansible 相关项目时我们经常面临繁琐的命令行操作这对于不熟悉命令行的用户来说可能是一个挑战。此外当项目规模扩大时跟踪和管理多个 playbook 变得困难同时缺乏对失败的及时通知和访问控制。这些问题催生了 Ansible Semaphore。 Ansible Semaphore 旨在解决这些问题。它提供了一个现代化的用户界面通过直观的操作和可视化工具使得运行 Ansible playbook 变得简单而高效。无论是新手还是经验丰富的开发人员都能够通过 Ansible Semaphore 轻松管理和部署项目.
1、首先在下载semaphore的二进制文件 版本自定义
wget https://github.com/ansible-semaphore/semaphore/releases/\
download/v2.8.75/semaphore_2.8.75_linux_amd64.tar.gztar xf semaphore_2.8.75_linux_amd64.tar.gz./semaphore setup
按照交互式的提示输入配置项会生成config.json
最后执行./semaphore service --config./config.jsonconfig.json配置
{mysql: {host: 10.72.88.200:3306,user: semaphere,pass: semaphere,name: semaphere,options: null},bolt: {host: ,user: ,pass: ,name: ,options: null},postgres: {host: ,user: ,pass: ,name: ,options: null},dialect: mysql,port: ,interface: ,tmp_path: /data/semaphere,cookie_hash: dlL7hN6zGPl9nAb7qMH9KxTc1e0j5kFhwFxnxbJO4,cookie_encryption: 6cIiVCnjLSCADd4Gf5ifAPmef6ZFUzzLogT/0C8dVc,access_key_encryption: HnFwKdZbd5qyS0a0Dp0KBJ05mJAdRQuGcI5Y2bA0Vrw,email_sender: ,email_host: ,email_port: ,email_username: ,email_password: ,web_host: ,ldap_binddn: cnxiaomao,cnmanagers,dctest,dccom,ldap_bindpassword: Rootsaxofintech,ldap_server: 10.72.88.200:31683,ldap_searchdn: dctest,dccom,ldap_searchfilter: ((objectClassinetOrgPerson)(cn%s)),ldap_mappings: {dn: ,mail: mail,uid: cn,cn: cn},ldap_enable: true,ldap_needtls: false,telegram_chat: ,telegram_token: ,slack_url: ,max_parallel_tasks: 0,email_alert: false,email_secure: false,telegram_alert: false,slack_alert: false,ssh_config_path: ,demo_mode: false}数据库选一个就可以然后ldap根据自己的值来配置当配置完成后第一个登录的用户是没有admin的权限的需要手动给一下admin的权限
UPDATE semaphere.user SET admin1 WHERE usernamexxx;以系统服务运行
sudo cat /etc/systemd/system/semaphore.service EOF
[Unit]
DescriptionSemaphore Ansible
Documentationhttps://github.com/ansible-semaphore/semaphore
Wantsnetwork-online.target
Afternetwork-online.target[Service]
Typesimple
ExecReload/bin/kill -HUP $MAINPID
ExecStart/path/to/semaphore service --config/path/to/config.json
SyslogIdentifiersemaphore
Restartalways
RestartSec10s[Install]
WantedBymulti-user.target
EOF