現在位置: ホーム / OSSブログ / Ansible Towerのアップストリーム版OSSのAnsible AWXを使ってみる

Ansible Towerのアップストリーム版OSSのAnsible AWXを使ってみる

本記事ではAnsible Towerのアップストリーム版OSSのAnsible AWXを使うところまでを紹介します。

レッドハット社がIT自動化フレームワークとしてエンタープライズ向けに提供しているAnsible Towerのアップストリーム版としてAnsible AWXがオープンソースソフトウェアとして公開されました。

今回はこのAnsible AWXをインストールして使うところまでを紹介したいと思います。

今回のAnsible AWXの特徴として、Dockerをはじめとするコンテナイメージでの提供が基本にっております。なので、まずはDockerのインストールから始めていきます。

なお、今回の環境ではAWS上のマーケットプライスで公開されているCentOS7のイメージを利用しています。インスタンスのマシンサイズはMediumを選択しました。

Dockerコンテナ上で動かす関係上、無料枠Microサイズのマシンではパワーが足りず動作しない可能性がありますのでご注意ください。

EC2にログインし、rootユーザーにスイッチしてからの操作となります。

Dockerをインストール

まず、各パッケージを最新版にアップデートします。

# yum update -y
Loaded plugins: fastestmirror
base                                                                                                   | 3.6 kB  00:00:00     
extras                                                                                                 | 3.4 kB  00:00:00     
updates                                                                                                | 3.4 kB  00:00:00     
(1/4): base/7/x86_64/group_gz                                                                          | 156 kB  00:00:00     
(2/4): updates/7/x86_64/primary_db                                                                     | 2.7 MB  00:00:00     
(3/4): extras/7/x86_64/primary_db                                                                      | 112 kB  00:00:00     
(4/4): base/7/x86_64/primary_db                                                                        | 5.7 MB  00:00:02     

(〜中略〜)
                        
  yum.noarch 0:3.4.3-154.el7.centos                           yum-plugin-fastestmirror.noarch 0:1.1.31-42.el7                
  yum-utils.noarch 0:1.1.31-42.el7                           

Replaced:
  grub2.x86_64 1:2.02-0.44.el7.centos    grub2-tools.x86_64 1:2.02-0.44.el7.centos    pygobject3-base.x86_64 0:3.14.0-3.el7   
  rdma.noarch 0:7.3_4.7_rc2-5.el7       

Complete!

 Firewalldの設定とSELinuxの設定はここで環境に合わせて最適な設定を実施してください。

※検証ではSELinuxはDisabledに設定して再起動して次のステップを進めています。

 Dockerをインストールします。

# yum install -y docker
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: www.ftp.ne.jp
 * extras: www.ftp.ne.jp
 * updates: www.ftp.ne.jp
Resolving Dependencies
--> Running transaction check
---> Package docker.x86_64 2:1.12.6-55.gitc4618fb.el7.centos will be installed
--> Processing Dependency: docker-common = 2:1.12.6-55.gitc4618fb.el7.centos for package: 2:docker-1.12.6-55.gitc4618fb.el7.centos.x86_64
--> Processing Dependency: docker-client = 2:1.12.6-55.gitc4618fb.el7.centos for package: 2:docker-1.12.6-55.gitc4618fb.el7.centos.x86_64
--> Running transaction check
---> Package docker-client.x86_64 2:1.12.6-55.gitc4618fb.el7.centos will be installed
---> Package docker-common.x86_64 2:1.12.6-55.gitc4618fb.el7.centos will be installed
--> Processing Dependency: oci-umount = 2:1.12.6-55.gitc4618fb.el7.centos for package: 2:docker-common-1.12.6-55.gitc4618fb.el7.centos.x86_64
--> Processing Dependency: oci-systemd-hook >= 1:0.1.4-9 for package: 2:docker-common-1.12.6-55.gitc4618fb.el7.centos.x86_64
--> Processing Dependency: oci-register-machine >= 1:0-3.10 for package: 2:docker-common-1.12.6-55.gitc4618fb.el7.centos.x86_64
--> Processing Dependency: lvm2 >= 2.02.112 for package: 2:docker-common-1.12.6-55.gitc4618fb.el7.centos.x86_64
--> Processing Dependency: container-storage-setup >= 0.3.0-1 for package: 2:docker-common-1.12.6-55.gitc4618fb.el7.centos.x86_64
--> Processing Dependency: container-selinux >= 2:2.21-2 for package: 2:docker-common-1.12.6-55.gitc4618fb.el7.centos.x86_64
--> Processing Dependency: skopeo-containers for package: 2:docker-common-1.12.6-55.gitc4618fb.el7.centos.x86_64
--> Running transaction check
---> Package container-selinux.noarch 2:2.21-2.gitba103ac.el7 will be installed
---> Package container-storage-setup.noarch 0:0.6.0-1.gite67c964.el7 will be installed
---> Package lvm2.x86_64 7:2.02.171-8.el7 will be installed
--> Processing Dependency: lvm2-libs = 7:2.02.171-8.el7 for package: 7:lvm2-2.02.171-8.el7.x86_64
--> Processing Dependency: device-mapper-persistent-data >= 0.7.0-0.1.rc6 for package: 7:lvm2-2.02.171-8.el7.x86_64
--> Processing Dependency: liblvm2app.so.2.2(Base)(64bit) for package: 7:lvm2-2.02.171-8.el7.x86_64
--> Processing Dependency: libdevmapper-event.so.1.02(Base)(64bit) for package: 7:lvm2-2.02.171-8.el7.x86_64
--> Processing Dependency: liblvm2app.so.2.2()(64bit) for package: 7:lvm2-2.02.171-8.el7.x86_64
--> Processing Dependency: libdevmapper-event.so.1.02()(64bit) for package: 7:lvm2-2.02.171-8.el7.x86_64
---> Package oci-register-machine.x86_64 1:0-3.11.1.gitdd0daef.el7 will be installed
---> Package oci-systemd-hook.x86_64 1:0.1.12-1.git1e84754.el7 will be installed
--> Processing Dependency: libyajl.so.2()(64bit) for package: 1:oci-systemd-hook-0.1.12-1.git1e84754.el7.x86_64
---> Package oci-umount.x86_64 2:1.12.6-55.gitc4618fb.el7.centos will be installed
---> Package skopeo-containers.x86_64 1:0.1.23-1.git1bbd87f.el7 will be installed
--> Running transaction check
---> Package device-mapper-event-libs.x86_64 7:1.02.140-8.el7 will be installed
---> Package device-mapper-persistent-data.x86_64 0:0.7.0-0.1.rc6.el7 will be installed
--> Processing Dependency: libaio.so.1(LIBAIO_0.4)(64bit) for package: device-mapper-persistent-data-0.7.0-0.1.rc6.el7.x86_64
--> Processing Dependency: libaio.so.1(LIBAIO_0.1)(64bit) for package: device-mapper-persistent-data-0.7.0-0.1.rc6.el7.x86_64
--> Processing Dependency: libaio.so.1()(64bit) for package: device-mapper-persistent-data-0.7.0-0.1.rc6.el7.x86_64
---> Package lvm2-libs.x86_64 7:2.02.171-8.el7 will be installed
--> Processing Dependency: device-mapper-event = 7:1.02.140-8.el7 for package: 7:lvm2-libs-2.02.171-8.el7.x86_64
---> Package yajl.x86_64 0:2.0.4-4.el7 will be installed
--> Running transaction check
---> Package device-mapper-event.x86_64 7:1.02.140-8.el7 will be installed
---> Package libaio.x86_64 0:0.3.109-13.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================
 Package                                 Arch             Version                                      Repository        Size
==============================================================================================================================
Installing:
 docker                                  x86_64           2:1.12.6-55.gitc4618fb.el7.centos            extras            15 M
