{"id":18992143,"url":"https://github.com/ecarry/playbook","last_synced_at":"2026-03-19T07:32:30.185Z","repository":{"id":134728651,"uuid":"329510844","full_name":"ECarry/playbook","owner":"ECarry","description":"为 Rehat/Cent OS 7 写的 ansible playbook，用于一键部署多种服务","archived":false,"fork":false,"pushed_at":"2021-09-18T01:24:36.000Z","size":8639,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-06T02:37:15.634Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ECarry.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-14T04:52:56.000Z","updated_at":"2021-09-18T01:24:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"94b4ff7f-89dc-47e0-ba10-7a5f0158d3d5","html_url":"https://github.com/ECarry/playbook","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ECarry/playbook","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ECarry%2Fplaybook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ECarry%2Fplaybook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ECarry%2Fplaybook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ECarry%2Fplaybook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ECarry","download_url":"https://codeload.github.com/ECarry/playbook/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ECarry%2Fplaybook/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29514712,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T17:46:34.542Z","status":"ssl_error","status_checked_at":"2026-02-16T17:46:30.907Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T17:16:35.528Z","updated_at":"2026-02-16T18:34:07.056Z","avatar_url":"https://github.com/ECarry.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 简介\n\nansible playbook 适用于 Rehat/Cent OS 7 部署环境\n\n# 介绍\n\n将为服务器配置如下内容：\n\n- Zabbix\n\n\n# 安装\n\n## 1.1 使用 epel 源 安装\n\n### 1.1.1 先安装 epel 源\n\n```shell\n# 适用于 RHEL/CentOS 7\nyum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm\n```\n\n### 1.1.2 安装 ansible\n\n```shell\nyum install -y ansible\n# 安装成功后验证\n[root@ops ~]# ansible --version\nansible 2.9.16\n  config file = /etc/ansible/ansible.cfg        # 默认配置文件目录\n  configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']\n  ansible python module location = /usr/lib/python2.7/site-packages/ansible\n  executable location = /usr/bin/ansible\n  python version = 2.7.5 (default, Apr  2 2020, 13:16:51) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]\n```\n\n## 1.2 使用 pip 安装\n\n`pip install ansible`\n\n# 使用\n\n## zabbix-server\n\n1. 修改主机配置文件，`/etc/ansible/hosts`，添加需要安装的主机：\n\n```\n[zabbix-server]\n192.168.1.1\n\n[zabbix-angent]\n192.168.1.[10:100]\n```\n\n2. 修改 `zabbix_server/agent_install.yml` hosts 项\n3. 执行 `ansible-playbook zabbix_server_install.yml`\n\n## zabbix-agent\n\n安装前配置 `roles/zabbix-agent/vars/main.yml`\n\n```yml\n# 配置服务端 IP\nServer: 192.168.1.1\nServerActive: 192.168.1.1\n```\n\n## nginx\n\n1. 修改自定义参数 `/roles/nginx/vars/main.yml`：\n\n- PIDFile: /run/nginx.pid\n- installDir: /app/nginx\n- USERID: nginx\n- GROUPID: nginx\n\n2. 修改主机配置文件，`/etc/ansible/hosts`，添加需要安装的主机：\n\n```\n[nginx]\n192.168.1.1\n```\n\n3. 修改 `nginx_role.yml` hosts：nginx\n4. 开始安装 `ansible-playbook nginx_role.yml`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecarry%2Fplaybook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fecarry%2Fplaybook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecarry%2Fplaybook/lists"}