AKAI TSUKI

System development or Technical something

Install lxd in Ubuntu

I executed the command "sudo apt install zfs lxd" in Ubuntu 16.04. But...

lxd is already the newest version (2.0.8-0ubuntu1~ubuntu16.04.2).

ubu@ubuntu16:~$ sudo apt install zfs lxd
[sudo] password for ubu:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'zfsutils-linux' instead of 'zfs'
lxd is already the newest version (2.0.8-0ubuntu1~ubuntu16.04.2).
The following additional packages will be installed:
  libnvpair1linux libuutil1linux libzfs2linux libzpool2linux zfs-doc zfs-zed
Suggested packages:
  default-mta | mail-transport-agent samba-common-bin nfs-kernel-server zfs-initramfs
The following NEW packages will be installed:
  libnvpair1linux libuutil1linux libzfs2linux libzpool2linux zfs-doc zfs-zed zfsutils-linux
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 896 kB of archives.
After this operation, 2,902 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://jp.archive.ubuntu.com/ubuntu xenial-updates/main amd64 zfs-doc all 0.6.5.6-0ubuntu15 [49.9 kB]
Get:2 http://jp.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libuutil1linux amd64 0.6.5.6-0ubuntu15 [27.4 kB]
Get:3 http://jp.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libnvpair1linux amd64 0.6.5.6-0ubuntu15 [23.4 kB]
Get:4 http://jp.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libzpool2linux amd64 0.6.5.6-0ubuntu15 [384 kB]
Get:5 http://jp.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libzfs2linux amd64 0.6.5.6-0ubuntu15 [106 kB]
Get:6 http://jp.archive.ubuntu.com/ubuntu xenial-updates/main amd64 zfsutils-linux amd64 0.6.5.6-0ubuntu15 [276 kB]
Get:7 http://jp.archive.ubuntu.com/ubuntu xenial-updates/main amd64 zfs-zed amd64 0.6.5.6-0ubuntu15 [29.6 kB]
Fetched 896 kB in 0s (1,683 kB/s)
Selecting previously unselected package zfs-doc.
(Reading database ... 91850 files and directories currently installed.)
Preparing to unpack .../zfs-doc_0.6.5.6-0ubuntu15_all.deb ...
Unpacking zfs-doc (0.6.5.6-0ubuntu15) ...
Selecting previously unselected package libuutil1linux.
Preparing to unpack .../libuutil1linux_0.6.5.6-0ubuntu15_amd64.deb ...
Unpacking libuutil1linux (0.6.5.6-0ubuntu15) ...
Selecting previously unselected package libnvpair1linux.
Preparing to unpack .../libnvpair1linux_0.6.5.6-0ubuntu15_amd64.deb ...
Unpacking libnvpair1linux (0.6.5.6-0ubuntu15) ...
Selecting previously unselected package libzpool2linux.
Preparing to unpack .../libzpool2linux_0.6.5.6-0ubuntu15_amd64.deb ...
Unpacking libzpool2linux (0.6.5.6-0ubuntu15) ...
Selecting previously unselected package libzfs2linux.
Preparing to unpack .../libzfs2linux_0.6.5.6-0ubuntu15_amd64.deb ...
Unpacking libzfs2linux (0.6.5.6-0ubuntu15) ...
Selecting previously unselected package zfsutils-linux.
Preparing to unpack .../zfsutils-linux_0.6.5.6-0ubuntu15_amd64.deb ...
Unpacking zfsutils-linux (0.6.5.6-0ubuntu15) ...
Selecting previously unselected package zfs-zed.
Preparing to unpack .../zfs-zed_0.6.5.6-0ubuntu15_amd64.deb ...
Unpacking zfs-zed (0.6.5.6-0ubuntu15) ...
Processing triggers for libc-bin (2.23-0ubuntu5) ...
Processing triggers for initramfs-tools (0.122ubuntu8.7) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-57-generic
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for systemd (229-4ubuntu13) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up zfs-doc (0.6.5.6-0ubuntu15) ...
Setting up libuutil1linux (0.6.5.6-0ubuntu15) ...
Setting up libnvpair1linux (0.6.5.6-0ubuntu15) ...
Setting up libzpool2linux (0.6.5.6-0ubuntu15) ...
Setting up libzfs2linux (0.6.5.6-0ubuntu15) ...
Setting up zfsutils-linux (0.6.5.6-0ubuntu15) ...
zfs-import-cache.service is a disabled or a static unit, not starting it.
zfs-import-scan.service is a disabled or a static unit, not starting it.
zfs-mount.service is a disabled or a static unit, not starting it.
Processing triggers for initramfs-tools (0.122ubuntu8.7) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-57-generic
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
Setting up zfs-zed (0.6.5.6-0ubuntu15) ...
zed.service is a disabled or a static unit, not starting it.
Processing triggers for libc-bin (2.23-0ubuntu5) ...
Processing triggers for systemd (229-4ubuntu13) ...
Processing triggers for ureadahead (0.100.0-19) ...
ubu@ubuntu16:~$