Installing for dependencies:
 container-selinux                       noarch           2:2.21-2.gitba103ac.el7                      extras            29 k
 container-storage-setup                 noarch           0.6.0-1.gite67c964.el7                       extras            32 k
 device-mapper-event                     x86_64           7:1.02.140-8.el7                             base             180 k
 device-mapper-event-libs                x86_64           7:1.02.140-8.el7                             base             179 k
 device-mapper-persistent-data           x86_64           0.7.0-0.1.rc6.el7                            base             400 k
 docker-client                           x86_64           2:1.12.6-55.gitc4618fb.el7.centos            extras           3.4 M
 docker-common                           x86_64           2:1.12.6-55.gitc4618fb.el7.centos            extras            79 k
 libaio                                  x86_64           0.3.109-13.el7                               base              24 k
 lvm2                                    x86_64           7:2.02.171-8.el7                             base             1.3 M
 lvm2-libs                               x86_64           7:2.02.171-8.el7                             base             1.0 M
 oci-register-machine                    x86_64           1:0-3.11.1.gitdd0daef.el7                    extras           1.0 M
 oci-systemd-hook                        x86_64           1:0.1.12-1.git1e84754.el7                    extras            31 k
 oci-umount                              x86_64           2:1.12.6-55.gitc4618fb.el7.centos            extras            99 k
 skopeo-containers                       x86_64           1:0.1.23-1.git1bbd87f.el7                    extras           8.4 k
 yajl                                    x86_64           2.0.4-4.el7                                  base              39 k

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

Total download size: 23 M
Installed size: 74 M
Downloading packages:
(1/16): container-selinux-2.21-2.gitba103ac.el7.noarch.rpm                                             |  29 kB  00:00:00     
(2/16): container-storage-setup-0.6.0-1.gite67c964.el7.noarch.rpm                                      |  32 kB  00:00:00     
(3/16): device-mapper-event-libs-1.02.140-8.el7.x86_64.rpm                                             | 179 kB  00:00:00     
(4/16): device-mapper-event-1.02.140-8.el7.x86_64.rpm                                                  | 180 kB  00:00:00     
(5/16): device-mapper-persistent-data-0.7.0-0.1.rc6.el7.x86_64.rpm                                     | 400 kB  00:00:00     
(6/16): docker-client-1.12.6-55.gitc4618fb.el7.centos.x86_64.rpm                                       | 3.4 MB  00:00:00     
(7/16): docker-common-1.12.6-55.gitc4618fb.el7.centos.x86_64.rpm                                       |  79 kB  00:00:00     
(8/16): libaio-0.3.109-13.el7.x86_64.rpm                                                               |  24 kB  00:00:00     
(9/16): lvm2-libs-2.02.171-8.el7.x86_64.rpm                                                            | 1.0 MB  00:00:00     
(10/16): oci-register-machine-0-3.11.1.gitdd0daef.el7.x86_64.rpm                                       | 1.0 MB  00:00:00     
(11/16): lvm2-2.02.171-8.el7.x86_64.rpm                                                                | 1.3 MB  00:00:00     
(12/16): oci-systemd-hook-0.1.12-1.git1e84754.el7.x86_64.rpm                                           |  31 kB  00:00:00     
(13/16): oci-umount-1.12.6-55.gitc4618fb.el7.centos.x86_64.rpm                                         |  99 kB  00:00:00     
(14/16): skopeo-containers-0.1.23-1.git1bbd87f.el7.x86_64.rpm                                          | 8.4 kB  00:00:00     
(15/16): yajl-2.0.4-4.el7.x86_64.rpm                                                                   |  39 kB  00:00:00     
(16/16): docker-1.12.6-55.gitc4618fb.el7.centos.x86_64.rpm                                             |  15 MB  00:00:01     
------------------------------------------------------------------------------------------------------------------------------
Total                                                                                          15 MB/s |  23 MB  00:00:01     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : 7:device-mapper-event-libs-1.02.140-8.el7.x86_64                                                          1/16 
  Installing : yajl-2.0.4-4.el7.x86_64                                                                                   2/16 
  Installing : 2:oci-umount-1.12.6-55.gitc4618fb.el7.centos.x86_64                                                       3/16 
  Installing : 1:oci-systemd-hook-0.1.12-1.git1e84754.el7.x86_64                                                         4/16 
  Installing : 7:device-mapper-event-1.02.140-8.el7.x86_64                                                               5/16 
  Installing : 7:lvm2-libs-2.02.171-8.el7.x86_64                                                                         6/16 
  Installing : 1:skopeo-containers-0.1.23-1.git1bbd87f.el7.x86_64                                                        7/16 
  Installing : 1:oci-register-machine-0-3.11.1.gitdd0daef.el7.x86_64                                                     8/16 
  Installing : libaio-0.3.109-13.el7.x86_64                                                                              9/16 
  Installing : device-mapper-persistent-data-0.7.0-0.1.rc6.el7.x86_64                                                   10/16 
  Installing : 7:lvm2-2.02.171-8.el7.x86_64                                                                             11/16 
Created symlink from /etc/systemd/system/sysinit.target.wants/lvm2-lvmpolld.socket to /usr/lib/systemd/system/lvm2-lvmpolld.socket.
  Installing : container-storage-setup-0.6.0-1.gite67c964.el7.noarch                                                    12/16 
  Installing : 2:container-selinux-2.21-2.gitba103ac.el7.noarch                                                         13/16 
setsebool:  SELinux is disabled.
  Installing : 2:docker-common-1.12.6-55.gitc4618fb.el7.centos.x86_64                                                   14/16 
  Installing : 2:docker-client-1.12.6-55.gitc4618fb.el7.centos.x86_64                                                   15/16 
  Installing : 2:docker-1.12.6-55.gitc4618fb.el7.centos.x86_64                                                          16/16 
  Verifying  : 7:device-mapper-event-libs-1.02.140-8.el7.x86_64                                                          1/16 
  Verifying  : 7:device-mapper-event-1.02.140-8.el7.x86_64                                                               2/16 
  Verifying  : 2:docker-1.12.6-55.gitc4618fb.el7.centos.x86_64                                                           3/16 
  Verifying  : 2:container-selinux-2.21-2.gitba103ac.el7.noarch                                                          4/16 
  Verifying  : 7:lvm2-libs-2.02.171-8.el7.x86_64                                                                         5/16 
  Verifying  : libaio-0.3.109-13.el7.x86_64                                                                              6/16 
  Verifying  : 1:oci-register-machine-0-3.11.1.gitdd0daef.el7.x86_64                                                     7/16 
  Verifying  : container-storage-setup-0.6.0-1.gite67c964.el7.noarch                                                     8/16 
  Verifying  : 2:docker-common-1.12.6-55.gitc4618fb.el7.centos.x86_64                                                    9/16 
  Verifying  : yajl-2.0.4-4.el7.x86_64                                                                                  10/16 
  Verifying  : 2:docker-client-1.12.6-55.gitc4618fb.el7.centos.x86_64                                                   11/16 
  Verifying  : 7:lvm2-2.02.171-8.el7.x86_64                                                                             12/16 
  Verifying  : 1:skopeo-containers-0.1.23-1.git1bbd87f.el7.x86_64                                                       13/16 
  Verifying  : 2:oci-umount-1.12.6-55.gitc4618fb.el7.centos.x86_64                                                      14/16 
  Verifying  : 1:oci-systemd-hook-0.1.12-1.git1e84754.el7.x86_64                                                        15/16 
  Verifying  : device-mapper-persistent-data-0.7.0-0.1.rc6.el7.x86_64                                                   16/16 

Installed:
  docker.x86_64 2:1.12.6-55.gitc4618fb.el7.centos                                                                             

