Ansible automated operation and maintenance deployment method for Linux system

Ansible automated operation and maintenance deployment method for Linux system

Ansible is a new automated operation and maintenance tool developed based on Python. It integrates the advantages of many old operation and maintenance tools to realize batch operating system configuration, batch program deployment, batch command running and other functions. Let's take a look at how to deploy

In the command line, extract the Ansible source code, git clone git://github.com/ansible/ansible.git --recursive as shown below

Enter the installation directory cd ./ansible directory and execute the installation source ./hacking/env-setup -q

If pip is not installed on the system, install the corresponding pip version first:

easy_install pip

Install the Python modules required by the Ansible control machine

pip install paramiko PyYAML Jinja2 httplib2 six

When you update the Ansible version, you need to update not only the git source tree, but also the modules in git that point to Ansible itself, called submodules.

Once the env-setup script is run, it means that Ansible will clean up the file inventory from the source code. You can specify another location

2. Yum installation method (Centos7x64)

Use the rpm command to install the yum extension source: rpm -Uvh http://mirrors.zju.edu.cn/epel/7/x86_64/e/epel-release-7-7.noarch.rpm

Install with the yum command, yum -y install ansible

You may also be interested in:
  • Installation tutorial of Ansible for Python automation
  • Detailed tutorial on using the Linux automated operation and maintenance tool Ansible
  • Cluster operation and maintenance automation tool Ansible uses playbook to install the zabbix client
  • Installation and use of cluster operation and maintenance automation tool ansible (including module and playbook use)
  • Ansible as a Python module library method example
  • Python uses ansible to distribute processing tasks
  • Detailed explanation of Ansible, a centralized management platform
  • Python converts ansible configuration to json format example code
  • Python ansible service and script writing
  • Introduction to Ansible and YAML, a Python centralized management platform
  • Python automated operation and maintenance Ansible definition of host and group rules operation detailed explanation

<<:  How to use module fs file system in Nodejs

>>:  Common commands for mysql authorization, startup, and service startup

Recommend

Detailed explanation of DOM DIFF algorithm in react application

Table of contents Preface What is VirtualDOM? Rea...

VMware Workstation is not compatible with Device/Credential Guard

When installing a virtual machine, a prompt appea...

Methods of adaptive web design (good access experience on mobile phones)

1. Add the viewport tag to the HTML header. At th...

MySQL Best Practices: Basic Types of Partition Tables

Overview of MySQL Partitioned Tables As MySQL bec...

mysql command line script execution example

This article uses an example to illustrate the ex...

The principle and implementation of js drag effect

The drag function is mainly used to allow users t...

js to implement a simple bullet screen system

This article shares the specific code of native j...

Example of how to optimize MySQL insert performance

MySQL Performance Optimization MySQL performance ...

js and jquery to achieve tab status bar switching effect

Today we will make a simple case, using js and jq...

Linux concurrent execution is simple, just do it this way

Concurrency Functions time for i in `grep server ...

Summary of the use of vue Watch and Computed

Table of contents 01. Listener watch (1) Function...

Example of implementing TikTok text shaking effect with CSS

In daily development, front-end students often ar...

HTML6 implements folding menu and accordion menu example code

The main part of the page: <body> <ul id...

How to use & and nohup in the background of Linux

When we work in a terminal or console, we may not...