Git Product home page Git Product logo

ansible-roles's Introduction

Ansible roles

一整套生产环境的 Ansible roles

系统环境

# 操作系统
$ cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)

# Python 版本
$ python -V
Python 3.6.8

# Ansible 版本
$ ansible --version
ansible 2.9.0
  config file = None
  configured module search path = ['/home/ops/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/ops/env3/lib64/python3.6/site-packages/ansible
  executable location = /home/ops/env3/bin/ansible
  python version = 3.6.8 (default, Nov 16 2020, 16:55:22) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)]

说明

ansible.cfg:ansible 配置文件 hosts:一套完整生产环境的服务器列表 test.yml:初始化整套生产环境的 playbook 编排

PS:由于生产环境网络管控,故大部分中间件都使用离线方式安装,离线安装包需要提前准备。

执行 playbook

# 下载 ansible role,离线安装包需要提前准备
$ git clone [email protected]:jiangliheng/Ansible-roles.git
$ cd Ansible-roles

# 初始化整个环境
$ ansible-playbook -i hosts test.yml

# 执行特定 role
$ ansible-playbook -i hosts test.yml --tags=yum

# 选择特定服务器的特定 role
$ ansible-playbook -i hosts test.yml --tags=yum,docker --limit=mon

开源协议

MIT

作者信息

https://github.com/jiangliheng

ansible-roles's People

Contributors

jiangliheng avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.