Dependency Installed:
  container-selinux.noarch 2:2.21-2.gitba103ac.el7               container-storage-setup.noarch 0:0.6.0-1.gite67c964.el7      
  device-mapper-event.x86_64 7:1.02.140-8.el7                    device-mapper-event-libs.x86_64 7:1.02.140-8.el7             
  device-mapper-persistent-data.x86_64 0:0.7.0-0.1.rc6.el7       docker-client.x86_64 2:1.12.6-55.gitc4618fb.el7.centos       
  docker-common.x86_64 2:1.12.6-55.gitc4618fb.el7.centos         libaio.x86_64 0:0.3.109-13.el7                               
  lvm2.x86_64 7:2.02.171-8.el7                                   lvm2-libs.x86_64 7:2.02.171-8.el7                            
  oci-register-machine.x86_64 1:0-3.11.1.gitdd0daef.el7          oci-systemd-hook.x86_64 1:0.1.12-1.git1e84754.el7            
  oci-umount.x86_64 2:1.12.6-55.gitc4618fb.el7.centos            skopeo-containers.x86_64 1:0.1.23-1.git1bbd87f.el7           
  yajl.x86_64 0:2.0.4-4.el7                                     

Complete!

Dockerのビルドバージョンを確認します。

# docker -v
Docker version 1.12.6, build c4618fb/1.12.6

次にDockerを起動し、状態を確認します。

# service docker start
Redirecting to /bin/systemctl start docker.service
# docker info
Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 0
Server Version: 1.12.6
Storage Driver: devicemapper
 Pool Name: docker-202:1-8469329-pool
 Pool Blocksize: 65.54 kB
 Base Device Size: 10.74 GB
 Backing Filesystem: xfs
 Data file: /dev/loop0
 Metadata file: /dev/loop1
 Data Space Used: 11.8 MB
 Data Space Total: 107.4 GB
 Data Space Available: 7.125 GB
 Metadata Space Used: 581.6 kB
 Metadata Space Total: 2.147 GB
 Metadata Space Available: 2.147 GB
 Thin Pool Minimum Free Space: 10.74 GB
 Udev Sync Supported: true
 Deferred Removal Enabled: true
 Deferred Deletion Enabled: true
 Deferred Deleted Device Count: 0
 Data loop file: /var/lib/docker/devicemapper/devicemapper/data
 WARNING: Usage of loopback devices is strongly discouraged for production use. Use `--storage-opt dm.thinpooldev` to specify a custom block storage device.
 Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
 Library Version: 1.02.140-RHEL7 (2017-05-03)
Logging Driver: journald
Cgroup Driver: systemd
Plugins:
 Volume: local
 Network: host bridge overlay null
Swarm: inactive
Runtimes: docker-runc runc
Default Runtime: docker-runc
Security Options: seccomp
Kernel Version: 3.10.0-693.2.2.el7.x86_64
Operating System: CentOS Linux 7 (Core)
OSType: linux
Architecture: x86_64
Number of Docker Hooks: 3
CPUs: 1
Total Memory: 991 MiB
Name: ip-172-31-9-113.ap-northeast-1.compute.internal
ID: UCUL:4F6P:BIAH:MDL7:PBER:I6DZ:G7ET:JTY5:MPGK:2RQF:6PZW:SEKO
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Insecure Registries:
 127.0.0.0/8
Registries: docker.io (secure)

Ansible、Git など関連するパッケージをインストール

Dockerのインストールが完了し、サービスが立ち上がったら次にAnsibleをインストールします。

# yum install ansible
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.iij.ad.jp
 * extras: ftp.iij.ad.jp
 * updates: ftp.iij.ad.jp
Resolving Dependencies
--> Running transaction check
---> Package ansible.noarch 0:2.3.2.0-2.el7 will be installed
--> Processing Dependency: sshpass for package: ansible-2.3.2.0-2.el7.noarch
--> Processing Dependency: python-passlib for package: ansible-2.3.2.0-2.el7.noarch
--> Processing Dependency: python-paramiko for package: ansible-2.3.2.0-2.el7.noarch
--> Processing Dependency: python-httplib2 for package: ansible-2.3.2.0-2.el7.noarch
--> Processing Dependency: python-crypto for package: ansible-2.3.2.0-2.el7.noarch
--> Running transaction check
---> Package python-httplib2.noarch 0:0.9.2-1.el7 will be installed
---> Package python-paramiko.noarch 0:2.1.1-2.el7 will be installed
--> Processing Dependency: python-cryptography for package: python-paramiko-2.1.1-2.el7.noarch
---> Package python-passlib.noarch 0:1.6.5-2.el7 will be installed
---> Package python2-crypto.x86_64 0:2.6.1-15.el7 will be installed
--> Processing Dependency: libtomcrypt.so.0()(64bit) for package: python2-crypto-2.6.1-15.el7.x86_64
---> Package sshpass.x86_64 0:1.06-2.el7 will be installed
--> Running transaction check
---> Package libtomcrypt.x86_64 0:1.17-26.el7 will be installed
--> Processing Dependency: libtommath >= 0.42.0 for package: libtomcrypt-1.17-26.el7.x86_64
--> Processing Dependency: libtommath.so.0()(64bit) for package: libtomcrypt-1.17-26.el7.x86_64
---> Package python2-cryptography.x86_64 0:1.7.2-1.el7 will be installed
--> Processing Dependency: python-pyasn1 >= 0.1.8 for package: python2-cryptography-1.7.2-1.el7.x86_64
--> Processing Dependency: python-idna >= 2.0 for package: python2-cryptography-1.7.2-1.el7.x86_64
--> Processing Dependency: python-cffi >= 1.4.1 for package: python2-cryptography-1.7.2-1.el7.x86_64
--> Processing Dependency: python-ipaddress for package: python2-cryptography-1.7.2-1.el7.x86_64
--> Processing Dependency: python-enum34 for package: python2-cryptography-1.7.2-1.el7.x86_64
--> Running transaction check
---> Package libtommath.x86_64 0:0.42.0-6.el7 will be installed
---> 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 python2-pyasn1.noarch 0:0.1.9-7.el7 will be installed
--> Running transaction check
---> 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.3.2.0-2.el7                      extras                   5.7 M
Installing for dependencies:
 libtomcrypt                            x86_64                   1.17-26.el7                        extras                   224 k
 libtommath                             x86_64                   0.42.0-6.el7                       extras                    36 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-paramiko                        noarch                   2.1.1-2.el7                        extras                   267 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
 python2-crypto                         x86_64                   2.6.1-15.el7                       extras                   477 k
 python2-cryptography                   x86_64                   1.7.2-1.el7                        base                     502 k
 python2-pyasn1                         noarch                   0.1.9-7.el7                        base                     100 k
 sshpass                                x86_64                   1.06-2.el7                         extras                    21 k

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

