ansible install docker centos 7 docker-python

root@localhost ~]# ansible localhost -m yum -a "name=docker* state=present"
localhost | SUCCESS => {
    "changed": true,
    "msg": "",
    "rc": 0,
    "results": [
        "Loaded plugins: fastestmirror, langpacks\nLoading mirror speeds from cached hostfile\n * base: centos.hbcse.tifr.res.in\n * epel: repos.del.extreme-ix.org\n * extras: centos.hbcse.tifr.res.in\n * updates: centos.hbcse.tifr.res.in\nPackage docker-registry is obsoleted by docker-distribution, trying to install docker-distribution-2.6.2-2.git48294d9.el7.x86_64 instead\nResolving Dependencies\n--> Running transaction check\n---> Package docker.x86_64 2:1.13.1-102.git7f2769b.el7.centos will be installed\n--> Processing Dependency: subscription-manager-rhsm-certificates for package: 2:docker-1.13.1-102.git7f2769b.el7.centos.x86_64\n---> Package docker-client.x86_64 2:1.13.1-102.git7f2769b.el7.centos will be installed\n---> Package docker-client-latest.x86_64 0:1.13.1-58.git87f2fab.el7.centos will be installed\n---> Package docker-common.x86_64 2:1.13.1-102.git7f2769b.el7.centos will be installed\n--> Processing Dependency: skopeo-containers >= 1:0.1.26-2 for package: 2:docker-common-1.13.1-102.git7f2769b.el7.centos.x86_64\n--> Processing Dependency: oci-umount >= 2:2.3.3-3 for package: 2:docker-common-1.13.1-102.git7f2769b.el7.centos.x86_64\n--> Processing Dependency: oci-systemd-hook >= 1:0.1.4-9 for package: 2:docker-common-1.13.1-102.git7f2769b.el7.centos.x86_64\n--> Processing Dependency: oci-register-machine >= 1:0-5.13 for package: 2:docker-common-1.13.1-102.git7f2769b.el7.centos.x86_64\n--> Processing Dependency: container-storage-setup >= 0.9.0-1 for package: 2:docker-common-1.13.1-102.git7f2769b.el7.centos.x86_64\n--> Processing Dependency: container-selinux >= 2:2.51-1 for package: 2:docker-common-1.13.1-102.git7f2769b.el7.centos.x86_64\n--> Processing Dependency: atomic-registries for package: 2:docker-common-1.13.1-102.git7f2769b.el7.centos.x86_64\n---> Package docker-compose.noarch 0:1.18.0-4.el7 will be installed\n--> Processing Dependency: python(abi) = 3.6 for package: docker-compose-1.18.0-4.el7.noarch\n--> Processing Dependency: python36-cached_property >= 1.2.0 for package: docker-compose-1.18.0-4.el7.noarch\n--> Processing Dependency: python36-docker >= 2.6.1 for package: docker-compose-1.18.0-4.el7.noarch\n--> Processing Dependency: python36-dockerpty >= 0.4.1 for package: docker-compose-1.18.0-4.el7.noarch\n--> Processing Dependency: python36-docopt >= 0.6.1 for package: docker-compose-1.18.0-4.el7.noarch\n--> Processing Dependency: python36-jsonschema >= 2.5.1 for package: docker-compose-1.18.0-4.el7.noarch\n--> Processing Dependency: python36-pysocks >= 1.5.6 for package: docker-compose-1.18.0-4.el7.noarch\n--> Processing Dependency: python36-requests >= 2.6.1 for package: docker-compose-1.18.0-4.el7.noarch\n--> Processing Dependency: python36-six >= 1.3.0 for package: docker-compose-1.18.0-4.el7.noarch\n--> Processing Dependency: python36-texttable >= 0.9.0 for package: docker-compose-1.18.0-4.el7.noarch\n--> Processing Dependency: python36-websocket-client >= 0.32.0 for package: docker-compose-1.18.0-4.el7.noarch\n--> Processing Dependency: python36-yaml >= 3.10 for package: docker-compose-1.18.0-4.el7.noarch\n--> Processing Dependency: /usr/bin/python3.6 for package: docker-compose-1.18.0-4.el7.noarch\n--> Processing Dependency: python36-setuptools for package: docker-compose-1.18.0-4.el7.noarch\n---> Package docker-distribution.x86_64 0:2.6.2-2.git48294d9.el7 will be installed\n---> Package docker-latest.x86_64 0:1.13.1-58.git87f2fab.el7.centos will be installed\n--> Processing Dependency: criu for package: docker-latest-1.13.1-58.git87f2fab.el7.centos.x86_64\n---> Package docker-latest-logrotate.x86_64 0:1.13.1-58.git87f2fab.el7.centos will be installed\n---> Package docker-latest-v1.10-migrator.x86_64 0:1.13.1-58.git87f2fab.el7.centos will be installed\n---> Package docker-logrotate.x86_64 2:1.13.1-102.git7f2769b.el7.centos will be installed\n---> Package docker-lvm-plugin.x86_64 2:1.13.1-102.git7f2769b.el7.centos will be installed\n---> Package docker-novolume-plugin.x86_64 2:1.13.1-102.git7f2769b.el7.centos will be installed\n---> Package docker-v1.10-migrator.x86_64 2:1.13.1-102.git7f2769b.el7.centos will be installed\n--> Running transaction check\n---> Package atomic-registries.x86_64 1:1.22.1-26.gitb507039.el7.centos will be installed\n--> Processing Dependency: python-pytoml for package: 1:atomic-registries-1.22.1-26.gitb507039.el7.centos.x86_64\n---> Package container-selinux.noarch 2:2.107-1.el7_6 will be installed\n--> Processing Dependency: selinux-policy-targeted >= 3.13.1-216.el7 for package: 2:container-selinux-2.107-1.el7_6.noarch\n--> Processing Dependency: selinux-policy-base >= 3.13.1-216.el7 for package: 2:container-selinux-2.107-1.el7_6.noarch\n--> Processing Dependency: selinux-policy >= 3.13.1-216.el7 for package: 2:container-selinux-2.107-1.el7_6.noarch\n---> Package container-storage-setup.noarch 0:0.11.0-2.git5eaf76c.el7 will be installed\n---> Package containers-common.x86_64 1:0.1.37-1.el7.centos will be installed\n---> Package criu.x86_64 0:3.9-5.el7 will be installed\n--> Processing Dependency: libprotobuf-c.so.1(LIBPROTOBUF_C_1.0.0)(64bit) for package: criu-3.9-5.el7.x86_64\n--> Processing Dependency: libprotobuf-c.so.1()(64bit) for package: criu-3.9-5.el7.x86_64\n--> Processing Dependency: libnet.so.1()(64bit) for package: criu-3.9-5.el7.x86_64\n---> Package oci-register-machine.x86_64 1:0-6.git2b44233.el7 will be installed\n---> Package oci-systemd-hook.x86_64 1:0.2.0-1.git05e6923.el7_6 will be installed\n---> Package oci-umount.x86_64 2:2.5-1.el7_6 will be installed\n---> Package python36.x86_64 0:3.6.8-1.el7 will be installed\n--> Processing Dependency: python36-libs(x86-64) = 3.6.8-1.el7 for package: python36-3.6.8-1.el7.x86_64\n--> Processing Dependency: libpython3.6m.so.1.0()(64bit) for package: python36-3.6.8-1.el7.x86_64\n---> Package python36-PyYAML.x86_64 0:3.12-1.el7 will be installed\n---> Package python36-cached_property.noarch 0:1.5.1-2.el7 will be installed\n---> Package python36-docker.noarch 0:2.6.1-3.el7 will be installed\n--> Processing Dependency: python36-docker-pycreds >= 0.2.1 for package: python36-docker-2.6.1-3.el7.noarch\n---> Package python36-dockerpty.noarch 0:0.4.1-10.el7 will be installed\n---> Package python36-docopt.noarch 0:0.6.2-8.el7 will be installed\n---> Package python36-jsonschema.noarch 0:2.5.1-4.el7 will be installed\n---> Package python36-pysocks.noarch 0:1.6.8-6.el7 will be installed\n---> Package python36-requests.noarch 0:2.12.5-3.el7 will be installed\n--> Processing Dependency: python36-urllib3 = 1.19.1 for package: python36-requests-2.12.5-3.el7.noarch\n--> Processing Dependency: python36-chardet for package: python36-requests-2.12.5-3.el7.noarch\n--> Processing Dependency: python36-idna for package: python36-requests-2.12.5-3.el7.noarch\n---> Package python36-setuptools.noarch 0:39.2.0-3.el7 will be installed\n---> Package python36-six.noarch 0:1.11.0-3.el7 will be installed\n---> Package python36-texttable.noarch 0:1.6.2-1.el7 will be installed\n---> Package python36-websocket-client.noarch 0:0.47.0-2.el7 will be installed\n---> Package subscription-manager-rhsm-certificates.x86_64 0:1.21.10-3.el7.centos will be installed\n--> Running transaction check\n---> Package libnet.x86_64 0:1.1.6-7.el7 will be installed\n---> Package protobuf-c.x86_64 0:1.0.2-3.el7 will be installed\n---> Package python-pytoml.noarch 0:0.1.14-1.git7dea353.el7 will be installed\n---> Package python36-chardet.noarch 0:2.3.0-6.el7 will be installed\n---> Package python36-docker-pycreds.noarch 0:0.2.1-2.el7 will be installed\n---> Package python36-idna.noarch 0:2.7-2.el7 will be installed\n---> Package python36-libs.x86_64 0:3.6.8-1.el7 will be installed\n---> Package python36-urllib3.noarch 0:1.19.1-5.el7 will be installed\n---> Package selinux-policy.noarch 0:3.13.1-192.el7 will be updated\n---> Package selinux-policy.noarch 0:3.13.1-229.el7_6.15 will be an update\n--> Processing Dependency: policycoreutils >= 2.5-24 for package: selinux-policy-3.13.1-229.el7_6.15.noarch\n--> Processing Dependency: libsemanage >= 2.5-13 for package: selinux-policy-3.13.1-229.el7_6.15.noarch\n---> Package selinux-policy-targeted.noarch 0:3.13.1-192.el7 will be updated\n---> Package selinux-policy-targeted.noarch 0:3.13.1-229.el7_6.15 will be an update\n--> Running transaction check\n---> Package libsemanage.x86_64 0:2.5-11.el7 will be updated\n--> Processing Dependency: libsemanage = 2.5-11.el7 for package: libsemanage-python-2.5-11.el7.x86_64\n---> Package libsemanage.x86_64 0:2.5-14.el7 will be an update\n--> Processing Dependency: libsepol >= 2.5-10 for package: libsemanage-2.5-14.el7.x86_64\n--> Processing Dependency: libselinux >= 2.5-14 for package: libsemanage-2.5-14.el7.x86_64\n---> Package policycoreutils.x86_64 0:2.5-22.el7 will be updated\n--> Processing Dependency: policycoreutils = 2.5-22.el7 for package: policycoreutils-python-2.5-22.el7.x86_64\n---> Package policycoreutils.x86_64 0:2.5-29.el7_6.1 will be an update\n--> Processing Dependency: libselinux-utils >= 2.5-14 for package: policycoreutils-2.5-29.el7_6.1.x86_64\n--> Running transaction check\n---> Package libselinux.x86_64 0:2.5-12.el7 will be updated\n--> Processing Dependency: libselinux(x86-64) = 2.5-12.el7 for package: libselinux-python-2.5-12.el7.x86_64\n---> Package libselinux.x86_64 0:2.5-14.1.el7 will be an update\n---> Package libselinux-utils.x86_64 0:2.5-12.el7 will be updated\n---> Package libselinux-utils.x86_64 0:2.5-14.1.el7 will be an update\n---> Package libsemanage-python.x86_64 0:2.5-11.el7 will be updated\n---> Package libsemanage-python.x86_64 0:2.5-14.el7 will be an update\n---> Package libsepol.x86_64 0:2.5-8.1.el7 will be updated\n---> Package libsepol.x86_64 0:2.5-10.el7 will be an update\n---> Package policycoreutils-python.x86_64 0:2.5-22.el7 will be updated\n---> Package policycoreutils-python.x86_64 0:2.5-29.el7_6.1 will be an update\n--> Processing Dependency: setools-libs >= 3.3.8-4 for package: policycoreutils-python-2.5-29.el7_6.1.x86_64\n--> Running transaction check\n---> Package libselinux-python.x86_64 0:2.5-12.el7 will be updated\n---> Package libselinux-python.x86_64 0:2.5-14.1.el7 will be an update\n---> Package setools-libs.x86_64 0:3.3.8-2.el7 will be updated\n---> Package setools-libs.x86_64 0:3.3.8-4.el7 will be an update\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package                Arch   Version                            Repository\n                                                                           Size\n================================================================================\nInstalling:\n docker                 x86_64 2:1.13.1-102.git7f2769b.el7.centos extras   18 M\n docker-client          x86_64 2:1.13.1-102.git7f2769b.el7.centos extras  3.9 M\n docker-client-latest   x86_64 1.13.1-58.git87f2fab.el7.centos    extras  3.8 M\n docker-common          x86_64 2:1.13.1-102.git7f2769b.el7.centos extras   97 k\n docker-compose         noarch 1.18.0-4.el7                       epel    222 k\n docker-distribution    x86_64 2.6.2-2.git48294d9.el7             extras  3.5 M\n docker-latest          x86_64 1.13.1-58.git87f2fab.el7.centos    extras   16 M\n docker-latest-logrotate\n                        x86_64 1.13.1-58.git87f2fab.el7.centos    extras   73 k\n docker-latest-v1.10-migrator\n                        x86_64 1.13.1-58.git87f2fab.el7.centos    extras  1.1 M\n docker-logrotate       x86_64 2:1.13.1-102.git7f2769b.el7.centos extras   95 k\n docker-lvm-plugin      x86_64 2:1.13.1-102.git7f2769b.el7.centos extras  1.9 M\n docker-novolume-plugin x86_64 2:1.13.1-102.git7f2769b.el7.centos extras  1.9 M\n docker-v1.10-migrator  x86_64 2:1.13.1-102.git7f2769b.el7.centos extras  2.7 M\nInstalling for dependencies:\n atomic-registries      x86_64 1:1.22.1-26.gitb507039.el7.centos  extras   35 k\n container-selinux      noarch 2:2.107-1.el7_6                    extras   39 k\n container-storage-setup\n                        noarch 0.11.0-2.git5eaf76c.el7            extras   35 k\n containers-common      x86_64 1:0.1.37-1.el7.centos              extras   21 k\n criu                   x86_64 3.9-5.el7                          base    432 k\n libnet                 x86_64 1.1.6-7.el7                        base     59 k\n oci-register-machine   x86_64 1:0-6.git2b44233.el7               extras  1.1 M\n oci-systemd-hook       x86_64 1:0.2.0-1.git05e6923.el7_6         extras   34 k\n oci-umount             x86_64 2:2.5-1.el7_6                      extras   33 k\n protobuf-c             x86_64 1.0.2-3.el7                        base     28 k\n python-pytoml          noarch 0.1.14-1.git7dea353.el7            extras   18 k\n python36               x86_64 3.6.8-1.el7                        epel     67 k\n python36-PyYAML        x86_64 3.12-1.el7                         epel    149 k\n python36-cached_property\n                        noarch 1.5.1-2.el7                        epel     18 k\n python36-chardet       noarch 2.3.0-6.el7                        epel    231 k\n python36-docker        noarch 2.6.1-3.el7                        epel    180 k\n python36-docker-pycreds\n                        noarch 0.2.1-2.el7                        epel     15 k\n python36-dockerpty     noarch 0.4.1-10.el7                       epel     29 k\n python36-docopt        noarch 0.6.2-8.el7                        epel     29 k\n python36-idna          noarch 2.7-2.el7                          epel     98 k\n python36-jsonschema    noarch 2.5.1-4.el7                        epel     76 k\n python36-libs          x86_64 3.6.8-1.el7                        epel    8.6 M\n python36-pysocks       noarch 1.6.8-6.el7                        epel     30 k\n python36-requests      noarch 2.12.5-3.el7                       epel    109 k\n python36-setuptools    noarch 39.2.0-3.el7                       epel    631 k\n python36-six           noarch 1.11.0-3.el7                       epel     33 k\n python36-texttable     noarch 1.6.2-1.el7                        epel     23 k\n python36-urllib3       noarch 1.19.1-5.el7                       epel    134 k\n python36-websocket-client\n                        noarch 0.47.0-2.el7                       epel     59 k\n subscription-manager-rhsm-certificates\n                        x86_64 1.21.10-3.el7.centos               updates 207 k\nUpdating for dependencies:\n libselinux             x86_64 2.5-14.1.el7                       base    162 k\n libselinux-python      x86_64 2.5-14.1.el7                       base    235 k\n libselinux-utils       x86_64 2.5-14.1.el7                       base    151 k\n libsemanage            x86_64 2.5-14.el7                         base    151 k\n libsemanage-python     x86_64 2.5-14.el7                         base    113 k\n libsepol               x86_64 2.5-10.el7                         base    297 k\n policycoreutils        x86_64 2.5-29.el7_6.1                     updates 916 k\n policycoreutils-python x86_64 2.5-29.el7_6.1                     updates 456 k\n selinux-policy         noarch 3.13.1-229.el7_6.15                updates 484 k\n selinux-policy-targeted\n                        noarch 3.13.1-229.el7_6.15                updates 6.9 M\n setools-libs           x86_64 3.3.8-4.el7                        base    620 k\n\nTransaction Summary\n================================================================================\nInstall  13 Packages (+30 Dependent packages)\nUpgrade              ( 11 Dependent packages)\n\nTotal size: 76 M\nTotal download size: 66 M\nDownloading packages:\n--------------------------------------------------------------------------------\nTotal                                              1.7 MB/s |  66 MB  00:38     \nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n  Installing : python36-libs-3.6.8-1.el7.x86_64                            1/65 \n  Installing : python36-3.6.8-1.el7.x86_64                                 2/65 \n  Installing : python36-six-1.11.0-3.el7.noarch                            3/65 \n  Updating   : libsepol-2.5-10.el7.x86_64                                  4/65 \n  Updating   : libselinux-2.5-14.1.el7.x86_64                              5/65 \n  Updating   : libsemanage-2.5-14.el7.x86_64                               6/65 \n  Updating   : libselinux-utils-2.5-14.1.el7.x86_64                        7/65 \n  Updating   : policycoreutils-2.5-29.el7_6.1.x86_64                       8/65 \n  Updating   : selinux-policy-3.13.1-229.el7_6.15.noarch                   9/65 \n  Installing : python36-websocket-client-0.47.0-2.el7.noarch              10/65 \n  Installing : python36-pysocks-1.6.8-6.el7.noarch                        11/65 \n  Installing : python36-urllib3-1.19.1-5.el7.noarch                       12/65 \n  Updating   : selinux-policy-targeted-3.13.1-229.el7_6.15.noarch         13/65 \n  Updating   : libsemanage-python-2.5-14.el7.x86_64                       14/65 \n  Installing : 1:oci-systemd-hook-0.2.0-1.git05e6923.el7_6.x86_64         15/65 \n  Updating   : libselinux-python-2.5-14.1.el7.x86_64                      16/65 \n  Updating   : setools-libs-3.3.8-4.el7.x86_64                            17/65 \n  Updating   : policycoreutils-python-2.5-29.el7_6.1.x86_64               18/65 \n  Installing : 2:container-selinux-2.107-1.el7_6.noarch                   19/65 \n  Installing : python36-dockerpty-0.4.1-10.el7.noarch                     20/65 \n  Installing : python36-docker-pycreds-0.2.1-2.el7.noarch                 21/65 \n  Installing : python36-chardet-2.3.0-6.el7.noarch                        22/65 \n  Installing : python36-jsonschema-2.5.1-4.el7.noarch                     23/65 \n  Installing : python36-idna-2.7-2.el7.noarch                             24/65 \n  Installing : python36-requests-2.12.5-3.el7.noarch                      25/65 \n  Installing : python36-docker-2.6.1-3.el7.noarch                         26/65 \n  Installing : python36-PyYAML-3.12-1.el7.x86_64                          27/65 \n  Installing : python36-setuptools-39.2.0-3.el7.noarch                    28/65 \n  Installing : python36-docopt-0.6.2-8.el7.noarch                         29/65 \n  Installing : python36-cached_property-1.5.1-2.el7.noarch                30/65 \n  Installing : python36-texttable-1.6.2-1.el7.noarch                      31/65 \n  Installing : 1:containers-common-0.1.37-1.el7.centos.x86_64             32/65 \n  Installing : libnet-1.1.6-7.el7.x86_64                                  33/65 \n  Installing : 1:oci-register-machine-0-6.git2b44233.el7.x86_64           34/65 \n  Installing : protobuf-c-1.0.2-3.el7.x86_64                              35/65 \n  Installing : criu-3.9-5.el7.x86_64                                      36/65 \n  Installing : python-pytoml-0.1.14-1.git7dea353.el7.noarch               37/65 \n  Installing : 1:atomic-registries-1.22.1-26.gitb507039.el7.centos.x86_   38/65 \n  Installing : 2:oci-umount-2.5-1.el7_6.x86_64                            39/65 \n  Installing : subscription-manager-rhsm-certificates-1.21.10-3.el7.cen   40/65 \n  Installing : container-storage-setup-0.11.0-2.git5eaf76c.el7.noarch     41/65 \n  Installing : 2:docker-common-1.13.1-102.git7f2769b.el7.centos.x86_64    42/65 \n  Installing : 2:docker-client-1.13.1-102.git7f2769b.el7.centos.x86_64    43/65 \n  Installing : 2:docker-1.13.1-102.git7f2769b.el7.centos.x86_64           44/65 \n  Installing : docker-client-latest-1.13.1-58.git87f2fab.el7.centos.x86   45/65 \n  Installing : docker-latest-1.13.1-58.git87f2fab.el7.centos.x86_64       46/65 \n  Installing : docker-latest-logrotate-1.13.1-58.git87f2fab.el7.centos.   47/65 \n  Installing : 2:docker-novolume-plugin-1.13.1-102.git7f2769b.el7.cento   48/65 \n  Installing : 2:docker-lvm-plugin-1.13.1-102.git7f2769b.el7.centos.x86   49/65 \n  Installing : 2:docker-logrotate-1.13.1-102.git7f2769b.el7.centos.x86_   50/65 \n  Installing : docker-compose-1.18.0-4.el7.noarch                         51/65 \n  Installing : docker-distribution-2.6.2-2.git48294d9.el7.x86_64          52/65 \n  Installing : 2:docker-v1.10-migrator-1.13.1-102.git7f2769b.el7.centos   53/65 \n  Installing : docker-latest-v1.10-migrator-1.13.1-58.git87f2fab.el7.ce   54/65 \n  Cleanup    : policycoreutils-python-2.5-22.el7.x86_64                   55/65 \n  Cleanup    : selinux-policy-targeted-3.13.1-192.el7.noarch              56/65 \n  Cleanup    : selinux-policy-3.13.1-192.el7.noarch                       57/65 \n  Cleanup    : policycoreutils-2.5-22.el7.x86_64                          58/65 \n  Cleanup    : libselinux-utils-2.5-12.el7.x86_64                         59/65 \n  Cleanup    : setools-libs-3.3.8-2.el7.x86_64                            60/65 \n  Cleanup    : libselinux-python-2.5-12.el7.x86_64                        61/65 \n  Cleanup    : libsemanage-python-2.5-11.el7.x86_64                       62/65 \n  Cleanup    : libsemanage-2.5-11.el7.x86_64                              63/65 \n  Cleanup    : libselinux-2.5-12.el7.x86_64                               64/65 \n  Cleanup    : libsepol-2.5-8.1.el7.x86_64                                65/65 \n  Verifying  : libsemanage-python-2.5-14.el7.x86_64                        1/65 \n  Verifying  : 2:docker-client-1.13.1-102.git7f2769b.el7.centos.x86_64     2/65 \n  Verifying  : python36-docker-2.6.1-3.el7.noarch                          3/65 \n  Verifying  : python36-chardet-2.3.0-6.el7.noarch                         4/65 \n  Verifying  : python36-3.6.8-1.el7.x86_64                                 5/65 \n  Verifying  : docker-compose-1.18.0-4.el7.noarch                          6/65 \n  Verifying  : container-storage-setup-0.11.0-2.git5eaf76c.el7.noarch      7/65 \n  Verifying  : python36-dockerpty-0.4.1-10.el7.noarch                      8/65 \n  Verifying  : python36-urllib3-1.19.1-5.el7.noarch                        9/65 \n  Verifying  : 2:docker-novolume-plugin-1.13.1-102.git7f2769b.el7.cento   10/65 \n  Verifying  : policycoreutils-2.5-29.el7_6.1.x86_64                      11/65 \n  Verifying  : subscription-manager-rhsm-certificates-1.21.10-3.el7.cen   12/65 \n  Verifying  : docker-client-latest-1.13.1-58.git87f2fab.el7.centos.x86   13/65 \n  Verifying  : python36-jsonschema-2.5.1-4.el7.noarch                     14/65 \n  Verifying  : python36-idna-2.7-2.el7.noarch                             15/65 \n  Verifying  : 2:oci-umount-2.5-1.el7_6.x86_64                            16/65 \n  Verifying  : 1:atomic-registries-1.22.1-26.gitb507039.el7.centos.x86_   17/65 \n  Verifying  : 2:docker-common-1.13.1-102.git7f2769b.el7.centos.x86_64    18/65 \n  Verifying  : docker-latest-logrotate-1.13.1-58.git87f2fab.el7.centos.   19/65 \n  Verifying  : python-pytoml-0.1.14-1.git7dea353.el7.noarch               20/65 \n  Verifying  : python36-six-1.11.0-3.el7.noarch                           21/65 \n  Verifying  : docker-latest-1.13.1-58.git87f2fab.el7.centos.x86_64       22/65 \n  Verifying  : python36-PyYAML-3.12-1.el7.x86_64                          23/65 \n  Verifying  : protobuf-c-1.0.2-3.el7.x86_64                              24/65 \n  Verifying  : 2:docker-lvm-plugin-1.13.1-102.git7f2769b.el7.centos.x86   25/65 \n  Verifying  : python36-setuptools-39.2.0-3.el7.noarch                    26/65 \n  Verifying  : policycoreutils-python-2.5-29.el7_6.1.x86_64               27/65 \n  Verifying  : python36-pysocks-1.6.8-6.el7.noarch                        28/65 \n  Verifying  : criu-3.9-5.el7.x86_64                                      29/65 \n  Verifying  : 1:oci-systemd-hook-0.2.0-1.git05e6923.el7_6.x86_64         30/65 \n  Verifying  : libsemanage-2.5-14.el7.x86_64                              31/65 \n  Verifying  : 1:oci-register-machine-0-6.git2b44233.el7.x86_64           32/65 \n  Verifying  : libsepol-2.5-10.el7.x86_64                                 33/65 \n  Verifying  : docker-latest-v1.10-migrator-1.13.1-58.git87f2fab.el7.ce   34/65 \n  Verifying  : python36-docopt-0.6.2-8.el7.noarch                         35/65 \n  Verifying  : python36-cached_property-1.5.1-2.el7.noarch                36/65 \n  Verifying  : 2:docker-1.13.1-102.git7f2769b.el7.centos.x86_64           37/65 \n  Verifying  : libselinux-python-2.5-14.1.el7.x86_64                      38/65 \n  Verifying  : selinux-policy-targeted-3.13.1-229.el7_6.15.noarch         39/65 \n  Verifying  : libnet-1.1.6-7.el7.x86_64                                  40/65 \n  Verifying  : 2:docker-logrotate-1.13.1-102.git7f2769b.el7.centos.x86_   41/65 \n  Verifying  : python36-texttable-1.6.2-1.el7.noarch                      42/65 \n  Verifying  : libselinux-utils-2.5-14.1.el7.x86_64                       43/65 \n  Verifying  : python36-docker-pycreds-0.2.1-2.el7.noarch                 44/65 \n  Verifying  : selinux-policy-3.13.1-229.el7_6.15.noarch                  45/65 \n  Verifying  : 2:docker-v1.10-migrator-1.13.1-102.git7f2769b.el7.centos   46/65 \n  Verifying  : 1:containers-common-0.1.37-1.el7.centos.x86_64             47/65 \n  Verifying  : 2:container-selinux-2.107-1.el7_6.noarch                   48/65 \n  Verifying  : python36-websocket-client-0.47.0-2.el7.noarch              49/65 \n  Verifying  : docker-distribution-2.6.2-2.git48294d9.el7.x86_64          50/65 \n  Verifying  : python36-requests-2.12.5-3.el7.noarch                      51/65 \n  Verifying  : python36-libs-3.6.8-1.el7.x86_64                           52/65 \n  Verifying  : setools-libs-3.3.8-4.el7.x86_64                            53/65 \n  Verifying  : libselinux-2.5-14.1.el7.x86_64                             54/65 \n  Verifying  : libsemanage-python-2.5-11.el7.x86_64                       55/65 \n  Verifying  : libsemanage-2.5-11.el7.x86_64                              56/65 \n  Verifying  : libselinux-python-2.5-12.el7.x86_64                        57/65 \n  Verifying  : setools-libs-3.3.8-2.el7.x86_64                            58/65 \n  Verifying  : libselinux-utils-2.5-12.el7.x86_64                         59/65 \n  Verifying  : libsepol-2.5-8.1.el7.x86_64                                60/65 \n  Verifying  : policycoreutils-python-2.5-22.el7.x86_64                   61/65 \n  Verifying  : selinux-policy-targeted-3.13.1-192.el7.noarch              62/65 \n  Verifying  : selinux-policy-3.13.1-192.el7.noarch                       63/65 \n  Verifying  : libselinux-2.5-12.el7.x86_64                               64/65 \n  Verifying  : policycoreutils-2.5-22.el7.x86_64                          65/65 \n\nInstalled:\n  docker.x86_64 2:1.13.1-102.git7f2769b.el7.centos                              \n  docker-client.x86_64 2:1.13.1-102.git7f2769b.el7.centos                       \n  docker-client-latest.x86_64 0:1.13.1-58.git87f2fab.el7.centos                 \n  docker-common.x86_64 2:1.13.1-102.git7f2769b.el7.centos                       \n  docker-compose.noarch 0:1.18.0-4.el7                                          \n  docker-distribution.x86_64 0:2.6.2-2.git48294d9.el7                           \n  docker-latest.x86_64 0:1.13.1-58.git87f2fab.el7.centos                        \n  docker-latest-logrotate.x86_64 0:1.13.1-58.git87f2fab.el7.centos              \n  docker-latest-v1.10-migrator.x86_64 0:1.13.1-58.git87f2fab.el7.centos         \n  docker-logrotate.x86_64 2:1.13.1-102.git7f2769b.el7.centos                    \n  docker-lvm-plugin.x86_64 2:1.13.1-102.git7f2769b.el7.centos                   \n  docker-novolume-plugin.x86_64 2:1.13.1-102.git7f2769b.el7.centos              \n  docker-v1.10-migrator.x86_64 2:1.13.1-102.git7f2769b.el7.centos               \n\nDependency Installed:\n  atomic-registries.x86_64 1:1.22.1-26.gitb507039.el7.centos                    \n  container-selinux.noarch 2:2.107-1.el7_6                                      \n  container-storage-setup.noarch 0:0.11.0-2.git5eaf76c.el7                      \n  containers-common.x86_64 1:0.1.37-1.el7.centos                                \n  criu.x86_64 0:3.9-5.el7                                                       \n  libnet.x86_64 0:1.1.6-7.el7                                                   \n  oci-register-machine.x86_64 1:0-6.git2b44233.el7                              \n  oci-systemd-hook.x86_64 1:0.2.0-1.git05e6923.el7_6                            \n  oci-umount.x86_64 2:2.5-1.el7_6                                               \n  protobuf-c.x86_64 0:1.0.2-3.el7                                               \n  python-pytoml.noarch 0:0.1.14-1.git7dea353.el7                                \n  python36.x86_64 0:3.6.8-1.el7                                                 \n  python36-PyYAML.x86_64 0:3.12-1.el7                                           \n  python36-cached_property.noarch 0:1.5.1-2.el7                                 \n  python36-chardet.noarch 0:2.3.0-6.el7                                         \n  python36-docker.noarch 0:2.6.1-3.el7                                          \n  python36-docker-pycreds.noarch 0:0.2.1-2.el7                                  \n  python36-dockerpty.noarch 0:0.4.1-10.el7                                      \n  python36-docopt.noarch 0:0.6.2-8.el7                                          \n  python36-idna.noarch 0:2.7-2.el7                                              \n  python36-jsonschema.noarch 0:2.5.1-4.el7                                      \n  python36-libs.x86_64 0:3.6.8-1.el7                                            \n  python36-pysocks.noarch 0:1.6.8-6.el7                                         \n  python36-requests.noarch 0:2.12.5-3.el7                                       \n  python36-setuptools.noarch 0:39.2.0-3.el7                                     \n  python36-six.noarch 0:1.11.0-3.el7                                            \n  python36-texttable.noarch 0:1.6.2-1.el7                                       \n  python36-urllib3.noarch 0:1.19.1-5.el7                                        \n  python36-websocket-client.noarch 0:0.47.0-2.el7                               \n  subscription-manager-rhsm-certificates.x86_64 0:1.21.10-3.el7.centos          \n\nDependency Updated:\n  libselinux.x86_64 0:2.5-14.1.el7                                              \n  libselinux-python.x86_64 0:2.5-14.1.el7                                       \n  libselinux-utils.x86_64 0:2.5-14.1.el7                                        \n  libsemanage.x86_64 0:2.5-14.el7                                               \n  libsemanage-python.x86_64 0:2.5-14.el7                                        \n  libsepol.x86_64 0:2.5-10.el7                                                  \n  policycoreutils.x86_64 0:2.5-29.el7_6.1                                       \n  policycoreutils-python.x86_64 0:2.5-29.el7_6.1                                \n  selinux-policy.noarch 0:3.13.1-229.el7_6.15                                   \n  selinux-policy-targeted.noarch 0:3.13.1-229.el7_6.15                          \n  setools-libs.x86_64 0:3.3.8-4.el7                                             \n\nComplete!\n"
    ]
}
[root@localhost ~]# rpm -qa | grep docker
docker-client-1.13.1-102.git7f2769b.el7.centos.x86_64
docker-compose-1.18.0-4.el7.noarch
docker-novolume-plugin-1.13.1-102.git7f2769b.el7.centos.x86_64
python36-docker-pycreds-0.2.1-2.el7.noarch
docker-client-latest-1.13.1-58.git87f2fab.el7.centos.x86_64
docker-lvm-plugin-1.13.1-102.git7f2769b.el7.centos.x86_64
docker-v1.10-migrator-1.13.1-102.git7f2769b.el7.centos.x86_64
python36-docker-2.6.1-3.el7.noarch
docker-common-1.13.1-102.git7f2769b.el7.centos.x86_64
docker-latest-1.13.1-58.git87f2fab.el7.centos.x86_64
docker-logrotate-1.13.1-102.git7f2769b.el7.centos.x86_64
docker-latest-v1.10-migrator-1.13.1-58.git87f2fab.el7.centos.x86_64
docker-latest-logrotate-1.13.1-58.git87f2fab.el7.centos.x86_64
python36-dockerpty-0.4.1-10.el7.noarch
docker-1.13.1-102.git7f2769b.el7.centos.x86_64
docker-distribution-2.6.2-2.git48294d9.el7.x86_64