ubu@ubuntu16:~$ id
uid=1000(ubu) gid=1000(ubu) groups=1000(ubu),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),110(lxd),115(lpadmin),116(sambashare)
ubu@ubuntu16:~$ newgrp lxd
ubu@ubuntu16:~$ id
uid=1000(ubu) gid=110(lxd) groups=110(lxd),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),115(lpadmin),116(sambashare),1000(ubu)
ubu@ubuntu16:~$

ubu@ubuntu16:~$ lxd --version
2.0.8
ubu@ubuntu16:~$ lxc --version
2.0.8
ubu@ubuntu16:~$

apt update in ubuntu

I executed the command "sudo apt update".

ubu@ubuntu16:~$ sudo apt update
[sudo] password for ubu:
Hit:1 http://jp.archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://jp.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:3 http://jp.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Get:5 http://jp.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [445 kB]
Get:6 http://jp.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [438 kB]
Fetched 1,190 kB in 1s (897 kB/s)
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
ubu@ubuntu16:~$

and then I executed the command "sudo dpkg --configure -a".

ubu@ubuntu16:~$ sudo dpkg --configure -a
Setting up libapt-inst2.0:amd64 (1.2.15ubuntu0.2) ...
Processing triggers for ufw (0.35-0ubuntu2) ...
Setting up libisc160:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.2) ...
Setting up libssl1.0.0:amd64 (1.0.2g-1ubuntu4.5) ...
Setting up libisc-export160 (1:9.10.3.dfsg.P4-8ubuntu1.2) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up apt-utils (1.2.15ubuntu0.2) ...
Setting up tzdata (2016j-0ubuntu0.16.04) ...

Current default time zone: 'Asia/Tokyo'
Local time is now:      Mon Jan  9 17:01:47 JST 2017.
Universal Time is now:  Mon Jan  9 08:01:47 UTC 2017.
Run 'dpkg-reconfigure tzdata' if you wish to change it.