Total download size: 8.5 M
Installed size: 41 M
Is this ok [y/d/N]: y
Downloading packages:
(1/16): libtommath-0.42.0-6.el7.x86_64.rpm                                                                  |  36 kB  00:00:00     
(2/16): python-cffi-1.6.0-5.el7.x86_64.rpm                                                                  | 218 kB  00:00:00     
(3/16): python-enum34-1.0.4-1.el7.noarch.rpm                                                                |  52 kB  00:00:00     
(4/16): python-httplib2-0.9.2-1.el7.noarch.rpm                                                              | 115 kB  00:00:00     
(5/16): python-ipaddress-1.0.16-2.el7.noarch.rpm                                                            |  34 kB  00:00:00     
(6/16): python-paramiko-2.1.1-2.el7.noarch.rpm                                                              | 267 kB  00:00:00     
(7/16): python-passlib-1.6.5-2.el7.noarch.rpm                                                               | 488 kB  00:00:00     
(8/16): python-ply-3.4-11.el7.noarch.rpm                                                                    | 123 kB  00:00:00     
(9/16): python-pycparser-2.14-1.el7.noarch.rpm                                                              | 104 kB  00:00:00     
(10/16): python-idna-2.4-1.el7.noarch.rpm                                                                   |  94 kB  00:00:00     
(11/16): python2-cryptography-1.7.2-1.el7.x86_64.rpm                                                        | 502 kB  00:00:00     
(12/16): sshpass-1.06-2.el7.x86_64.rpm                                                                      |  21 kB  00:00:00     
(13/16): libtomcrypt-1.17-26.el7.x86_64.rpm                                                                 | 224 kB  00:00:00     
(14/16): python2-crypto-2.6.1-15.el7.x86_64.rpm                                                             | 477 kB  00:00:00     
(15/16): python2-pyasn1-0.1.9-7.el7.noarch.rpm                                                              | 100 kB  00:00:00     
(16/16): ansible-2.3.2.0-2.el7.noarch.rpm                                                                   | 5.7 MB  00:00:01     
-----------------------------------------------------------------------------------------------------------------------------------
Total                                                                                              4.3 MB/s | 8.5 MB  00:00:01     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : python2-pyasn1-0.1.9-7.el7.noarch                                                                              1/16 
  Installing : python-httplib2-0.9.2-1.el7.noarch                                                                             2/16 
  Installing : sshpass-1.06-2.el7.x86_64                                                                                      3/16 
  Installing : python-ipaddress-1.0.16-2.el7.noarch                                                                           4/16 
  Installing : libtommath-0.42.0-6.el7.x86_64                                                                                 5/16 
  Installing : libtomcrypt-1.17-26.el7.x86_64                                                                                 6/16 
  Installing : python2-crypto-2.6.1-15.el7.x86_64                                                                             7/16 
  Installing : python-enum34-1.0.4-1.el7.noarch                                                                               8/16 
  Installing : python-passlib-1.6.5-2.el7.noarch                                                                              9/16 
  Installing : python-ply-3.4-11.el7.noarch                                                                                  10/16 
  Installing : python-pycparser-2.14-1.el7.noarch                                                                            11/16 
  Installing : python-cffi-1.6.0-5.el7.x86_64                                                                                12/16 
  Installing : python-idna-2.4-1.el7.noarch                                                                                  13/16 
  Installing : python2-cryptography-1.7.2-1.el7.x86_64                                                                       14/16 
  Installing : python-paramiko-2.1.1-2.el7.noarch                                                                            15/16 
  Installing : ansible-2.3.2.0-2.el7.noarch                                                                                  16/16 
  Verifying  : python-idna-2.4-1.el7.noarch                                                                                   1/16 
  Verifying  : python-pycparser-2.14-1.el7.noarch                                                                             2/16 
  Verifying  : python-ply-3.4-11.el7.noarch                                                                                   3/16 
  Verifying  : python-passlib-1.6.5-2.el7.noarch                                                                              4/16 
  Verifying  : python-enum34-1.0.4-1.el7.noarch                                                                               5/16 
  Verifying  : libtommath-0.42.0-6.el7.x86_64                                                                                 6/16 
  Verifying  : python2-crypto-2.6.1-15.el7.x86_64                                                                             7/16 
  Verifying  : python-cffi-1.6.0-5.el7.x86_64                                                                                 8/16 
  Verifying  : python-ipaddress-1.0.16-2.el7.noarch                                                                           9/16 
  Verifying  : python-paramiko-2.1.1-2.el7.noarch                                                                            10/16 
  Verifying  : sshpass-1.06-2.el7.x86_64                                                                                     11/16 
  Verifying  : python-httplib2-0.9.2-1.el7.noarch                                                                            12/16 
  Verifying  : python2-pyasn1-0.1.9-7.el7.noarch                                                                             13/16 
  Verifying  : python2-cryptography-1.7.2-1.el7.x86_64                                                                       14/16 
  Verifying  : ansible-2.3.2.0-2.el7.noarch                                                                                  15/16 
  Verifying  : libtomcrypt-1.17-26.el7.x86_64                                                                                16/16 

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

Dependency Installed:
  libtomcrypt.x86_64 0:1.17-26.el7              libtommath.x86_64 0:0.42.0-6.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-paramiko.noarch 0:2.1.1-2.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     python2-crypto.x86_64 0:2.6.1-15.el7    
  python2-cryptography.x86_64 0:1.7.2-1.el7     python2-pyasn1.noarch 0:0.1.9-7.el7      sshpass.x86_64 0:1.06-2.el7             

Complete!

 次に python-docker-py をインストールします。このパッケージがないと AWX のインストール時に実行結果がFailed となってしまいます。

# yum install python-docker-py
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.iij.ad.jp
 * extras: ftp.iij.ad.jp
 * updates: ftp.iij.ad.jp
Resolving Dependencies
--> Running transaction check
---> Package python-docker-py.noarch 0:1.10.6-1.el7 will be installed
--> Processing Dependency: python-websocket-client >= 0.32.0 for package: python-docker-py-1.10.6-1.el7.noarch
--> Processing Dependency: python-docker-pycreds for package: python-docker-py-1.10.6-1.el7.noarch
--> Running transaction check
---> Package python-docker-pycreds.noarch 0:1.10.6-1.el7 will be installed
---> Package python-websocket-client.noarch 0:0.32.0-116.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================================
 Package                                  Arch                    Version                            Repository               Size
===================================================================================================================================
Installing:
 python-docker-py                         noarch                  1.10.6-1.el7                       extras                  101 k
Installing for dependencies:
 python-docker-pycreds                    noarch                  1.10.6-1.el7                       extras                   18 k
 python-websocket-client                  noarch                  0.32.0-116.el7                     extras                   56 k

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

Total download size: 174 k
Installed size: 550 k
Is this ok [y/d/N]: y
Downloading packages:
(1/3): python-docker-pycreds-1.10.6-1.el7.noarch.rpm                                                        |  18 kB  00:00:00     
(2/3): python-websocket-client-0.32.0-116.el7.noarch.rpm                                                    |  56 kB  00:00:00     
(3/3): python-docker-py-1.10.6-1.el7.noarch.rpm                                                             | 101 kB  00:00:00     
-----------------------------------------------------------------------------------------------------------------------------------
Total                                                                                              1.1 MB/s | 174 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : python-websocket-client-0.32.0-116.el7.noarch                                                                   1/3 
  Installing : python-docker-pycreds-1.10.6-1.el7.noarch                                                                       2/3 
  Installing : python-docker-py-1.10.6-1.el7.noarch                                                                            3/3 
  Verifying  : python-docker-pycreds-1.10.6-1.el7.noarch                                                                       1/3 
  Verifying  : python-websocket-client-0.32.0-116.el7.noarch                                                                   2/3 
  Verifying  : python-docker-py-1.10.6-1.el7.noarch                                                                            3/3 

Installed:
  python-docker-py.noarch 0:1.10.6-1.el7                                                                                           

Dependency Installed:
  python-docker-pycreds.noarch 0:1.10.6-1.el7                    python-websocket-client.noarch 0:0.32.0-116.el7                   

Complete!

 Gitをインストールします。

# yum install git
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.iij.ad.jp
 * extras: ftp.iij.ad.jp
 * updates: ftp.iij.ad.jp