[root@localhost ~]# ansible localhost -m service  -a "name=docker  state=stopped"
localhost | SUCCESS => {
    "changed": false,
    "name": "docker",
    "state": "stopped",
    "status": {
        "ActiveEnterTimestampMonotonic": "0",
        "ActiveExitTimestampMonotonic": "0",
        "ActiveState": "inactive",
        "After": "basic.target network.target docker-storage-setup.service docker-novolume-plugin.service system.slice systemd-journald.socket",
        "AllowIsolate": "no",
        "AmbientCapabilities": "0",
        "AssertResult": "no",
        "AssertTimestampMonotonic": "0",
        "Before": "shutdown.target",
        "BlockIOAccounting": "no",
        "BlockIOWeight": "18446744073709551615",
        "CPUAccounting": "no",
        "CPUQuotaPerSecUSec": "infinity",
        "CPUSchedulingPolicy": "0",
        "CPUSchedulingPriority": "0",
        "CPUSchedulingResetOnFork": "no",
        "CPUShares": "18446744073709551615",
        "CanIsolate": "no",
        "CanReload": "yes",
        "CanStart": "yes",
        "CanStop": "yes",
        "CapabilityBoundingSet": "18446744073709551615",
        "ConditionResult": "no",
        "ConditionTimestampMonotonic": "0",
        "Conflicts": "shutdown.target",
        "ControlPID": "0",
        "DefaultDependencies": "yes",
        "Delegate": "no",
        "Description": "Docker Application Container Engine",
        "DevicePolicy": "auto",
        "Documentation": "http://docs.docker.com",
        "Environment": "GOTRACEBACK=crash DOCKER_HTTP_HOST_COMPAT=1 PATH=/usr/libexec/docker:/usr/bin:/usr/sbin",
        "EnvironmentFile": "/etc/sysconfig/docker-network (ignore_errors=yes)",
        "ExecMainCode": "0",
        "ExecMainExitTimestampMonotonic": "0",
        "ExecMainPID": "0",
        "ExecMainStartTimestampMonotonic": "0",
        "ExecMainStatus": "0",
        "ExecReload": "{ path=/bin/kill ; argv[]=/bin/kill -s HUP $MAINPID ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }",
        "ExecStart": "{ path=/usr/bin/dockerd-current ; argv[]=/usr/bin/dockerd-current --add-runtime docker-runc=/usr/libexec/docker/docker-runc-current --default-runtime=docker-runc --exec-opt native.cgroupdriver=systemd --userland-proxy-path=/usr/libexec/docker/docker-proxy-current --init-path=/usr/libexec/docker/docker-init-current --seccomp-profile=/etc/docker/seccomp.json $OPTIONS $DOCKER_STORAGE_OPTIONS $DOCKER_NETWORK_OPTIONS $ADD_REGISTRY $BLOCK_REGISTRY $INSECURE_REGISTRY $REGISTRIES ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }",
        "FailureAction": "none",
        "FileDescriptorStoreMax": "0",
        "FragmentPath": "/usr/lib/systemd/system/docker.service",
        "GuessMainPID": "yes",
        "IOScheduling": "0",
        "Id": "docker.service",
        "IgnoreOnIsolate": "no",
        "IgnoreOnSnapshot": "no",
        "IgnoreSIGPIPE": "yes",
        "InactiveEnterTimestampMonotonic": "0",
        "InactiveExitTimestampMonotonic": "0",
        "JobTimeoutAction": "none",
        "JobTimeoutUSec": "0",
        "KillMode": "process",
        "KillSignal": "15",
        "LimitAS": "18446744073709551615",
        "LimitCORE": "18446744073709551615",
        "LimitCPU": "18446744073709551615",
        "LimitDATA": "18446744073709551615",
        "LimitFSIZE": "18446744073709551615",
        "LimitLOCKS": "18446744073709551615",
        "LimitMEMLOCK": "65536",
        "LimitMSGQUEUE": "819200",
        "LimitNICE": "0",
        "LimitNOFILE": "1048576",
        "LimitNPROC": "1048576",
        "LimitRSS": "18446744073709551615",
        "LimitRTPRIO": "0",
        "LimitRTTIME": "18446744073709551615",
        "LimitSIGPENDING": "7152",
        "LimitSTACK": "18446744073709551615",
        "LoadState": "loaded",
        "MainPID": "0",
        "MemoryAccounting": "no",
        "MemoryCurrent": "18446744073709551615",
        "MemoryLimit": "18446744073709551615",
        "MountFlags": "0",
        "Names": "docker.service",
        "NeedDaemonReload": "no",
        "Nice": "0",
        "NoNewPrivileges": "no",
        "NonBlocking": "no",
        "NotifyAccess": "main",
        "OOMScoreAdjust": "0",
        "OnFailureJobMode": "replace",
        "PermissionsStartOnly": "no",
        "PrivateDevices": "no",
        "PrivateNetwork": "no",
        "PrivateTmp": "no",
        "ProtectHome": "no",
        "ProtectSystem": "no",
        "RefuseManualStart": "no",
        "RefuseManualStop": "no",
        "RemainAfterExit": "no",
        "RequiredBy": "docker-novolume-plugin.service docker-cleanup.service",
        "Requires": "docker-cleanup.timer basic.target",
        "Restart": "on-abnormal",
        "RestartUSec": "100ms",
        "Result": "success",
        "RootDirectoryStartOnly": "no",
        "RuntimeDirectoryMode": "0755",
        "SameProcessGroup": "no",
        "SecureBits": "0",
        "SendSIGHUP": "no",
        "SendSIGKILL": "yes",
        "Slice": "system.slice",
        "StandardError": "inherit",
        "StandardInput": "null",
        "StandardOutput": "journal",
        "StartLimitAction": "none",
        "StartLimitBurst": "5",
        "StartLimitInterval": "10000000",
        "StartupBlockIOWeight": "18446744073709551615",
        "StartupCPUShares": "18446744073709551615",
        "StatusErrno": "0",
        "StopWhenUnneeded": "no",
        "SubState": "dead",
        "SyslogLevelPrefix": "yes",
        "SyslogPriority": "30",
        "SystemCallErrorNumber": "0",
        "TTYReset": "no",
        "TTYVHangup": "no",
        "TTYVTDisallocate": "no",
        "TasksAccounting": "no",
        "TasksCurrent": "18446744073709551615",
        "TasksMax": "18446744073709551615",
        "TimeoutStartUSec": "0",
        "TimeoutStopUSec": "1min 30s",
        "TimerSlackNSec": "50000",
        "Transient": "no",
        "Type": "notify",
        "UMask": "0022",
        "UnitFilePreset": "disabled",
        "UnitFileState": "disabled",
        "Wants": "system.slice docker-storage-setup.service",
        "WatchdogTimestampMonotonic": "0",
        "WatchdogUSec": "0"
    }
}
[root@localhost ~]# service docker status
Redirecting to /bin/systemctl status docker.service
● docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
   Active: inactive (dead)
     Docs: http://docs.docker.com
