In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article is about how to automate the deployment of Ansible operations and maintenance in linux systems. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Ansible is a new automatic operation and maintenance tool based on Python. Integrate the advantages of many established operation and maintenance tools to achieve batch operating system configuration, batch program deployment, batch running commands and other functions, let's take a look at how to deploy
On the command line, extract the Ansible source code, git clone git://github.com/ansible/ansible.git-- recursive as shown in the following figure
Go to the installation directory cd. / ansible and execute the installation source. / hacking/env-setup-Q
If pip is not installed on the system, install the corresponding ptyhon version of pip first:
Easy_install pip
Install the python module required by the Ansible controller
Pip install paramiko PyYAML Jinja2 httplib2 six
When you update the Ansible version, you need to update not only the source tree of git, but also the module in git that points to Ansible itself, called submodules
Once you run the env-setup script, it means that Ansible from the source code, clear the file inventory can specify another location
2. Yum installation mode (Centos7x64)
Install the yum extension source with the rpm command: 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
Thank you for reading! This is the end of the article on "how to realize Ansible automatic operation and maintenance deployment in linux system". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.