Resolving Dependencies
--> Running transaction check
---> Package git.x86_64 0:1.8.3.1-12.el7_4 will be installed
--> Processing Dependency: perl-Git = 1.8.3.1-12.el7_4 for package: git-1.8.3.1-12.el7_4.x86_64
--> Processing Dependency: perl >= 5.008 for package: git-1.8.3.1-12.el7_4.x86_64
--> Processing Dependency: perl(warnings) for package: git-1.8.3.1-12.el7_4.x86_64
--> Processing Dependency: perl(vars) for package: git-1.8.3.1-12.el7_4.x86_64
--> Processing Dependency: perl(strict) for package: git-1.8.3.1-12.el7_4.x86_64
--> Processing Dependency: perl(lib) for package: git-1.8.3.1-12.el7_4.x86_64
--> Processing Dependency: perl(Term::ReadKey) for package: git-1.8.3.1-12.el7_4.x86_64
--> Processing Dependency: perl(Git) for package: git-1.8.3.1-12.el7_4.x86_64
--> Processing Dependency: perl(Getopt::Long) for package: git-1.8.3.1-12.el7_4.x86_64
--> Processing Dependency: perl(File::stat) for package: git-1.8.3.1-12.el7_4.x86_64
--> Processing Dependency: perl(File::Temp) for package: git-1.8.3.1-12.el7_4.x86_64
--> Processing Dependency: perl(File::Spec) for package: git-1.8.3.1-12.el7_4.x86_64
--> Processing Dependency: perl(File::Path) for package: git-1.8.3.1-12.el7_4.x86_64
--> Processing Dependency: perl(File::Find) for package: git-1.8.3.1-12.el7_4.x86_64
--> Processing Dependency: perl(File::Copy) for package: git-1.8.3.1-12.el7_4.x86_64
--> Processing Dependency: perl(File::Basename) for package: git-1.8.3.1-12.el7_4.x86_64
--> Processing Dependency: perl(Exporter) for package: git-1.8.3.1-12.el7_4.x86_64
--> Processing Dependency: perl(Error) for package: git-1.8.3.1-12.el7_4.x86_64
--> Processing Dependency: /usr/bin/perl for package: git-1.8.3.1-12.el7_4.x86_64
--> Processing Dependency: libgnome-keyring.so.0()(64bit) for package: git-1.8.3.1-12.el7_4.x86_64
--> Running transaction check
---> Package libgnome-keyring.x86_64 0:3.12.0-1.el7 will be installed
---> Package perl.x86_64 4:5.16.3-292.el7 will be installed
--> Processing Dependency: perl-libs = 4:5.16.3-292.el7 for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(Socket) >= 1.3 for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(Scalar::Util) >= 1.10 for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl-macros for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl-libs for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(threads::shared) for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(threads) for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(constant) for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(Time::Local) for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(Time::HiRes) for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(Storable) for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(Socket) for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(Scalar::Util) for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(Pod::Simple::XHTML) for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(Pod::Simple::Search) for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(Filter::Util::Call) for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(Carp) for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: libperl.so()(64bit) for package: 4:perl-5.16.3-292.el7.x86_64
---> Package perl-Error.noarch 1:0.17020-2.el7 will be installed
---> Package perl-Exporter.noarch 0:5.68-3.el7 will be installed
---> Package perl-File-Path.noarch 0:2.09-2.el7 will be installed
---> Package perl-File-Temp.noarch 0:0.23.01-3.el7 will be installed
---> Package perl-Getopt-Long.noarch 0:2.40-2.el7 will be installed
--> Processing Dependency: perl(Pod::Usage) >= 1.14 for package: perl-Getopt-Long-2.40-2.el7.noarch
--> Processing Dependency: perl(Text::ParseWords) for package: perl-Getopt-Long-2.40-2.el7.noarch
---> Package perl-Git.noarch 0:1.8.3.1-12.el7_4 will be installed
---> Package perl-PathTools.x86_64 0:3.40-5.el7 will be installed
---> Package perl-TermReadKey.x86_64 0:2.30-20.el7 will be installed
--> Running transaction check
---> Package perl-Carp.noarch 0:1.26-244.el7 will be installed
---> Package perl-Filter.x86_64 0:1.49-3.el7 will be installed
---> Package perl-Pod-Simple.noarch 1:3.28-4.el7 will be installed
--> Processing Dependency: perl(Pod::Escapes) >= 1.04 for package: 1:perl-Pod-Simple-3.28-4.el7.noarch
--> Processing Dependency: perl(Encode) for package: 1:perl-Pod-Simple-3.28-4.el7.noarch
---> Package perl-Pod-Usage.noarch 0:1.63-3.el7 will be installed
--> Processing Dependency: perl(Pod::Text) >= 3.15 for package: perl-Pod-Usage-1.63-3.el7.noarch
--> Processing Dependency: perl-Pod-Perldoc for package: perl-Pod-Usage-1.63-3.el7.noarch
---> Package perl-Scalar-List-Utils.x86_64 0:1.27-248.el7 will be installed
---> Package perl-Socket.x86_64 0:2.010-4.el7 will be installed
---> Package perl-Storable.x86_64 0:2.45-3.el7 will be installed
---> Package perl-Text-ParseWords.noarch 0:3.29-4.el7 will be installed
---> Package perl-Time-HiRes.x86_64 4:1.9725-3.el7 will be installed
---> Package perl-Time-Local.noarch 0:1.2300-2.el7 will be installed
---> Package perl-constant.noarch 0:1.27-2.el7 will be installed
---> Package perl-libs.x86_64 4:5.16.3-292.el7 will be installed
---> Package perl-macros.x86_64 4:5.16.3-292.el7 will be installed
---> Package perl-threads.x86_64 0:1.87-4.el7 will be installed
---> Package perl-threads-shared.x86_64 0:1.43-6.el7 will be installed
--> Running transaction check
---> Package perl-Encode.x86_64 0:2.51-7.el7 will be installed
---> Package perl-Pod-Escapes.noarch 1:1.04-292.el7 will be installed
---> Package perl-Pod-Perldoc.noarch 0:3.20-4.el7 will be installed
--> Processing Dependency: perl(parent) for package: perl-Pod-Perldoc-3.20-4.el7.noarch
--> Processing Dependency: perl(HTTP::Tiny) for package: perl-Pod-Perldoc-3.20-4.el7.noarch
---> Package perl-podlators.noarch 0:2.5.1-3.el7 will be installed
--> Running transaction check
---> Package perl-HTTP-Tiny.noarch 0:0.033-3.el7 will be installed
---> Package perl-parent.noarch 1:0.225-244.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================================
 Package                                 Arch                    Version                            Repository                Size
===================================================================================================================================
Installing:
 git                                     x86_64                  1.8.3.1-12.el7_4                   updates                  4.4 M
Installing for dependencies:
 libgnome-keyring                        x86_64                  3.12.0-1.el7                       base                     109 k
 perl                                    x86_64                  4:5.16.3-292.el7                   base                     8.0 M
 perl-Carp                               noarch                  1.26-244.el7                       base                      19 k
 perl-Encode                             x86_64                  2.51-7.el7                         base                     1.5 M
 perl-Error                              noarch                  1:0.17020-2.el7                    base                      32 k
 perl-Exporter                           noarch                  5.68-3.el7                         base                      28 k
 perl-File-Path                          noarch                  2.09-2.el7                         base                      26 k
 perl-File-Temp                          noarch                  0.23.01-3.el7                      base                      56 k
 perl-Filter                             x86_64                  1.49-3.el7                         base                      76 k
 perl-Getopt-Long                        noarch                  2.40-2.el7                         base                      56 k
 perl-Git                                noarch                  1.8.3.1-12.el7_4                   updates                   53 k
 perl-HTTP-Tiny                          noarch                  0.033-3.el7                        base                      38 k
 perl-PathTools                          x86_64                  3.40-5.el7                         base                      82 k
 perl-Pod-Escapes                        noarch                  1:1.04-292.el7                     base                      51 k
 perl-Pod-Perldoc                        noarch                  3.20-4.el7                         base                      87 k
 perl-Pod-Simple                         noarch                  1:3.28-4.el7                       base                     216 k
 perl-Pod-Usage                          noarch                  1.63-3.el7                         base                      27 k
 perl-Scalar-List-Utils                  x86_64                  1.27-248.el7                       base                      36 k
 perl-Socket                             x86_64                  2.010-4.el7                        base                      49 k
 perl-Storable                           x86_64                  2.45-3.el7                         base                      77 k
 perl-TermReadKey                        x86_64                  2.30-20.el7                        base                      31 k
 perl-Text-ParseWords                    noarch                  3.29-4.el7                         base                      14 k
 perl-Time-HiRes                         x86_64                  4:1.9725-3.el7                     base                      45 k
 perl-Time-Local                         noarch                  1.2300-2.el7                       base                      24 k
 perl-constant                           noarch                  1.27-2.el7                         base                      19 k
 perl-libs                               x86_64                  4:5.16.3-292.el7                   base                     688 k
 perl-macros                             x86_64                  4:5.16.3-292.el7                   base                      43 k
 perl-parent                             noarch                  1:0.225-244.el7                    base                      12 k
 perl-podlators                          noarch                  2.5.1-3.el7                        base                     112 k
 perl-threads                            x86_64                  1.87-4.el7                         base                      49 k
 perl-threads-shared                     x86_64                  1.43-6.el7                         base                      39 k

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

