You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »


설치 Command

sudo yum install ansible

설치 버전 확인

ansible --version

[devops@work-vm ~]$ sudo yum install ansible
Loaded plugins: fastestmirror, langpacks
Determining fastest mirrors
base                                                                                                                                 | 3.1 kB  00:00:00
extras                                                                                                                               | 2.5 kB  00:00:00
openlogic                                                                                                                            | 2.9 kB  00:00:00
updates                                                                                                                              | 2.6 kB  00:00:00
(1/5): openlogic/7/x86_64/primary_db                                                                                                 |  17 kB  00:00:00
(2/5): base/7/x86_64/group_gz                                                                                                        | 165 kB  00:00:00
(3/5): extras/7/x86_64/primary_db                                                                                                    | 153 kB  00:00:00
(4/5): base/7/x86_64/primary_db                                                                                                      | 6.0 MB  00:00:00
(5/5): updates/7/x86_64/primary_db                                                                                                   | 4.2 MB  00:00:00
Resolving Dependencies
--> Running transaction check
---> Package ansible.noarch 0:2.4.2.0-2.el7 will be installed
--> Processing Dependency: sshpass for package: ansible-2.4.2.0-2.el7.noarch
--> Processing Dependency: python2-jmespath for package: ansible-2.4.2.0-2.el7.noarch
--> Processing Dependency: python-setuptools for package: ansible-2.4.2.0-2.el7.noarch
--> Processing Dependency: python-passlib for package: ansible-2.4.2.0-2.el7.noarch
--> Processing Dependency: python-paramiko for package: ansible-2.4.2.0-2.el7.noarch
--> Processing Dependency: python-jinja2 for package: ansible-2.4.2.0-2.el7.noarch
--> Processing Dependency: python-httplib2 for package: ansible-2.4.2.0-2.el7.noarch
--> Processing Dependency: python-cryptography for package: ansible-2.4.2.0-2.el7.noarch
--> Running transaction check
---> Package python-httplib2.noarch 0:0.9.2-1.el7 will be installed
---> Package python-jinja2.noarch 0:2.7.2-4.el7 will be installed
--> Processing Dependency: python-babel >= 0.8 for package: python-jinja2-2.7.2-4.el7.noarch
--> Processing Dependency: python-markupsafe for package: python-jinja2-2.7.2-4.el7.noarch
---> Package python-paramiko.noarch 0:2.1.1-9.el7 will be installed
---> Package python-passlib.noarch 0:1.6.5-2.el7 will be installed
---> Package python-setuptools.noarch 0:0.9.8-7.el7 will be installed
--> Processing Dependency: python-backports-ssl_match_hostname for package: python-setuptools-0.9.8-7.el7.noarch
---> Package python2-cryptography.x86_64 0:1.7.2-2.el7 will be installed
--> Processing Dependency: python-idna >= 2.0 for package: python2-cryptography-1.7.2-2.el7.x86_64
--> Processing Dependency: python-cffi >= 1.4.1 for package: python2-cryptography-1.7.2-2.el7.x86_64
--> Processing Dependency: python-ipaddress for package: python2-cryptography-1.7.2-2.el7.x86_64
--> Processing Dependency: python-enum34 for package: python2-cryptography-1.7.2-2.el7.x86_64
---> Package python2-jmespath.noarch 0:0.9.0-3.el7 will be installed
---> Package sshpass.x86_64 0:1.06-2.el7 will be installed
--> Running transaction check
---> Package python-babel.noarch 0:0.9.6-8.el7 will be installed
---> Package python-backports-ssl_match_hostname.noarch 0:3.5.0.1-1.el7 will be installed
--> Processing Dependency: python-backports for package: python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch
---> Package python-cffi.x86_64 0:1.6.0-5.el7 will be installed
--> Processing Dependency: python-pycparser for package: python-cffi-1.6.0-5.el7.x86_64
---> Package python-enum34.noarch 0:1.0.4-1.el7 will be installed
---> Package python-idna.noarch 0:2.4-1.el7 will be installed
---> Package python-ipaddress.noarch 0:1.0.16-2.el7 will be installed
---> Package python-markupsafe.x86_64 0:0.11-10.el7 will be installed
--> Running transaction check
---> Package python-backports.x86_64 0:1.0-8.el7 will be installed
---> Package python-pycparser.noarch 0:2.14-1.el7 will be installed
--> Processing Dependency: python-ply for package: python-pycparser-2.14-1.el7.noarch
--> Running transaction check
---> Package python-ply.noarch 0:3.4-11.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================================================================================
 Package                                                  Arch                        Version                             Repository                   Size
