ansible- foundation and installation

  1. What is the ansible
    ansible is in a python module, the system of an automated tool that can be used for system management, command automation, and other tasks.

  2. ansible advantage

    (1) ansible is a python in a complete automation tasks modules

    (2) ansible of play_book mode, using yaml configuration, automation tasks for execution at a glance

    (3) Automation supports rich scene
  3. ansible installation

    (1) by way of the system, yum, apt-get, etc. (recommendation)
    [root@test-1 ~]# yum install ansible -y

    (2) by way of python
    • python ./setup.py install
    • easy_install ansible
    • pip install ansible
     [root@1-230 tools]# cd /tools/
     [root@1-230 tools]# tar zxf ansible-2.5.11.tar.gz 
     [root@1-230 tools]# which python
     /usr/bin/python
     [root@1-230 tools]# cd ansible-2.5.11
     [root@1-230 ansible-2.5.11]# ls setup.py 
     setup.py
     [root@1-230 ansible-2.5.11]# /usr/bin/python ./setup.py  install

Guess you like

Origin www.cnblogs.com/scajy/p/11353748.html