Total download size: 16 M
Installed size: 59 M
Is this ok [y/d/N]: y
Downloading packages:
(1/32): perl-Carp-1.26-244.el7.noarch.rpm                                                                   |  19 kB  00:00:00     
(2/32): libgnome-keyring-3.12.0-1.el7.x86_64.rpm                                                            | 109 kB  00:00:00     
(3/32): perl-Exporter-5.68-3.el7.noarch.rpm                                                                 |  28 kB  00:00:00     
(4/32): perl-Error-0.17020-2.el7.noarch.rpm                                                                 |  32 kB  00:00:00     
(5/32): perl-File-Path-2.09-2.el7.noarch.rpm                                                                |  26 kB  00:00:00     
(6/32): perl-File-Temp-0.23.01-3.el7.noarch.rpm                                                             |  56 kB  00:00:00     
(7/32): perl-Getopt-Long-2.40-2.el7.noarch.rpm                                                              |  56 kB  00:00:00     
(8/32): perl-Filter-1.49-3.el7.x86_64.rpm                                                                   |  76 kB  00:00:00     
(9/32): perl-HTTP-Tiny-0.033-3.el7.noarch.rpm                                                               |  38 kB  00:00:00     
(10/32): perl-PathTools-3.40-5.el7.x86_64.rpm                                                               |  82 kB  00:00:00     
(11/32): perl-Git-1.8.3.1-12.el7_4.noarch.rpm                                                               |  53 kB  00:00:00     
(12/32): perl-Pod-Escapes-1.04-292.el7.noarch.rpm                                                           |  51 kB  00:00:00     
(13/32): perl-Encode-2.51-7.el7.x86_64.rpm                                                                  | 1.5 MB  00:00:00     
(14/32): perl-Pod-Perldoc-3.20-4.el7.noarch.rpm                                                             |  87 kB  00:00:00     
(15/32): perl-Pod-Simple-3.28-4.el7.noarch.rpm                                                              | 216 kB  00:00:00     
(16/32): perl-Pod-Usage-1.63-3.el7.noarch.rpm                                                               |  27 kB  00:00:00     
(17/32): perl-Scalar-List-Utils-1.27-248.el7.x86_64.rpm                                                     |  36 kB  00:00:00     
(18/32): perl-Storable-2.45-3.el7.x86_64.rpm                                                                |  77 kB  00:00:00     
(19/32): perl-Text-ParseWords-3.29-4.el7.noarch.rpm                                                         |  14 kB  00:00:00     
(20/32): perl-Time-HiRes-1.9725-3.el7.x86_64.rpm                                                            |  45 kB  00:00:00     
(21/32): perl-TermReadKey-2.30-20.el7.x86_64.rpm                                                            |  31 kB  00:00:00     
(22/32): perl-Socket-2.010-4.el7.x86_64.rpm                                                                 |  49 kB  00:00:00     
(23/32): perl-constant-1.27-2.el7.noarch.rpm                                                                |  19 kB  00:00:00     
(24/32): perl-Time-Local-1.2300-2.el7.noarch.rpm                                                            |  24 kB  00:00:00     
(25/32): perl-parent-0.225-244.el7.noarch.rpm                                                               |  12 kB  00:00:00     
(26/32): perl-macros-5.16.3-292.el7.x86_64.rpm                                                              |  43 kB  00:00:00     
(27/32): perl-threads-1.87-4.el7.x86_64.rpm                                                                 |  49 kB  00:00:00     
(28/32): perl-podlators-2.5.1-3.el7.noarch.rpm                                                              | 112 kB  00:00:00     
(29/32): perl-threads-shared-1.43-6.el7.x86_64.rpm                                                          |  39 kB  00:00:00     
(30/32): perl-libs-5.16.3-292.el7.x86_64.rpm                                                                | 688 kB  00:00:00     
(31/32): git-1.8.3.1-12.el7_4.x86_64.rpm                                                                    | 4.4 MB  00:00:02     
(32/32): perl-5.16.3-292.el7.x86_64.rpm                                                                     | 8.0 MB  00:00:03     
-----------------------------------------------------------------------------------------------------------------------------------
Total                                                                                              5.2 MB/s |  16 MB  00:00:03     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : 1:perl-parent-0.225-244.el7.noarch                                                                             1/32 
  Installing : perl-HTTP-Tiny-0.033-3.el7.noarch                                                                              2/32 
  Installing : perl-podlators-2.5.1-3.el7.noarch                                                                              3/32 
  Installing : perl-Pod-Perldoc-3.20-4.el7.noarch                                                                             4/32 
  Installing : 1:perl-Pod-Escapes-1.04-292.el7.noarch                                                                         5/32 
  Installing : perl-Text-ParseWords-3.29-4.el7.noarch                                                                         6/32 
  Installing : perl-Encode-2.51-7.el7.x86_64                                                                                  7/32 
  Installing : perl-Pod-Usage-1.63-3.el7.noarch                                                                               8/32 
  Installing : 4:perl-macros-5.16.3-292.el7.x86_64                                                                            9/32 
  Installing : 4:perl-libs-5.16.3-292.el7.x86_64                                                                             10/32 
  Installing : perl-Storable-2.45-3.el7.x86_64                                                                               11/32 
  Installing : perl-Exporter-5.68-3.el7.noarch                                                                               12/32 
  Installing : perl-constant-1.27-2.el7.noarch                                                                               13/32 
  Installing : perl-Time-Local-1.2300-2.el7.noarch                                                                           14/32 
  Installing : perl-Socket-2.010-4.el7.x86_64                                                                                15/32 
  Installing : perl-Carp-1.26-244.el7.noarch                                                                                 16/32 
  Installing : 4:perl-Time-HiRes-1.9725-3.el7.x86_64                                                                         17/32 
  Installing : perl-PathTools-3.40-5.el7.x86_64                                                                              18/32 
  Installing : perl-Scalar-List-Utils-1.27-248.el7.x86_64                                                                    19/32 
  Installing : perl-File-Temp-0.23.01-3.el7.noarch                                                                           20/32 
  Installing : perl-File-Path-2.09-2.el7.noarch                                                                              21/32 
  Installing : perl-threads-shared-1.43-6.el7.x86_64                                                                         22/32 
  Installing : perl-threads-1.87-4.el7.x86_64                                                                                23/32 
  Installing : perl-Filter-1.49-3.el7.x86_64                                                                                 24/32 
  Installing : 1:perl-Pod-Simple-3.28-4.el7.noarch                                                                           25/32 
  Installing : perl-Getopt-Long-2.40-2.el7.noarch                                                                            26/32 
  Installing : 4:perl-5.16.3-292.el7.x86_64                                                                                  27/32 
  Installing : 1:perl-Error-0.17020-2.el7.noarch                                                                             28/32 
  Installing : perl-TermReadKey-2.30-20.el7.x86_64                                                                           29/32 
  Installing : libgnome-keyring-3.12.0-1.el7.x86_64                                                                          30/32 
  Installing : perl-Git-1.8.3.1-12.el7_4.noarch                                                                              31/32 
  Installing : git-1.8.3.1-12.el7_4.x86_64                                                                                   32/32 
  Verifying  : perl-HTTP-Tiny-0.033-3.el7.noarch                                                                              1/32 
  Verifying  : libgnome-keyring-3.12.0-1.el7.x86_64                                                                           2/32 
  Verifying  : perl-threads-shared-1.43-6.el7.x86_64                                                                          3/32 
  Verifying  : perl-Storable-2.45-3.el7.x86_64                                                                                4/32 
  Verifying  : perl-Exporter-5.68-3.el7.noarch                                                                                5/32 
  Verifying  : perl-constant-1.27-2.el7.noarch                                                                                6/32 
  Verifying  : perl-PathTools-3.40-5.el7.x86_64                                                                               7/32 
  Verifying  : 4:perl-macros-5.16.3-292.el7.x86_64                                                                            8/32 
  Verifying  : git-1.8.3.1-12.el7_4.x86_64                                                                                    9/32 
  Verifying  : 1:perl-parent-0.225-244.el7.noarch                                                                            10/32 
  Verifying  : 4:perl-5.16.3-292.el7.x86_64                                                                                  11/32 
  Verifying  : perl-TermReadKey-2.30-20.el7.x86_64                                                                           12/32 
  Verifying  : perl-File-Temp-0.23.01-3.el7.noarch                                                                           13/32 
  Verifying  : 1:perl-Pod-Simple-3.28-4.el7.noarch                                                                           14/32 
  Verifying  : perl-Time-Local-1.2300-2.el7.noarch                                                                           15/32 
  Verifying  : 4:perl-libs-5.16.3-292.el7.x86_64                                                                             16/32 
  Verifying  : perl-Pod-Perldoc-3.20-4.el7.noarch                                                                            17/32 
  Verifying  : perl-Socket-2.010-4.el7.x86_64                                                                                18/32 
  Verifying  : perl-Carp-1.26-244.el7.noarch                                                                                 19/32 
  Verifying  : perl-Git-1.8.3.1-12.el7_4.noarch                                                                              20/32 
  Verifying  : 1:perl-Error-0.17020-2.el7.noarch                                                                             21/32 
  Verifying  : 4:perl-Time-HiRes-1.9725-3.el7.x86_64                                                                         22/32 
  Verifying  : perl-Scalar-List-Utils-1.27-248.el7.x86_64                                                                    23/32 
  Verifying  : 1:perl-Pod-Escapes-1.04-292.el7.noarch                                                                        24/32 
  Verifying  : perl-Pod-Usage-1.63-3.el7.noarch                                                                              25/32 
  Verifying  : perl-Encode-2.51-7.el7.x86_64                                                                                 26/32 
  Verifying  : perl-podlators-2.5.1-3.el7.noarch                                                                             27/32 
  Verifying  : perl-Getopt-Long-2.40-2.el7.noarch                                                                            28/32 
  Verifying  : perl-File-Path-2.09-2.el7.noarch                                                                              29/32 
  Verifying  : perl-threads-1.87-4.el7.x86_64                                                                                30/32 
  Verifying  : perl-Filter-1.49-3.el7.x86_64                                                                                 31/32 
  Verifying  : perl-Text-ParseWords-3.29-4.el7.noarch                                                                        32/32 