============================================================================================================================================================
Installing:
 ansible                                                  noarch                      2.4.2.0-2.el7                       extras                      7.6 M
Installing for dependencies:
 python-babel                                             noarch                      0.9.6-8.el7                         base                        1.4 M
 python-backports                                         x86_64                      1.0-8.el7                           base                        5.8 k
 python-backports-ssl_match_hostname                      noarch                      3.5.0.1-1.el7                       base                         13 k
 python-cffi                                              x86_64                      1.6.0-5.el7                         base                        218 k
 python-enum34                                            noarch                      1.0.4-1.el7                         base                         52 k
 python-httplib2                                          noarch                      0.9.2-1.el7                         extras                      115 k
 python-idna                                              noarch                      2.4-1.el7                           base                         94 k
 python-ipaddress                                         noarch                      1.0.16-2.el7                        base                         34 k
 python-jinja2                                            noarch                      2.7.2-4.el7                         base                        519 k
 python-markupsafe                                        x86_64                      0.11-10.el7                         base                         25 k
 python-paramiko                                          noarch                      2.1.1-9.el7                         base                        269 k
 python-passlib                                           noarch                      1.6.5-2.el7                         extras                      488 k
 python-ply                                               noarch                      3.4-11.el7                          base                        123 k
 python-pycparser                                         noarch                      2.14-1.el7                          base                        104 k
 python-setuptools                                        noarch                      0.9.8-7.el7                         base                        397 k
 python2-cryptography                                     x86_64                      1.7.2-2.el7                         base                        502 k
 python2-jmespath                                         noarch                      0.9.0-3.el7                         extras                       39 k
 sshpass                                                  x86_64                      1.06-2.el7                          extras                       21 k

Transaction Summary
============================================================================================================================================================
Install  1 Package (+18 Dependent packages)