[root@localhost ~]# ansible localhost -m service  -a "name=docker  state=started"
localhost | SUCCESS => {
    "changed": true,
    "name": "docker",
    "state": "started",
    "status": {
        "ActiveEnterTimestampMonotonic": "0",
        "ActiveExitTimestampMonotonic": "0",
        "ActiveState": "inactive",
        "After": "basic.target network.target docker-storage-setup.service docker-novolume-plugin.service system.slice systemd-journald.socket",
        "AllowIsolate": "no",
        "AmbientCapabilities": "0",
        "AssertResult": "no",
        "AssertTimestampMonotonic": "0",
        "Before": "shutdown.target",
        "BlockIOAccounting": "no",
        "BlockIOWeight": "18446744073709551615",
        "CPUAccounting": "no",
        "CPUQuotaPerSecUSec": "infinity",
        "CPUSchedulingPolicy": "0",
        "CPUSchedulingPriority": "0",
        "CPUSchedulingResetOnFork": "no",
        "CPUShares": "18446744073709551615",
        "CanIsolate": "no",
        "CanReload": "yes",
        "CanStart": "yes",
        "CanStop": "yes",
        "CapabilityBoundingSet": "18446744073709551615",
        "ConditionResult": "no",
        "ConditionTimestampMonotonic": "0",
        "Conflicts": "shutdown.target",
        "ControlPID": "0",
        "DefaultDependencies": "yes",
        "Delegate": "no",
        "Description": "Docker Application Container Engine",
        "DevicePolicy": "auto",
        "Documentation": "http://docs.docker.com",
        "Environment": "GOTRACEBACK=crash DOCKER_HTTP_HOST_COMPAT=1 PATH=/usr/libexec/docker:/usr/bin:/usr/sbin",
        "EnvironmentFile": "/etc/sysconfig/docker-network (ignore_errors=yes)",
        "ExecMainCode": "0",
        "ExecMainExitTimestampMonotonic": "0",
        "ExecMainPID": "0",
        "ExecMainStartTimestampMonotonic": "0",
        "ExecMainStatus": "0",
        "ExecReload": "{ path=/bin/kill ; argv[]=/bin/kill -s HUP $MAINPID ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }",
        "ExecStart": "{ path=/usr/bin/dockerd-current ; argv[]=/usr/bin/dockerd-current --add-runtime docker-runc=/usr/libexec/docker/docker-runc-current --default-runtime=docker-runc --exec-opt native.cgroupdriver=systemd --userland-proxy-path=/usr/libexec/docker/docker-proxy-current --init-path=/usr/libexec/docker/docker-init-current --seccomp-profile=/etc/docker/seccomp.json $OPTIONS $DOCKER_STORAGE_OPTIONS $DOCKER_NETWORK_OPTIONS $ADD_REGISTRY $BLOCK_REGISTRY $INSECURE_REGISTRY $REGISTRIES ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }",
        "FailureAction": "none",
        "FileDescriptorStoreMax": "0",
        "FragmentPath": "/usr/lib/systemd/system/docker.service",
        "GuessMainPID": "yes",
        "IOScheduling": "0",
        "Id": "docker.service",
        "IgnoreOnIsolate": "no",
        "IgnoreOnSnapshot": "no",
        "IgnoreSIGPIPE": "yes",
        "InactiveEnterTimestampMonotonic": "0",
        "InactiveExitTimestampMonotonic": "0",
        "JobTimeoutAction": "none",
        "JobTimeoutUSec": "0",
        "KillMode": "process",
        "KillSignal": "15",
        "LimitAS": "18446744073709551615",
        "LimitCORE": "18446744073709551615",
        "LimitCPU": "18446744073709551615",
        "LimitDATA": "18446744073709551615",
        "LimitFSIZE": "18446744073709551615",
        "LimitLOCKS": "18446744073709551615",
        "LimitMEMLOCK": "65536",
        "LimitMSGQUEUE": "819200",
        "LimitNICE": "0",
        "LimitNOFILE": "1048576",
        "LimitNPROC": "1048576",
        "LimitRSS": "18446744073709551615",
        "LimitRTPRIO": "0",
        "LimitRTTIME": "18446744073709551615",
        "LimitSIGPENDING": "7152",
        "LimitSTACK": "18446744073709551615",
        "LoadState": "loaded",
        "MainPID": "0",
        "MemoryAccounting": "no",
        "MemoryCurrent": "18446744073709551615",
        "MemoryLimit": "18446744073709551615",
        "MountFlags": "0",
        "Names": "docker.service",
        "NeedDaemonReload": "no",
        "Nice": "0",
        "NoNewPrivileges": "no",
        "NonBlocking": "no",
        "NotifyAccess": "main",
        "OOMScoreAdjust": "0",
        "OnFailureJobMode": "replace",
        "PermissionsStartOnly": "no",
        "PrivateDevices": "no",
        "PrivateNetwork": "no",
        "PrivateTmp": "no",
        "ProtectHome": "no",
        "ProtectSystem": "no",
        "RefuseManualStart": "no",
        "RefuseManualStop": "no",
        "RemainAfterExit": "no",
        "RequiredBy": "docker-novolume-plugin.service docker-cleanup.service",
        "Requires": "docker-cleanup.timer basic.target",
        "Restart": "on-abnormal",
        "RestartUSec": "100ms",
        "Result": "success",
        "RootDirectoryStartOnly": "no",
        "RuntimeDirectoryMode": "0755",
        "SameProcessGroup": "no",
        "SecureBits": "0",
        "SendSIGHUP": "no",
        "SendSIGKILL": "yes",
        "Slice": "system.slice",
        "StandardError": "inherit",
        "StandardInput": "null",
        "StandardOutput": "journal",
        "StartLimitAction": "none",
        "StartLimitBurst": "5",
        "StartLimitInterval": "10000000",
        "StartupBlockIOWeight": "18446744073709551615",
        "StartupCPUShares": "18446744073709551615",
        "StatusErrno": "0",
        "StopWhenUnneeded": "no",
        "SubState": "dead",
        "SyslogLevelPrefix": "yes",
        "SyslogPriority": "30",
        "SystemCallErrorNumber": "0",
        "TTYReset": "no",
        "TTYVHangup": "no",
        "TTYVTDisallocate": "no",
        "TasksAccounting": "no",
        "TasksCurrent": "18446744073709551615",
        "TasksMax": "18446744073709551615",
        "TimeoutStartUSec": "0",
        "TimeoutStopUSec": "1min 30s",
        "TimerSlackNSec": "50000",
        "Transient": "no",
        "Type": "notify",
        "UMask": "0022",
        "UnitFilePreset": "disabled",
        "UnitFileState": "disabled",
        "Wants": "system.slice docker-storage-setup.service",
        "WatchdogTimestampMonotonic": "0",
        "WatchdogUSec": "0"
    }
}
[root@localhost ~]# service docker status
Redirecting to /bin/systemctl status docker.service
● docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
   Active: active (running) since Fri 2019-08-23 00:15:20 IST; 4s ago
     Docs: http://docs.docker.com
 Main PID: 10861 (dockerd-current)
    Tasks: 17
   CGroup: /system.slice/docker.service
           ├─10861 /usr/bin/dockerd-current --add-runtime docker-runc=/usr/libexec/d...
           └─10866 /usr/bin/docker-containerd-current -l unix:///var/run/docker/libc...