Installed:
  git.x86_64 0:1.8.3.1-12.el7_4                                                                                                    

Dependency Installed:
  libgnome-keyring.x86_64 0:3.12.0-1.el7    perl.x86_64 4:5.16.3-292.el7            perl-Carp.noarch 0:1.26-244.el7              
  perl-Encode.x86_64 0:2.51-7.el7           perl-Error.noarch 1:0.17020-2.el7       perl-Exporter.noarch 0:5.68-3.el7            
  perl-File-Path.noarch 0:2.09-2.el7        perl-File-Temp.noarch 0:0.23.01-3.el7   perl-Filter.x86_64 0:1.49-3.el7              
  perl-Getopt-Long.noarch 0:2.40-2.el7      perl-Git.noarch 0:1.8.3.1-12.el7_4      perl-HTTP-Tiny.noarch 0:0.033-3.el7          
  perl-PathTools.x86_64 0:3.40-5.el7        perl-Pod-Escapes.noarch 1:1.04-292.el7  perl-Pod-Perldoc.noarch 0:3.20-4.el7         
  perl-Pod-Simple.noarch 1:3.28-4.el7       perl-Pod-Usage.noarch 0:1.63-3.el7      perl-Scalar-List-Utils.x86_64 0:1.27-248.el7 
  perl-Socket.x86_64 0:2.010-4.el7          perl-Storable.x86_64 0:2.45-3.el7       perl-TermReadKey.x86_64 0:2.30-20.el7        
  perl-Text-ParseWords.noarch 0:3.29-4.el7  perl-Time-HiRes.x86_64 4:1.9725-3.el7   perl-Time-Local.noarch 0:1.2300-2.el7        
  perl-constant.noarch 0:1.27-2.el7         perl-libs.x86_64 4:5.16.3-292.el7       perl-macros.x86_64 4:5.16.3-292.el7          
  perl-parent.noarch 1:0.225-244.el7        perl-podlators.noarch 0:2.5.1-3.el7     perl-threads.x86_64 0:1.87-4.el7             
  perl-threads-shared.x86_64 0:1.43-6.el7  

Complete!

以上で、必要パッケージのインストールが完了しました。次の手順よりAWXのインストールを行います。

AWXをインストール

AWXをインストールする前に、GitよりAWXのクローンをローカルにダウンロードします。

# git clone https://github.com/ansible/awx.git
Cloning into 'awx'...
remote: Counting objects: 146684, done.
remote: Compressing objects: 100% (23/23), done.
remote: Total 146684 (delta 0), reused 10 (delta 0), pack-reused 146660
Receiving objects: 100% (146684/146684), 186.45 MiB | 3.31 MiB/s, done.
Resolving deltas: 100% (113100/113100), done.

AWSのインストールディレクトリに移動します。

# cd awx/installer/

AnsibleのPlayBookを実行します。

# ansible-playbook -i inventory install.yml

PLAY [Build and deploy AWX] *******************************************************************************************************

TASK [check_vars : awx_openshift_project should be defined] ***********************************************************************
skipping: [localhost]

TASK [check_vars : openshift_user should be defined] ******************************************************************************
skipping: [localhost]

TASK [check_vars : openshift_password should be defined] **************************************************************************
skipping: [localhost]

TASK [check_vars : awx_node_port should be defined] *******************************************************************************
skipping: [localhost]

TASK [check_vars : docker_registry should be defined if not using dockerhub] ******************************************************
skipping: [localhost]

TASK [check_vars : docker_registry_repository should be defined if not using dockerhub] *******************************************
skipping: [localhost]

TASK [check_vars : docker_registry_username should be defined if not using dockerhub] *********************************************
skipping: [localhost]

TASK [check_vars : docker_registry_password should be defined] ********************************************************************
skipping: [localhost]

TASK [check_vars : postgres_data_dir should be defined] ***************************************************************************
ok: [localhost] => {
    "changed": false, 
    "msg": "All assertions passed"
}

TASK [check_vars : host_port should be defined] ***********************************************************************************
ok: [localhost] => {
    "changed": false, 
    "msg": "All assertions passed"
}

TASK [image_build : Get Version from checkout if not provided] ********************************************************************
skipping: [localhost]

TASK [image_build : Set global version if not provided] ***************************************************************************
skipping: [localhost]

TASK [image_build : Verify awx-logos directory exists for official install] *******************************************************
skipping: [localhost]

TASK [image_build : Copy logos for inclusion in sdist] ****************************************************************************
skipping: [localhost]

TASK [image_build : Set sdist file name] ******************************************************************************************
skipping: [localhost]

TASK [image_build : AWX Distribution] *********************************************************************************************
skipping: [localhost]

TASK [image_build : Stat distribution file] ***************************************************************************************
skipping: [localhost]

TASK [image_build : Clean distribution] *******************************************************************************************
skipping: [localhost]

TASK [image_build : Build sdist builder image] ************************************************************************************
skipping: [localhost]

TASK [image_build : Build AWX distribution using container] ***********************************************************************
skipping: [localhost]

TASK [image_build : Build AWX distribution locally] *******************************************************************************
skipping: [localhost]

TASK [image_build : Set docker build base path] ***********************************************************************************
skipping: [localhost]

TASK [image_build : Set awx_web image name] ***************************************************************************************
skipping: [localhost]

TASK [image_build : Set awx_task image name] **************************************************************************************
skipping: [localhost]