Setting up libdns-export162 (1:9.10.3.dfsg.P4-8ubuntu1.2) ...
Setting up python3-problem-report (2.20.1-0ubuntu2.4) ...
Setting up linux-image-4.4.0-57-generic (4.4.0-57.78) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-57-generic /boot/vmlinuz-4.4.0-57-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-57-generic /boot/vmlinuz-4.4.0-57-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-57-generic
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.4.0-57-generic /boot/vmlinuz-4.4.0-57-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.4.0-57-generic /boot/vmlinuz-4.4.0-57-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.4.0-57-generic /boot/vmlinuz-4.4.0-57-generic
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.4.0-57-generic
Found initrd image: /boot/initrd.img-4.4.0-57-generic
Found linux image: /boot/vmlinuz-4.4.0-31-generic
Found initrd image: /boot/initrd.img-4.4.0-31-generic
done
Setting up libisccc140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.2) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Setting up udev (229-4ubuntu10) ...
addgroup: The group `input' already exists as a system group. Exiting.
update-initramfs: deferring update (trigger activated)
Processing triggers for systemd (229-4ubuntu10) ...
Setting up liblwres141:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.2) ...
Setting up openssl (1.0.2g-1ubuntu4.5) ...
Setting up vim-common (2:7.4.1689-3ubuntu1.2) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for shared-mime-info (1.5-2ubuntu0.1) ...
Setting up vim-runtime (2:7.4.1689-3ubuntu1.2) ...
Setting up openssh-client (1:7.2p2-4ubuntu2.1) ...
Setting up linux-firmware (1.157.4) ...
Setting up libidn11:amd64 (1.32-3ubuntu1.1) ...
Setting up libdbus-1-3:amd64 (1.10.6-1ubuntu3.1) ...
Setting up libpython3.5-minimal:amd64 (3.5.2-2ubuntu0~16.04.1) ...
Setting up vim-tiny (2:7.4.1689-3ubuntu1.2) ...
Setting up libdns162:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.2) ...
Setting up libcurl3-gnutls:amd64 (7.47.0-1ubuntu2.2) ...
Setting up libpython3.5-stdlib:amd64 (3.5.2-2ubuntu0~16.04.1) ...
Setting up libisccfg140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.2) ...
Setting up python3-apport (2.20.1-0ubuntu2.4) ...
Setting up python3.5-minimal (3.5.2-2ubuntu0~16.04.1) ...
Setting up openssh-sftp-server (1:7.2p2-4ubuntu2.1) ...
Setting up apport (2.20.1-0ubuntu2.4) ...
Setting up libbind9-140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.2) ...
Setting up dbus (1.10.6-1ubuntu3.1) ...
A reboot is required to replace the running dbus-daemon.
Please reboot the system when convenient.
Setting up bind9-host (1:9.10.3.dfsg.P4-8ubuntu1.2) ...
Setting up python3.5 (3.5.2-2ubuntu0~16.04.1) ...
Setting up apt-transport-https (1.2.15ubuntu0.2) ...
Setting up libpam-systemd:amd64 (229-4ubuntu10) ...
Setting up curl (7.47.0-1ubuntu2.2) ...
Setting up libpython3.5:amd64 (3.5.2-2ubuntu0~16.04.1) ...
Setting up dnsutils (1:9.10.3.dfsg.P4-8ubuntu1.2) ...
Setting up openssh-server (1:7.2p2-4ubuntu2.1) ...
Installing new version of config file /etc/network/if-up.d/openssh-server ...
Setting up vim (2:7.4.1689-3ubuntu1.2) ...
Setting up liblxc1 (2.0.5-0ubuntu1~ubuntu16.04.3) ...
Setting up lxc-common (2.0.5-0ubuntu1~ubuntu16.04.3) ...
Processing triggers for initramfs-tools (0.122ubuntu8.1) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-57-generic
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
Processing triggers for libc-bin (2.23-0ubuntu3) ...
ubu@ubuntu16:~$

and I executed again.

ubu@ubuntu16:~$ sudo apt update
Hit:1 http://jp.archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://jp.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:3 http://jp.archive.ubuntu.com/ubuntu xenial-backports InRelease
Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Fetched 102 kB in 1s (71.2 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
73 packages can be upgraded. Run 'apt list --upgradable' to see them.
ubu@ubuntu16:~$

network configuration for ubuntu

I use ubuntu 16.04. I configured interfaces file for static ip as follows:

ubu@ubuntu16:~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto enp0s3
# iface enp0s3 inet dhcp
iface enp0s3 inet static
address 192.168.0.205
network 192.168.0.0
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameservers 192.168.0.1 8.8.8.8
ubu@ubuntu16:~$

start postgres

try to start postgres by docker.

[root@localhost ~]# docker pull postgres
Using default tag: latest
latest: Pulling from library/postgres

75a822cd7888: Pull complete
68f8c57d4ec8: Pull complete
1ee19503c02a: Pull complete
ea8f451ca276: Pull complete
bce67042ed9c: Pull complete
eb0990abb35a: Pull complete
af6ba638869d: Pull complete
e8d456ed70c7: Pull complete
1d9946f84913: Pull complete
aaaf404de7ad: Pull complete
6cd7c84ea195: Pull complete
Digest: sha256:855b55b060bfa63cb39bfee0fe4ec6f40037e9f85f8a7eec24bc8e59ec1a8345
Status: Downloaded newer image for postgres:latest
[root@localhost ~]#
[root@localhost ~]# docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
centos              7                   67591570dd29        3 weeks ago         191.8 MB
centos              latest              67591570dd29        3 weeks ago         191.8 MB
postgres            latest              0e24dd8079dc        3 weeks ago         264.8 MB
hello-world         latest              c54a2cc56cbb        6 months ago        1.848 kB
[root@localhost ~]#
[root@localhost ~]# docker run -d --name postgres -e POSTGRES_PASSWORD=mysecretpassword -p 5432:5432 postgres
97cae9fa17066121adb77694f96bfd142d674328c8220669f1a774fc0685b320
[root@localhost ~]# docker ps
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                    NAMES
97cae9fa1706        postgres            "/docker-entrypoint.s"   4 seconds ago       Up 2 seconds        0.0.0.0:5432->5432/tcp   postgres
[root@localhost ~]# docker run -it --rm --link postgres:postgres postgres psql -h postgres -U postgres
Password for user postgres:
psql (9.6.1)
Type "help" for help.

postgres=# \h

install ansible on docker container.

I installed ansible on docker container.

[root@localhost ~]# docker run -d --name ansible centos:7 tail -f /dev/null
89fc39c2cbb0de2fe9f520ccfbb7cd43fa77ed62632d7479ab3e9779b73de258
[root@localhost ~]# docker ps
CONTAINER ID        IMAGE               COMMAND               CREATED             STATUS              PORTS               NAMES
89fc39c2cbb0        centos:7            "tail -f /dev/null"   2 seconds ago       Up 1 seconds                            ansible
[root@localhost ~]# docker exec -it ansible bash
[root@89fc39c2cbb0 /]# yum install epel-release
Loaded plugins: fastestmirror, ovl
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                                                                          | 155 kB  00:00:00
(2/4): extras/7/x86_64/primary_db                                                                      | 183 kB  00:00:00
(3/4): updates/7/x86_64/primary_db                                                                     | 1.2 MB  00:00:01
(4/4): base/7/x86_64/primary_db                                                                        | 5.6 MB  00:00:12
Determining fastest mirrors
 * base: www.ftp.ne.jp
 * extras: www.ftp.ne.jp
 * updates: www.ftp.ne.jp
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================
 Package                            Arch                         Version                   Repository                    Size
==============================================================================================================================
Installing:
 epel-release                       noarch                       7-6                       extras                        14 k

Transaction Summary
==============================================================================================================================
Install  1 Package

Total download size: 14 k
Installed size: 24 k
Is this ok [y/d/N]: y
Downloading packages:
warning: /var/cache/yum/x86_64/7/extras/packages/epel-release-7-6.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Public key for epel-release-7-6.noarch.rpm is not installed
epel-release-7-6.noarch.rpm                                                                            |  14 kB  00:00:00
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Importing GPG key 0xF4A80EB5:
 Userid     : "CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>"
 Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
 Package    : centos-release-7-3.1611.el7.centos.x86_64 (@CentOS)
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Is this ok [y/N]: y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : epel-release-7-6.noarch                                                                                    1/1
  Verifying  : epel-release-7-6.noarch                                                                                    1/1

Installed:
  epel-release.noarch 0:7-6

Complete!
[root@89fc39c2cbb0 /]# yum install ansible
Loaded plugins: fastestmirror, ovl
epel/x86_64/metalink                                                                                   | 5.4 kB  00:00:00
epel                                                                                                   | 4.3 kB  00:00:00
(1/3): epel/x86_64/group_gz                                                                            | 170 kB  00:00:00
(2/3): epel/x86_64/updateinfo                                                                          | 699 kB  00:00:00
(3/3): epel/x86_64/primary_db                                                                          | 4.4 MB  00:00:07
Loading mirror speeds from cached hostfile
 * base: www.ftp.ne.jp
 * epel: ftp.riken.jp
 * extras: www.ftp.ne.jp
 * updates: www.ftp.ne.jp
Resolving Dependencies
--> Running transaction check
---> Package ansible.noarch 0:2.2.0.0-4.el7 will be installed
--> Processing Dependency: sshpass for package: ansible-2.2.0.0-4.el7.noarch
--> Processing Dependency: python-six for package: ansible-2.2.0.0-4.el7.noarch
--> Processing Dependency: python-setuptools for package: ansible-2.2.0.0-4.el7.noarch
--> Processing Dependency: python-paramiko for package: ansible-2.2.0.0-4.el7.noarch
--> Processing Dependency: python-keyczar for package: ansible-2.2.0.0-4.el7.noarch
--> Processing Dependency: python-jinja2 for package: ansible-2.2.0.0-4.el7.noarch
--> Processing Dependency: python-httplib2 for package: ansible-2.2.0.0-4.el7.noarch
--> Processing Dependency: PyYAML for package: ansible-2.2.0.0-4.el7.noarch
--> Running transaction check
---> Package PyYAML.x86_64 0:3.10-11.el7 will be installed
--> Processing Dependency: libyaml-0.so.2()(64bit) for package: PyYAML-3.10-11.el7.x86_64
---> Package python-httplib2.noarch 0:0.7.7-3.el7 will be installed
---> Package python-jinja2.noarch 0:2.7.2-2.el7 will be installed
--> Processing Dependency: python-babel >= 0.8 for package: python-jinja2-2.7.2-2.el7.noarch
--> Processing Dependency: python-markupsafe for package: python-jinja2-2.7.2-2.el7.noarch
---> Package python-keyczar.noarch 0:0.71c-2.el7 will be installed
--> Processing Dependency: python-pyasn1 for package: python-keyczar-0.71c-2.el7.noarch
--> Processing Dependency: python-crypto for package: python-keyczar-0.71c-2.el7.noarch
---> Package python-setuptools.noarch 0:0.9.8-4.el7 will be installed
--> Processing Dependency: python-backports-ssl_match_hostname for package: python-setuptools-0.9.8-4.el7.noarch
---> Package python-six.noarch 0:1.9.0-2.el7 will be installed
---> Package python2-paramiko.noarch 0:1.16.1-1.el7 will be installed
--> Processing Dependency: python2-ecdsa for package: python2-paramiko-1.16.1-1.el7.noarch
---> Package sshpass.x86_64 0:1.05-5.el7 will be installed
--> Running transaction check
---> Package libyaml.x86_64 0:0.1.4-11.el7_0 will be installed
---> Package python-babel.noarch 0:0.9.6-8.el7 will be installed
---> Package python-backports-ssl_match_hostname.noarch 0:3.4.0.2-4.el7 will be installed
--> Processing Dependency: python-backports for package: python-backports-ssl_match_hostname-3.4.0.2-4.el7.noarch
---> Package python-markupsafe.x86_64 0:0.11-10.el7 will be installed
---> Package python2-crypto.x86_64 0:2.6.1-10.el7 will be installed
--> Processing Dependency: libtomcrypt.so.0()(64bit) for package: python2-crypto-2.6.1-10.el7.x86_64
---> Package python2-ecdsa.noarch 0:0.13-4.el7 will be installed
---> Package python2-pyasn1.noarch 0:0.1.9-7.el7 will be installed
--> Running transaction check
---> Package libtomcrypt.x86_64 0:1.17-23.el7 will be installed
--> Processing Dependency: libtommath >= 0.42.0 for package: libtomcrypt-1.17-23.el7.x86_64
--> Processing Dependency: libtommath.so.0()(64bit) for package: libtomcrypt-1.17-23.el7.x86_64
---> Package python-backports.x86_64 0:1.0-8.el7 will be installed
--> Running transaction check
---> Package libtommath.x86_64 0:0.42.0-4.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================
 Package                                           Arch                 Version                      Repository          Size
==============================================================================================================================
Installing:
 ansible                                           noarch               2.2.0.0-4.el7                epel               4.6 M
Installing for dependencies:
 PyYAML                                            x86_64               3.10-11.el7                  base               153 k
 libtomcrypt                                       x86_64               1.17-23.el7                  epel               224 k
 libtommath                                        x86_64               0.42.0-4.el7                 epel                35 k
 libyaml                                           x86_64               0.1.4-11.el7_0               base                55 k
 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.4.0.2-4.el7                base                12 k
 python-httplib2                                   noarch               0.7.7-3.el7                  epel                70 k
 python-jinja2                                     noarch               2.7.2-2.el7                  base               515 k
 python-keyczar                                    noarch               0.71c-2.el7                  epel               218 k
 python-markupsafe                                 x86_64               0.11-10.el7                  base                25 k
 python-setuptools                                 noarch               0.9.8-4.el7                  base               396 k
 python-six                                        noarch               1.9.0-2.el7                  base                29 k
 python2-crypto                                    x86_64               2.6.1-10.el7                 epel               475 k
 python2-ecdsa                                     noarch               0.13-4.el7                   epel                83 k
 python2-paramiko                                  noarch               1.16.1-1.el7                 epel               257 k
 python2-pyasn1                                    noarch               0.1.9-7.el7                  base               100 k
 sshpass                                           x86_64               1.05-5.el7                   epel                21 k

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

Total download size: 8.5 M
Installed size: 38 M
Is this ok [y/d/N]: y
Downloading packages:
warning: /var/cache/yum/x86_64/7/epel/packages/libtomcrypt-1.17-23.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY
Public key for libtomcrypt-1.17-23.el7.x86_64.rpm is not installed
(1/19): libtomcrypt-1.17-23.el7.x86_64.rpm                                                             | 224 kB  00:00:00
(2/19): libtommath-0.42.0-4.el7.x86_64.rpm                                                             |  35 kB  00:00:00
(3/19): libyaml-0.1.4-11.el7_0.x86_64.rpm                                                              |  55 kB  00:00:00
(4/19): python-backports-ssl_match_hostname-3.4.0.2-4.el7.noarch.rpm                                   |  12 kB  00:00:00
(5/19): python-backports-1.0-8.el7.x86_64.rpm                                                          | 5.8 kB  00:00:00
(6/19): python-jinja2-2.7.2-2.el7.noarch.rpm                                                           | 515 kB  00:00:00
(7/19): python-httplib2-0.7.7-3.el7.noarch.rpm                                                         |  70 kB  00:00:00
(8/19): python-markupsafe-0.11-10.el7.x86_64.rpm                                                       |  25 kB  00:00:00
(9/19): python-keyczar-0.71c-2.el7.noarch.rpm                                                          | 218 kB  00:00:00
(10/19): python-six-1.9.0-2.el7.noarch.rpm                                                             |  29 kB  00:00:00
(11/19): python-setuptools-0.9.8-4.el7.noarch.rpm                                                      | 396 kB  00:00:00
(12/19): python2-ecdsa-0.13-4.el7.noarch.rpm                                                           |  83 kB  00:00:00
(13/19): PyYAML-3.10-11.el7.x86_64.rpm                                                                 | 153 kB  00:00:01
(14/19): python-babel-0.9.6-8.el7.noarch.rpm                                                           | 1.4 MB  00:00:01
(15/19): python2-paramiko-1.16.1-1.el7.noarch.rpm                                                      | 257 kB  00:00:00
(16/19): ansible-2.2.0.0-4.el7.noarch.rpm                                                              | 4.6 MB  00:00:01
(17/19): sshpass-1.05-5.el7.x86_64.rpm                                                                 |  21 kB  00:00:00
(18/19): python2-pyasn1-0.1.9-7.el7.noarch.rpm                                                         | 100 kB  00:00:00
(19/19): python2-crypto-2.6.1-10.el7.x86_64.rpm                                                        | 475 kB  00:00:00
------------------------------------------------------------------------------------------------------------------------------
Total                                                                                         4.0 MB/s | 8.5 MB  00:00:02
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Importing GPG key 0x352C64E5:
 Userid     : "Fedora EPEL (7) <epel@fedoraproject.org>"
 Fingerprint: 91e9 7d7c 4a5e 96f1 7f3e 888f 6a2f aea2 352c 64e5
 Package    : epel-release-7-6.noarch (@extras)
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Is this ok [y/N]: y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : python-six-1.9.0-2.el7.noarch                                                                             1/19
  Installing : python2-ecdsa-0.13-4.el7.noarch                                                                           2/19
  Installing : sshpass-1.05-5.el7.x86_64                                                                                 3/19
  Installing : python-babel-0.9.6-8.el7.noarch                                                                           4/19
  Installing : python2-pyasn1-0.1.9-7.el7.noarch                                                                         5/19
  Installing : libtommath-0.42.0-4.el7.x86_64                                                                            6/19
  Installing : libtomcrypt-1.17-23.el7.x86_64                                                                            7/19
  Installing : python2-crypto-2.6.1-10.el7.x86_64                                                                        8/19
  Installing : python-keyczar-0.71c-2.el7.noarch                                                                         9/19
  Installing : python2-paramiko-1.16.1-1.el7.noarch                                                                     10/19
  Installing : python-backports-1.0-8.el7.x86_64                                                                        11/19
  Installing : python-backports-ssl_match_hostname-3.4.0.2-4.el7.noarch                                                 12/19
  Installing : python-setuptools-0.9.8-4.el7.noarch                                                                     13/19
  Installing : python-httplib2-0.7.7-3.el7.noarch                                                                       14/19
  Installing : python-markupsafe-0.11-10.el7.x86_64                                                                     15/19
  Installing : python-jinja2-2.7.2-2.el7.noarch                                                                         16/19
  Installing : libyaml-0.1.4-11.el7_0.x86_64                                                                            17/19
  Installing : PyYAML-3.10-11.el7.x86_64                                                                                18/19
  Installing : ansible-2.2.0.0-4.el7.noarch                                                                             19/19
  Verifying  : python-keyczar-0.71c-2.el7.noarch                                                                         1/19
  Verifying  : libyaml-0.1.4-11.el7_0.x86_64                                                                             2/19
  Verifying  : python-jinja2-2.7.2-2.el7.noarch                                                                          3/19
  Verifying  : python-setuptools-0.9.8-4.el7.noarch                                                                      4/19
  Verifying  : python-backports-ssl_match_hostname-3.4.0.2-4.el7.noarch                                                  5/19
  Verifying  : python-markupsafe-0.11-10.el7.x86_64                                                                      6/19
  Verifying  : python-httplib2-0.7.7-3.el7.noarch                                                                        7/19
  Verifying  : python2-ecdsa-0.13-4.el7.noarch                                                                           8/19
  Verifying  : libtomcrypt-1.17-23.el7.x86_64                                                                            9/19
  Verifying  : python-backports-1.0-8.el7.x86_64                                                                        10/19
  Verifying  : ansible-2.2.0.0-4.el7.noarch                                                                             11/19
  Verifying  : libtommath-0.42.0-4.el7.x86_64                                                                           12/19
  Verifying  : python2-pyasn1-0.1.9-7.el7.noarch                                                                        13/19
  Verifying  : PyYAML-3.10-11.el7.x86_64                                                                                14/19
  Verifying  : python2-crypto-2.6.1-10.el7.x86_64                                                                       15/19
  Verifying  : python-babel-0.9.6-8.el7.noarch                                                                          16/19
  Verifying  : python-six-1.9.0-2.el7.noarch                                                                            17/19
  Verifying  : python2-paramiko-1.16.1-1.el7.noarch                                                                     18/19
  Verifying  : sshpass-1.05-5.el7.x86_64                                                                                19/19

Installed:
  ansible.noarch 0:2.2.0.0-4.el7

Dependency Installed:
  PyYAML.x86_64 0:3.10-11.el7                                             libtomcrypt.x86_64 0:1.17-23.el7
  libtommath.x86_64 0:0.42.0-4.el7                                        libyaml.x86_64 0:0.1.4-11.el7_0
  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.4.0.2-4.el7              python-httplib2.noarch 0:0.7.7-3.el7
  python-jinja2.noarch 0:2.7.2-2.el7                                      python-keyczar.noarch 0:0.71c-2.el7
  python-markupsafe.x86_64 0:0.11-10.el7                                  python-setuptools.noarch 0:0.9.8-4.el7
  python-six.noarch 0:1.9.0-2.el7                                         python2-crypto.x86_64 0:2.6.1-10.el7
  python2-ecdsa.noarch 0:0.13-4.el7                                       python2-paramiko.noarch 0:1.16.1-1.el7
  python2-pyasn1.noarch 0:0.1.9-7.el7                                     sshpass.x86_64 0:1.05-5.el7

Complete!
[root@89fc39c2cbb0 /]#

I confirmed ansible version.

[root@89fc39c2cbb0 /]# ansible --version
ansible 2.2.0.0
  config file = /etc/ansible/ansible.cfg
  configured module search path = Default w/o overrides
[root@89fc39c2cbb0 /]#

start Java and Eclipse

新しく環境を用意してみた。

1. download java

jdk-8u112-windows-x64.exe

http://www.oracle.com/technetwork/jp/java/javase/downloads/index.html
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

2. download eclipse

eclipse-inst-win64.exe

https://www.eclipse.org/downloads/download.php?file=/oomph/epp/neon/R2a/eclipse-inst-win64.exe