Aug 23 00:15:17 localhost.localdomain dockerd-current[10861]: time="2019-08-23T00:15...
Aug 23 00:15:19 localhost.localdomain dockerd-current[10861]: time="2019-08-23T00:15...
Aug 23 00:15:19 localhost.localdomain dockerd-current[10861]: time="2019-08-23T00:15...
Aug 23 00:15:19 localhost.localdomain dockerd-current[10861]: time="2019-08-23T00:15...
Aug 23 00:15:19 localhost.localdomain dockerd-current[10861]: time="2019-08-23T00:15...
Aug 23 00:15:20 localhost.localdomain dockerd-current[10861]: time="2019-08-23T00:15...
Aug 23 00:15:20 localhost.localdomain dockerd-current[10861]: time="2019-08-23T00:15...
Aug 23 00:15:20 localhost.localdomain dockerd-current[10861]: time="2019-08-23T00:15...
Aug 23 00:15:20 localhost.localdomain systemd[1]: Started Docker Application Contai....
Aug 23 00:15:20 localhost.localdomain dockerd-current[10861]: time="2019-08-23T00:15...
Hint: Some lines were ellipsized, use -l to show in full.
[root@localhost ~]#
[root@localhost ~]# ansible localhost -m yum -a "name=docker-python state=present"
localhost | SUCCESS => {
    "changed": true,
    "msg": "",
    "rc": 0,
    "results": [
        "Loaded plugins: fastestmirror, langpacks\nLoading mirror speeds from cached hostfile\n * base: centos.hbcse.tifr.res.in\n * epel: repos.del.extreme-ix.org\n * extras: centos.hbcse.tifr.res.in\n * updates: centos.hbcse.tifr.res.in\nResolving Dependencies\n--> Running transaction check\n---> Package python-docker-py.noarch 1:1.10.6-9.el7_6 will be installed\n--> Processing Dependency: python-websocket-client >= 0.32.0 for package: 1:python-docker-py-1.10.6-9.el7_6.noarch\n--> Processing Dependency: python-docker-pycreds for package: 1:python-docker-py-1.10.6-9.el7_6.noarch\n--> Running transaction check\n---> Package python-docker-pycreds.noarch 1:0.3.0-9.el7_6 will be installed\n---> Package python-websocket-client.noarch 0:0.56.0-3.git3c25814.el7 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package                   Arch     Version                      Repository\n                                                                           Size\n================================================================================\nInstalling:\n python-docker-py          noarch   1:1.10.6-9.el7_6             extras   102 k\nInstalling for dependencies:\n python-docker-pycreds     noarch   1:0.3.0-9.el7_6              extras    20 k\n python-websocket-client   noarch   0.56.0-3.git3c25814.el7      extras    66 k\n\nTransaction Summary\n================================================================================\nInstall  1 Package (+2 Dependent packages)\n\nTotal download size: 189 k\nInstalled size: 603 k\nDownloading packages:\n--------------------------------------------------------------------------------\nTotal                                               90 kB/s | 189 kB  00:02     \nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n  Installing : python-websocket-client-0.56.0-3.git3c25814.el7.noarch       1/3 \n  Installing : 1:python-docker-pycreds-0.3.0-9.el7_6.noarch                 2/3 \n  Installing : 1:python-docker-py-1.10.6-9.el7_6.noarch                     3/3 \n  Verifying  : 1:python-docker-pycreds-0.3.0-9.el7_6.noarch                 1/3 \n  Verifying  : 1:python-docker-py-1.10.6-9.el7_6.noarch                     2/3 \n  Verifying  : python-websocket-client-0.56.0-3.git3c25814.el7.noarch       3/3 \n\nInstalled:\n  python-docker-py.noarch 1:1.10.6-9.el7_6                                      \n\nDependency Installed:\n  python-docker-pycreds.noarch 1:0.3.0-9.el7_6                                  \n  python-websocket-client.noarch 0:0.56.0-3.git3c25814.el7                      \n\nComplete!\n"
    ]
}
[root@localhost ~]# 


Comments