TASK [image_build : Ensure directory exists] **************************************************************************************
skipping: [localhost]

TASK [image_build : Stage sdist] **************************************************************************************************
skipping: [localhost]

TASK [image_build : Template web Dockerfile] **************************************************************************************
skipping: [localhost]

TASK [image_build : Template task Dockerfile] *************************************************************************************
skipping: [localhost]

TASK [image_build : Stage launch_awx] *********************************************************************************************
skipping: [localhost]

TASK [image_build : Stage launch_awx_task] ****************************************************************************************
skipping: [localhost]

TASK [image_build : Stage nginx.conf] *********************************************************************************************
skipping: [localhost]

TASK [image_build : Stage supervisor.conf] ****************************************************************************************
skipping: [localhost]

TASK [image_build : Stage supervisor_task.conf] ***********************************************************************************
skipping: [localhost]

TASK [image_build : Stage settings.py] ********************************************************************************************
skipping: [localhost]

TASK [image_build : Stage requirements] *******************************************************************************************
skipping: [localhost]

TASK [image_build : Stage Makefile] ***********************************************************************************************
skipping: [localhost]

TASK [image_build : State ansible repo] *******************************************************************************************
skipping: [localhost]

TASK [image_build : State ansible repo key] ***************************************************************************************
skipping: [localhost]

TASK [image_build : Build base web image] *****************************************************************************************
skipping: [localhost]

TASK [image_build : Build base task image] ****************************************************************************************
skipping: [localhost]

TASK [image_build : Clean docker base directory] **********************************************************************************
skipping: [localhost]

TASK [openshift : Authenticate with OpenShift] ************************************************************************************
skipping: [localhost]

TASK [openshift : Get Project Detail] *********************************************************************************************
skipping: [localhost]

TASK [openshift : Get Postgres Service Detail] ************************************************************************************
skipping: [localhost]

TASK [openshift : Create AWX Openshift Project] ***********************************************************************************
skipping: [localhost]

TASK [openshift : Mark Openshift User as Admin] ***********************************************************************************
skipping: [localhost]

TASK [openshift : Set docker registry password] ***********************************************************************************
skipping: [localhost]

TASK [openshift : Set docker registry password] ***********************************************************************************
skipping: [localhost]

TASK [openshift : Authenticate with Docker registry] ******************************************************************************
skipping: [localhost]

TASK [openshift : Wait for Openshift] *********************************************************************************************
skipping: [localhost]

TASK [openshift : Tag and push web image to registry] *****************************************************************************
skipping: [localhost]

TASK [openshift : Wait for openshift] *********************************************************************************************
skipping: [localhost]

TASK [openshift : Tag and push task image to registry] ****************************************************************************
skipping: [localhost]

TASK [openshift : Set full web image path] ****************************************************************************************
skipping: [localhost]

TASK [openshift : Set full task image path] ***************************************************************************************
skipping: [localhost]

TASK [openshift : Set DockerHub Image Paths] **************************************************************************************
skipping: [localhost]

TASK [openshift : Deploy and Activate Postgres] ***********************************************************************************
skipping: [localhost]

TASK [openshift : Wait for Postgres to activate] **********************************************************************************
skipping: [localhost]

TASK [openshift : Set openshift base path] ****************************************************************************************
skipping: [localhost]

TASK [openshift : Ensure directory exists] ****************************************************************************************
skipping: [localhost]

TASK [openshift : Template Openshift AWX Config] **********************************************************************************
skipping: [localhost]

TASK [openshift : Template Openshift AWX Deployment] ******************************************************************************
skipping: [localhost]

TASK [openshift : Apply Configmap] ************************************************************************************************
skipping: [localhost]

TASK [openshift : Apply Deployment] ***********************************************************************************************
skipping: [localhost]

TASK [local_docker : Export Docker web image if it isnt local and there isnt a registry defined] **********************************
skipping: [localhost]

TASK [local_docker : Export Docker task image if it isnt local and there isnt a registry defined] *********************************
skipping: [localhost]

TASK [local_docker : Authenticate with Docker registry if registry password given] ************************************************
skipping: [localhost]

TASK [local_docker : Set docker base path] ****************************************************************************************
skipping: [localhost]

TASK [local_docker : Ensure directory exists] *************************************************************************************
skipping: [localhost]

TASK [local_docker : Copy web image to docker execution] **************************************************************************
skipping: [localhost]

TASK [local_docker : Copy task image to docker execution] *************************************************************************
skipping: [localhost]

TASK [local_docker : Load web image] **********************************************************************************************
skipping: [localhost]

TASK [local_docker : Load task image] *********************************************************************************************
skipping: [localhost]

TASK [local_docker : Tag and push web image to registry] **************************************************************************
skipping: [localhost]

TASK [local_docker : Tag and push task image to registry] *************************************************************************
skipping: [localhost]

TASK [local_docker : Set full image path for Registry] ****************************************************************************

skipping: [localhost]

TASK [local_docker : Set full image path for local install] ***********************************************************************
skipping: [localhost]

TASK [local_docker : Set DockerHub Image Paths] ***********************************************************************************
ok: [localhost]

TASK [local_docker : Activate postgres container] *********************************************************************************
changed: [localhost]

TASK [local_docker : Activate rabbitmq container] *********************************************************************************
changed: [localhost]

TASK [local_docker : Activate memcached container] ********************************************************************************
changed: [localhost]

TASK [local_docker : Wait for postgres and rabbitmq to activate] ******************************************************************
Pausing for 15 seconds
(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort)
ok: [localhost]

TASK [local_docker : Set properties without postgres for awx_web] *****************************************************************
skipping: [localhost]

TASK [local_docker : Set properties with postgres for awx_web] ********************************************************************
ok: [localhost]

TASK [local_docker : Set properties without postgres for awx_task] ****************************************************************
skipping: [localhost]

TASK [local_docker : Set properties with postgres for awx_task] *******************************************************************
ok: [localhost]

TASK [local_docker : Activate AWX Web Container] **********************************************************************************
changed: [localhost]

TASK [local_docker : Activate AWX Task Container] *********************************************************************************
changed: [localhost]

PLAY RECAP ************************************************************************************************************************
localhost                  : ok=11   changed=5    unreachable=0    failed=0   

PlayBookの実行により、AWXのコンテナを立ち上げていますので、Dockerコンテナの稼働状況を確認します。

# docker ps
CONTAINER ID        IMAGE                     COMMAND                  CREATED             STATUS              PORTS                                NAMES
dc97162a3373        ansible/awx_task:latest   "/tini -- /bin/sh -c "   2 minutes ago       Up 2 minutes        8052/tcp                             awx_task
d49ba61df8bc        ansible/awx_web:latest    "/tini -- /bin/sh -c "   2 minutes ago       Up 2 minutes        0.0.0.0:80->8052/tcp                 awx_web
6a1f430e0e2a        memcached:alpine          "docker-entrypoint.sh"   3 minutes ago       Up 3 minutes        11211/tcp                            memcached
14a98d5c3c30        rabbitmq:3                "docker-entrypoint.sh"   3 minutes ago       Up 3 minutes        4369/tcp, 5671-5672/tcp, 25672/tcp   rabbitmq
360381fed542        postgres:9.6              "docker-entrypoint.sh"   3 minutes ago       Up 3 minutes        5432/tcp                             postgres

awx_taskとawx_webというコンテナの他、memcachedのコンテナとRabbitMQのコンテナ、そしてPostgreSQLのコンテナが起動していることがわかります。

なお、この直後にDockerホストのアドレスもしくはLocalhostに対してアクセスすると下記の画面が表示され、まだAWXは利用できる状態ではありません。セットアップのプログラムの完了をお待ち下さい。

完了後、自動的にログイン画面が表示されます。

以上でAnsibleのインストールは完了です。ログインIDはadmin、パスワードはpasswordでログインができます。

サイオスOSSよろず相談室

サイオスOSSよろず相談室(1)

問い合わせボタン