Total download size: 12 M
Installed size: 59 M
Is this ok [y/d/N]: y
Downloading packages:
(1/19): python-backports-1.0-8.el7.x86_64.rpm                                                                                        | 5.8 kB  00:00:00
(2/19): python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch.rpm                                                                 |  13 kB  00:00:00
(3/19): python-cffi-1.6.0-5.el7.x86_64.rpm                                                                                           | 218 kB  00:00:00
(4/19): python-enum34-1.0.4-1.el7.noarch.rpm                                                                                         |  52 kB  00:00:00
(5/19): python-babel-0.9.6-8.el7.noarch.rpm                                                                                          | 1.4 MB  00:00:00
(6/19): python-idna-2.4-1.el7.noarch.rpm                                                                                             |  94 kB  00:00:00
(7/19): python-ipaddress-1.0.16-2.el7.noarch.rpm                                                                                     |  34 kB  00:00:00
(8/19): python-markupsafe-0.11-10.el7.x86_64.rpm                                                                                     |  25 kB  00:00:00
(9/19): python-jinja2-2.7.2-4.el7.noarch.rpm                                                                                         | 519 kB  00:00:00
(10/19): python-paramiko-2.1.1-9.el7.noarch.rpm                                                                                      | 269 kB  00:00:00
(11/19): python-httplib2-0.9.2-1.el7.noarch.rpm                                                                                      | 115 kB  00:00:00
(12/19): python-passlib-1.6.5-2.el7.noarch.rpm                                                                                       | 488 kB  00:00:00
(13/19): ansible-2.4.2.0-2.el7.noarch.rpm                                                                                            | 7.6 MB  00:00:01
(14/19): python-ply-3.4-11.el7.noarch.rpm                                                                                            | 123 kB  00:00:00
(15/19): python-pycparser-2.14-1.el7.noarch.rpm                                                                                      | 104 kB  00:00:00
(16/19): python-setuptools-0.9.8-7.el7.noarch.rpm                                                                                    | 397 kB  00:00:00
(17/19): python2-cryptography-1.7.2-2.el7.x86_64.rpm                                                                                 | 502 kB  00:00:00
(18/19): python2-jmespath-0.9.0-3.el7.noarch.rpm                                                                                     |  39 kB  00:00:00
(19/19): sshpass-1.06-2.el7.x86_64.rpm                                                                                               |  21 kB  00:00:00
------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                       7.3 MB/s |  12 MB  00:00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : python-ipaddress-1.0.16-2.el7.noarch                                                                                                    1/19
  Installing : python-httplib2-0.9.2-1.el7.noarch                                                                                                      2/19
  Installing : python-enum34-1.0.4-1.el7.noarch                                                                                                        3/19
  Installing : sshpass-1.06-2.el7.x86_64                                                                                                               4/19
  Installing : python-backports-1.0-8.el7.x86_64                                                                                                       5/19
  Installing : python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch                                                                                6/19
  Installing : python-setuptools-0.9.8-7.el7.noarch                                                                                                    7/19
  Installing : python-babel-0.9.6-8.el7.noarch                                                                                                         8/19
  Installing : python2-jmespath-0.9.0-3.el7.noarch                                                                                                     9/19
  Installing : python-passlib-1.6.5-2.el7.noarch                                                                                                      10/19
  Installing : python-ply-3.4-11.el7.noarch                                                                                                           11/19
  Installing : python-pycparser-2.14-1.el7.noarch                                                                                                     12/19
  Installing : python-cffi-1.6.0-5.el7.x86_64                                                                                                         13/19
  Installing : python-markupsafe-0.11-10.el7.x86_64                                                                                                   14/19
  Installing : python-jinja2-2.7.2-4.el7.noarch                                                                                                       15/19
  Installing : python-idna-2.4-1.el7.noarch                                                                                                           16/19
  Installing : python2-cryptography-1.7.2-2.el7.x86_64                                                                                                17/19
  Installing : python-paramiko-2.1.1-9.el7.noarch                                                                                                     18/19
  Installing : ansible-2.4.2.0-2.el7.noarch                                                                                                           19/19
  Verifying  : python-idna-2.4-1.el7.noarch                                                                                                            1/19
  Verifying  : python-markupsafe-0.11-10.el7.x86_64                                                                                                    2/19
  Verifying  : python-ply-3.4-11.el7.noarch                                                                                                            3/19
  Verifying  : python-passlib-1.6.5-2.el7.noarch                                                                                                       4/19
  Verifying  : python2-jmespath-0.9.0-3.el7.noarch                                                                                                     5/19
  Verifying  : python-paramiko-2.1.1-9.el7.noarch                                                                                                      6/19
  Verifying  : python-pycparser-2.14-1.el7.noarch                                                                                                      7/19
  Verifying  : python-babel-0.9.6-8.el7.noarch                                                                                                         8/19
  Verifying  : ansible-2.4.2.0-2.el7.noarch                                                                                                            9/19
  Verifying  : python-backports-1.0-8.el7.x86_64                                                                                                      10/19
  Verifying  : python-cffi-1.6.0-5.el7.x86_64                                                                                                         11/19
  Verifying  : python-ipaddress-1.0.16-2.el7.noarch                                                                                                   12/19
  Verifying  : sshpass-1.06-2.el7.x86_64                                                                                                              13/19
  Verifying  : python-jinja2-2.7.2-4.el7.noarch                                                                                                       14/19
  Verifying  : python-enum34-1.0.4-1.el7.noarch                                                                                                       15/19
  Verifying  : python-httplib2-0.9.2-1.el7.noarch                                                                                                     16/19
  Verifying  : python-setuptools-0.9.8-7.el7.noarch                                                                                                   17/19
  Verifying  : python2-cryptography-1.7.2-2.el7.x86_64                                                                                                18/19
  Verifying  : python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch                                                                               19/19

Installed:
  ansible.noarch 0:2.4.2.0-2.el7

Dependency Installed:
  python-babel.noarch 0:0.9.6-8.el7              python-backports.x86_64 0:1.0-8.el7         python-backports-ssl_match_hostname.noarch 0:3.5.0.1-1.el7
  python-cffi.x86_64 0:1.6.0-5.el7               python-enum34.noarch 0:1.0.4-1.el7          python-httplib2.noarch 0:0.9.2-1.el7
  python-idna.noarch 0:2.4-1.el7                 python-ipaddress.noarch 0:1.0.16-2.el7      python-jinja2.noarch 0:2.7.2-4.el7
  python-markupsafe.x86_64 0:0.11-10.el7         python-paramiko.noarch 0:2.1.1-9.el7        python-passlib.noarch 0:1.6.5-2.el7
  python-ply.noarch 0:3.4-11.el7                 python-pycparser.noarch 0:2.14-1.el7        python-setuptools.noarch 0:0.9.8-7.el7
  python2-cryptography.x86_64 0:1.7.2-2.el7      python2-jmespath.noarch 0:0.9.0-3.el7       sshpass.x86_64 0:1.06-2.el7

Complete!
[devops@work-vm ~]$
[devops@work-vm ~]$ ansible --version
ansible 2.4.2.0
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/home/devops/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.5 (default, Jul 13 2018, 13:06:57) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]
[devops@work-vm ~]$


  • No labels