Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ Linux install deploy Ansible     - How to modify the Ubuntu terminal user name changed to red color (Linux)

- Oracle ORA-01089 failure analysis (Database)

- Linux foundation tutorial: how to modify the host name on CentOS or RHEL 7 (Linux)

- APF firewall installation and configuration under Linux (Linux)

- Smooth upgrade to OpenSSH 6.7 Procedure (Linux)

- Linux Security Setup Guide (Linux)

- Add your own kernel and ramfs based on an existing Linux LiveCD (Linux)

- Lazarus IDE Start Basics Tutorial (Linux)

- LAN Deployment Docker-- from scratch to create your own private warehouse Docker (Linux)

- Oracle and MySQL difference between the jdbc (Database)

- Install DB2 V10 and Data Studio V3 under Linux (Ubuntu) environment (Database)

- Linux suffered SYN flood attack setting (Linux)

- Linux Basic Course: tar command description (Linux)

- Single-node Hadoop installation notes distributed pseudo & (Server)

- How to disable IPv6 in the CentOS 7 (Linux)

- Using Libreoffice under ubuntu (Linux)

- How to identify memory leaks in Java (Programming)

- Swift notes - let you two hours to learn Swift (Programming)

- To share some very useful Vim command (Linux)

- Binary search and modification (Programming)

  Linux install deploy Ansible
  Add Date : 2017-08-31      
Ansible is a tool for mass deployment, operation and maintenance personnel are now the most used three open source centralized management tools: puppet, saltstack, ansible, each have their own advantages and disadvantages, which are used saltstack and ansible python development. ansible fact accurate to say that only provide a framework, it should be based on a lot of other python module to work, so in the installation again ansible when you hold a lot of other dependent packages.

One advantage is that users can develop their own module, use on the inside. The second advantage is no need to install the client agent, update, an update can be performed only on the operating machine. A third advantage is that the bulk task execution can be written in the script, but not distributed to the remote can be performed.

Note: We strongly recommend upgrading to version 2.6 or python, or run some functions will be wrong or not, at the time of compiling the installation of other packages is also being given because of compatibility issues.

(1), python2.7 install
# Tar xvzf Python-2.7.8.tgz
# Cd Python-2.7.8
# ./configure --prefix = / Usr / local
# Make
# Make install

## When the python header files are copied to the standard directory to avoid compiler ansible, can not find the header files
# Cd /usr/local/include/python2.7
# Cp -a ./* / usr / local / include /

## Backups old version of python, and symbolic links to the new version of python
# Cd / usr / bin
# Mv python python.old
# Ln -s /usr/local/bin/python2.7 / usr / local / bin / python
# Rm -f / usr / bin / python && cp /usr/local/bin/python2.7 / usr / bin / python

## Modify yum script to point to the old version of python, it has been unable to avoid running
# Vim / usr / bin / yum
! # / Usr / bin / python -!> # / Usr / bin / python2.4

(2), setuptools module installation
# Tar xvzf setuptools-7.0.tar.gz
# Cd setuptools-7.0
# Python setup.py install
After installing setuptools easy_install can use this tool to install the following python module, but my computer is a virtual machine, the configuration is too low, so basically can not be installed, so I had to download one by one and then installed.
(3), pycrypto module installation
# Tar xvzf pycrypto-2.6.1.tar.gz
# Cd pycrypto-2.6.1
# Python setup.py install

(4), PyYAML module installation
# Tar xvzf yaml-0.1.5.tar.gz
# Cd yaml-0.1.5
# ./configure --prefix = / Usr / local
# Make --jobs = `grep processor / proc / cpuinfo | wc -l`
# Make install

# Tar xvzf PyYAML-3.11.tar.gz
# Cd PyYAML-3.11
# Python setup.py install

(5), Jinja2 module installation
# Tar xvzf MarkupSafe-0.9.3.tar.gz
# Cd MarkupSafe-0.9.3
# Python setup.py install

# Tar xvzf Jinja2-2.7.3.tar.gz
# Cd Jinja2-2.7.3
# Python setup.py install

(6), paramiko module installation
# Tar xvzf ecdsa-0.11.tar.gz
# Cd ecdsa-0.11
# Python setup.py install

# Tar xvzf paramiko-1.15.1.tar.gz
# Cd paramiko-1.15.1
# Python setup.py install

(7), simplejson module installation
# Tar xvzf simplejson-3.6.5.tar.gz
# Cd simplejson-3.6.5
# Python setup.py install

(8), ansible installation
# Tar xvzf ansible-1.7.2.tar.gz
# Cd ansible-1.7.2
# Python setup.py install

(9), SSH keys Free login settings
## Generate public / private key
# Ssh-keygen -t rsa -P ''
## Written trust document (/root/.ssh/id_rsa_storm1.pub will be distributed to other servers, and execute the following command on all servers):
# Cat /root/.ssh/id_rsa_storm1.pub >> /root/.ssh/authorized_keys
# Chmod 600 /root/.ssh/authorized_keys

(10), copy the configuration file to generate ansible
a profile /etc/ansible/ansible.cfg
# Mkdir -p / etc / ansible
#cp ansible-1.7.2 / examples / ansible.cfg / etc / ansible /
b configuration file / etc / ansible / hosts
# Vim / etc / ansible / hosts

# Ansible test -m command -a 'uptime'
## Used to test the operational status of a remote host
# Ansible test -m ping
See all parameters
ansible-doc -l
- Linux how to view the graphics models notebook (Linux)
- Debian SSD ext4 4K aligned (Linux)
- Spring Data JPA call a stored procedure examples (Programming)
- Ubuntu 14.04 How to install Cinnamon 2.4.5 (Linux)
- Linux common network tools: hping Advanced Host Scan (Linux)
- Fast Learning Clojure (Programming)
- The FreeBSD zfs: failed with error 6 Error Resolution (Linux)
- Linux system security configuration (Linux)
- MySQL optimization tabs (Database)
- New experience Budgie (Budgerigar) desktop environment (Linux)
- Linux platform to prevent hackers to share practical skills (Linux)
- The lambda expression Java8 (constructor references) (Programming)
- Samba public folder permissions (Server)
- MongoDB fragmentation (Cluster) (Database)
- Ubuntu Gitolite management Git Server code base permissions (Server)
- Into the Java keyword instanceof (Programming)
- Security: set limits on password (Linux)
- Varnish achieve page jump (Server)
- 14.04.3 Ubuntu configuration and successfully compiled source code Android 6.0 r1 (Programming)
- Java executable file to read information from a database copy (Programming)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.