ANSIBLE INSTALL UBUNTU
root@kiran-virtual-machine:~/chef-zero/playground/cookbooks# yum install ansible
There are no enabled repos.
Run "yum repolist all" to see the repos you have.
You can enable repos with yum-config-manager --enable <repo>
root@kiran-virtual-machine:~/chef-zero/playground/cookbooks# apt install ansible
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
python3-asn1crypto python3-bcrypt python3-crypto python3-cryptography python3-jinja2
python3-jmespath python3-kerberos python3-libcloud python3-lockfile
python3-markupsafe python3-netaddr python3-ntlm-auth python3-paramiko python3-pyasn1
python3-requests-kerberos python3-requests-ntlm python3-selinux python3-simplejson
python3-winrm python3-xmltodict
Suggested packages:
cowsay sshpass python-crypto-doc python-cryptography-doc
python3-cryptography-vectors python-jinja2-doc python-lockfile-doc ipython3
python-netaddr-docs python3-gssapi
The following NEW packages will be installed:
ansible python3-asn1crypto python3-bcrypt python3-crypto python3-cryptography
python3-jinja2 python3-jmespath python3-kerberos python3-libcloud python3-lockfile
python3-markupsafe python3-netaddr python3-ntlm-auth python3-paramiko python3-pyasn1
python3-requests-kerberos python3-requests-ntlm python3-selinux python3-simplejson
python3-winrm python3-xmltodict
0 upgraded, 21 newly installed, 0 to remove and 193 not upgraded.
Need to get 6,560 kB of archives.
After this operation, 57.6 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://in.archive.ubuntu.com/ubuntu disco/main amd64 python3-asn1crypto all 0.24.0-1 [72.8 kB]
Get:2 http://in.archive.ubuntu.com/ubuntu disco/main amd64 python3-cryptography amd64 2.3-1ubuntu2 [204 kB]
Err:3 http://in.archive.ubuntu.com/ubuntu disco/main amd64 python3-markupsafe amd64 1.1.0-1
500 Internal Server Error [IP: 103.123.234.254 80]
Get:4 http://in.archive.ubuntu.com/ubuntu disco-updates/main amd64 python3-jinja2 all 2.10-1ubuntu0.19.04.1 [95.4 kB]
Get:5 http://in.archive.ubuntu.com/ubuntu disco/main amd64 python3-bcrypt amd64 3.1.6-1 [30.1 kB]
Get:6 http://in.archive.ubuntu.com/ubuntu disco/main amd64 python3-pyasn1 all 0.4.2-3 [46.8 kB]
Get:7 http://in.archive.ubuntu.com/ubuntu disco/main amd64 python3-paramiko all 2.4.2-0.1ubuntu1 [118 kB]
Get:8 http://in.archive.ubuntu.com/ubuntu disco/main amd64 python3-crypto amd64 2.6.1-9build2 [236 kB]
Get:9 http://in.archive.ubuntu.com/ubuntu disco/main amd64 python3-netaddr all 0.7.19-1 [213 kB]
Get:10 http://in.archive.ubuntu.com/ubuntu disco-updates/universe amd64 ansible all 2.7.8+dfsg-1ubuntu0.19.04.1 [3,956 kB]
Get:11 http://in.archive.ubuntu.com/ubuntu disco/main amd64 python3-jmespath all 0.9.4-1 [18.6 kB]
Get:12 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 python3-kerberos amd64 1.1.14-1build2 [16.5 kB]
Get:13 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 python3-lockfile all 1:0.12.2-2 [14.7 kB]
Get:14 http://in.archive.ubuntu.com/ubuntu disco/main amd64 python3-simplejson amd64 3.16.0-1 [50.2 kB]
Get:15 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 python3-libcloud all 2.4.0-1 [1,268 kB]
Get:16 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 python3-ntlm-auth all 1.1.0-1 [19.6 kB]
Get:17 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 python3-requests-kerberos all 0.11.0-2 [10.1 kB]
Get:18 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 python3-requests-ntlm all 1.1.0-1 [6,004 B]
Get:19 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 python3-selinux amd64 2.8-1build2 [139 kB]
Get:20 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 python3-xmltodict all 0.11.0-2 [10.6 kB]
Get:21 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 python3-winrm all 0.3.0-2 [21.7 kB]
Fetched 6,546 kB in 14s (465 kB/s)
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/m/markupsafe/python3-markupsafe_1.1.0-1_amd64.deb 500 Internal Server Error [IP: 103.123.234.254 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
root@kiran-virtual-machine:~/chef-zero/playground/cookbooks# apt install ansible
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
python3-asn1crypto python3-bcrypt python3-crypto python3-cryptography python3-jinja2
python3-jmespath python3-kerberos python3-libcloud python3-lockfile
python3-markupsafe python3-netaddr python3-ntlm-auth python3-paramiko python3-pyasn1
python3-requests-kerberos python3-requests-ntlm python3-selinux python3-simplejson
python3-winrm python3-xmltodict
Suggested packages:
cowsay sshpass python-crypto-doc python-cryptography-doc
python3-cryptography-vectors python-jinja2-doc python-lockfile-doc ipython3
python-netaddr-docs python3-gssapi
The following NEW packages will be installed:
ansible python3-asn1crypto python3-bcrypt python3-crypto python3-cryptography
python3-jinja2 python3-jmespath python3-kerberos python3-libcloud python3-lockfile
python3-markupsafe python3-netaddr python3-ntlm-auth python3-paramiko python3-pyasn1
python3-requests-kerberos python3-requests-ntlm python3-selinux python3-simplejson
python3-winrm python3-xmltodict
0 upgraded, 21 newly installed, 0 to remove and 193 not upgraded.
Need to get 13.8 kB/6,560 kB of archives.
After this operation, 57.6 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Err:1 http://in.archive.ubuntu.com/ubuntu disco/main amd64 python3-markupsafe amd64 1.1.0-1
Temporary failure resolving 'in.archive.ubuntu.com'
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/m/markupsafe/python3-markupsafe_1.1.0-1_amd64.deb Temporary failure resolving 'in.archive.ubuntu.com'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
root@kiran-virtual-machine:~/chef-zero/playground/cookbooks# apt install ansible
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
python3-asn1crypto python3-bcrypt python3-crypto python3-cryptography python3-jinja2
python3-jmespath python3-kerberos python3-libcloud python3-lockfile
python3-markupsafe python3-netaddr python3-ntlm-auth python3-paramiko python3-pyasn1
python3-requests-kerberos python3-requests-ntlm python3-selinux python3-simplejson
python3-winrm python3-xmltodict
Suggested packages:
cowsay sshpass python-crypto-doc python-cryptography-doc
python3-cryptography-vectors python-jinja2-doc python-lockfile-doc ipython3
python-netaddr-docs python3-gssapi
The following NEW packages will be installed:
ansible python3-asn1crypto python3-bcrypt python3-crypto python3-cryptography
python3-jinja2 python3-jmespath python3-kerberos python3-libcloud python3-lockfile
python3-markupsafe python3-netaddr python3-ntlm-auth python3-paramiko python3-pyasn1
python3-requests-kerberos python3-requests-ntlm python3-selinux python3-simplejson
python3-winrm python3-xmltodict
0 upgraded, 21 newly installed, 0 to remove and 193 not upgraded.
Need to get 13.8 kB/6,560 kB of archives.
After this operation, 57.6 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://in.archive.ubuntu.com/ubuntu disco/main amd64 python3-markupsafe amd64 1.1.0-1 [13.8 kB]
Fetched 13.8 kB in 0s (120 kB/s)
Selecting previously unselected package python3-asn1crypto.
(Reading database ... 244543 files and directories currently installed.)
Preparing to unpack .../00-python3-asn1crypto_0.24.0-1_all.deb ...
Unpacking python3-asn1crypto (0.24.0-1) ...
Selecting previously unselected package python3-cryptography.
Preparing to unpack .../01-python3-cryptography_2.3-1ubuntu2_amd64.deb ...
Unpacking python3-cryptography (2.3-1ubuntu2) ...
Selecting previously unselected package python3-markupsafe.
Preparing to unpack .../02-python3-markupsafe_1.1.0-1_amd64.deb ...
Unpacking python3-markupsafe (1.1.0-1) ...
Selecting previously unselected package python3-jinja2.
Preparing to unpack .../03-python3-jinja2_2.10-1ubuntu0.19.04.1_all.deb ...
Unpacking python3-jinja2 (2.10-1ubuntu0.19.04.1) ...
Selecting previously unselected package python3-bcrypt.
Preparing to unpack .../04-python3-bcrypt_3.1.6-1_amd64.deb ...
Unpacking python3-bcrypt (3.1.6-1) ...
Selecting previously unselected package python3-pyasn1.
Preparing to unpack .../05-python3-pyasn1_0.4.2-3_all.deb ...
Unpacking python3-pyasn1 (0.4.2-3) ...
Selecting previously unselected package python3-paramiko.
Preparing to unpack .../06-python3-paramiko_2.4.2-0.1ubuntu1_all.deb ...
Unpacking python3-paramiko (2.4.2-0.1ubuntu1) ...
Selecting previously unselected package python3-crypto.
Preparing to unpack .../07-python3-crypto_2.6.1-9build2_amd64.deb ...
Unpacking python3-crypto (2.6.1-9build2) ...
Selecting previously unselected package python3-netaddr.
Preparing to unpack .../08-python3-netaddr_0.7.19-1_all.deb ...
Unpacking python3-netaddr (0.7.19-1) ...
Selecting previously unselected package ansible.
Preparing to unpack .../09-ansible_2.7.8+dfsg-1ubuntu0.19.04.1_all.deb ...
Unpacking ansible (2.7.8+dfsg-1ubuntu0.19.04.1) ...
Selecting previously unselected package python3-jmespath.
Preparing to unpack .../10-python3-jmespath_0.9.4-1_all.deb ...
Unpacking python3-jmespath (0.9.4-1) ...
Selecting previously unselected package python3-kerberos.
Preparing to unpack .../11-python3-kerberos_1.1.14-1build2_amd64.deb ...
Unpacking python3-kerberos (1.1.14-1build2) ...
Selecting previously unselected package python3-lockfile.
Preparing to unpack .../12-python3-lockfile_1%3a0.12.2-2_all.deb ...
Unpacking python3-lockfile (1:0.12.2-2) ...
Selecting previously unselected package python3-simplejson.
Preparing to unpack .../13-python3-simplejson_3.16.0-1_amd64.deb ...
Unpacking python3-simplejson (3.16.0-1) ...
Selecting previously unselected package python3-libcloud.
Preparing to unpack .../14-python3-libcloud_2.4.0-1_all.deb ...
Unpacking python3-libcloud (2.4.0-1) ...
Selecting previously unselected package python3-ntlm-auth.
Preparing to unpack .../15-python3-ntlm-auth_1.1.0-1_all.deb ...
Unpacking python3-ntlm-auth (1.1.0-1) ...
Selecting previously unselected package python3-requests-kerberos.
Preparing to unpack .../16-python3-requests-kerberos_0.11.0-2_all.deb ...
Unpacking python3-requests-kerberos (0.11.0-2) ...
Selecting previously unselected package python3-requests-ntlm.
Preparing to unpack .../17-python3-requests-ntlm_1.1.0-1_all.deb ...
Unpacking python3-requests-ntlm (1.1.0-1) ...
Selecting previously unselected package python3-selinux.
Preparing to unpack .../18-python3-selinux_2.8-1build2_amd64.deb ...
Unpacking python3-selinux (2.8-1build2) ...
Selecting previously unselected package python3-xmltodict.
Preparing to unpack .../19-python3-xmltodict_0.11.0-2_all.deb ...
Unpacking python3-xmltodict (0.11.0-2) ...
Selecting previously unselected package python3-winrm.
Preparing to unpack .../20-python3-winrm_0.3.0-2_all.deb ...
Unpacking python3-winrm (0.3.0-2) ...
Setting up python3-lockfile (1:0.12.2-2) ...
Setting up python3-ntlm-auth (1.1.0-1) ...
Setting up python3-bcrypt (3.1.6-1) ...
Setting up python3-kerberos (1.1.14-1build2) ...
Setting up python3-markupsafe (1.1.0-1) ...
Setting up python3-simplejson (3.16.0-1) ...
Setting up python3-xmltodict (0.11.0-2) ...
Setting up python3-jinja2 (2.10-1ubuntu0.19.04.1) ...
Setting up python3-jmespath (0.9.4-1) ...
Setting up python3-requests-kerberos (0.11.0-2) ...
Setting up python3-netaddr (0.7.19-1) ...
Setting up python3-pyasn1 (0.4.2-3) ...
Setting up python3-selinux (2.8-1build2) ...
Setting up python3-crypto (2.6.1-9build2) ...
Setting up python3-asn1crypto (0.24.0-1) ...
Setting up python3-libcloud (2.4.0-1) ...
Setting up python3-cryptography (2.3-1ubuntu2) ...
Setting up python3-paramiko (2.4.2-0.1ubuntu1) ...
Setting up python3-requests-ntlm (1.1.0-1) ...
Setting up python3-winrm (0.3.0-2) ...
Setting up ansible (2.7.8+dfsg-1ubuntu0.19.04.1) ...
Processing triggers for man-db (2.8.5-2) ...
root@kiran-virtual-machine:~/chef-zero/playground/cookbooks# apt install ansible-tower
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package ansible-tower
root@kiran-virtual-machine:~/chef-zero/playground/cookbooks# apt install ansible-*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'ansible-tower-cli' for glob 'ansible-*'
Note, selecting 'ansible-tower-cli-doc' for glob 'ansible-*'
Note, selecting 'ansible-doc' for glob 'ansible-*'
Note, selecting 'ansible-lint' for glob 'ansible-*'
The following additional packages will be installed:
fonts-mathjax fonts-roboto-fontface fonts-roboto-slab libjs-mathjax libjs-modernizr
python-six python-yaml python3-click python3-colorama python3-distutils
python3-lib2to3 python3-tower-cli sphinx-rtd-theme-common
Suggested packages:
fonts-roboto fonts-mathjax-extras fonts-stix libjs-mathjax-doc
The following NEW packages will be installed:
ansible-doc ansible-lint ansible-tower-cli ansible-tower-cli-doc fonts-mathjax
fonts-roboto-fontface fonts-roboto-slab libjs-mathjax libjs-modernizr python-six
python-yaml python3-click python3-colorama python3-distutils python3-lib2to3
python3-tower-cli sphinx-rtd-theme-common
0 upgraded, 17 newly installed, 0 to remove and 193 not upgraded.
Need to get 17.3 MB of archives.
After this operation, 169 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://in.archive.ubuntu.com/ubuntu disco/main amd64 fonts-roboto-slab all 1.100263+20170512-1 [207 kB]
Get:2 http://in.archive.ubuntu.com/ubuntu disco/main amd64 libjs-modernizr all 2.6.2+ds1-1ubuntu1 [46.7 kB]
Get:3 http://in.archive.ubuntu.com/ubuntu disco/main amd64 sphinx-rtd-theme-common all 0.4.3+dfsg-1 [1,019 kB]
Get:4 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 fonts-roboto-fontface all 0.5.0-2 [3,979 kB]
Get:5 http://in.archive.ubuntu.com/ubuntu disco-updates/universe amd64 ansible-doc all 2.7.8+dfsg-1ubuntu0.19.04.1 [3,432 kB]
Get:6 http://in.archive.ubuntu.com/ubuntu disco/main amd64 python-six all 1.12.0-1 [11.6 kB]
Err:7 http://in.archive.ubuntu.com/ubuntu disco/main amd64 python-yaml amd64 3.13-2
500 Internal Server Error [IP: 103.123.234.254 80]
Ign:8 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 ansible-lint all 3.4.20+git.20180203-1
Ign:9 http://in.archive.ubuntu.com/ubuntu disco/main amd64 python3-colorama all 0.3.7-1
Get:10 http://in.archive.ubuntu.com/ubuntu disco/main amd64 python3-click all 7.0-1 [64.7 kB]
Get:11 http://in.archive.ubuntu.com/ubuntu disco/main amd64 python3-lib2to3 all 3.7.3-1ubuntu1 [75.4 kB]
Ign:12 http://in.archive.ubuntu.com/ubuntu disco/main amd64 python3-distutils all 3.7.3-1ubuntu1
Get:13 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 python3-tower-cli all 3.3.0-1 [84.9 kB]
Get:14 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 ansible-tower-cli all 3.3.0-1 [40.7 kB]
Get:15 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 fonts-mathjax all 2.7.4+dfsg-1 [2,208 kB]
Get:16 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 libjs-mathjax all 2.7.4+dfsg-1 [5,654 kB]
Get:17 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 ansible-tower-cli-doc all 3.3.0-1 [137 kB]
Get:8 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 ansible-lint all 3.4.20+git.20180203-1 [24.8 kB]
Get:9 http://in.archive.ubuntu.com/ubuntu disco/main amd64 python3-colorama all 0.3.7-1 [14.9 kB]
Get:12 http://in.archive.ubuntu.com/ubuntu disco/main amd64 python3-distutils all 3.7.3-1ubuntu1 [140 kB]
Fetched 17.1 MB in 46s (371 kB/s)
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/p/pyyaml/python-yaml_3.13-2_amd64.deb 500 Internal Server Error [IP: 103.123.234.254 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
root@kiran-virtual-machine:~/chef-zero/playground/cookbooks# apt install ansible-*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'ansible-tower-cli' for glob 'ansible-*'
Note, selecting 'ansible-tower-cli-doc' for glob 'ansible-*'
Note, selecting 'ansible-doc' for glob 'ansible-*'
Note, selecting 'ansible-lint' for glob 'ansible-*'
The following additional packages will be installed:
fonts-mathjax fonts-roboto-fontface fonts-roboto-slab libjs-mathjax libjs-modernizr
python-six python-yaml python3-click python3-colorama python3-distutils
python3-lib2to3 python3-tower-cli sphinx-rtd-theme-common
Suggested packages:
fonts-roboto fonts-mathjax-extras fonts-stix libjs-mathjax-doc
The following NEW packages will be installed:
ansible-doc ansible-lint ansible-tower-cli ansible-tower-cli-doc fonts-mathjax
fonts-roboto-fontface fonts-roboto-slab libjs-mathjax libjs-modernizr python-six
python-yaml python3-click python3-colorama python3-distutils python3-lib2to3
python3-tower-cli sphinx-rtd-theme-common
0 upgraded, 17 newly installed, 0 to remove and 193 not upgraded.
Need to get 123 kB/17.3 MB of archives.
After this operation, 169 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://in.archive.ubuntu.com/ubuntu disco/main amd64 python-yaml amd64 3.13-2 [123 kB]
Fetched 123 kB in 0s (371 kB/s)
Selecting previously unselected package fonts-roboto-slab.
(Reading database ... 251298 files and directories currently installed.)
Preparing to unpack .../00-fonts-roboto-slab_1.100263+20170512-1_all.deb ...
Unpacking fonts-roboto-slab (1.100263+20170512-1) ...
Selecting previously unselected package libjs-modernizr.
Preparing to unpack .../01-libjs-modernizr_2.6.2+ds1-1ubuntu1_all.deb ...
Unpacking libjs-modernizr (2.6.2+ds1-1ubuntu1) ...
Selecting previously unselected package sphinx-rtd-theme-common.
Preparing to unpack .../02-sphinx-rtd-theme-common_0.4.3+dfsg-1_all.deb ...
Unpacking sphinx-rtd-theme-common (0.4.3+dfsg-1) ...
Selecting previously unselected package fonts-roboto-fontface.
Preparing to unpack .../03-fonts-roboto-fontface_0.5.0-2_all.deb ...
Unpacking fonts-roboto-fontface (0.5.0-2) ...
Selecting previously unselected package ansible-doc.
Preparing to unpack .../04-ansible-doc_2.7.8+dfsg-1ubuntu0.19.04.1_all.deb ...
Unpacking ansible-doc (2.7.8+dfsg-1ubuntu0.19.04.1) ...
Selecting previously unselected package python-six.
Preparing to unpack .../05-python-six_1.12.0-1_all.deb ...
Unpacking python-six (1.12.0-1) ...
Selecting previously unselected package python-yaml.
Preparing to unpack .../06-python-yaml_3.13-2_amd64.deb ...
Unpacking python-yaml (3.13-2) ...
Selecting previously unselected package ansible-lint.
Preparing to unpack .../07-ansible-lint_3.4.20+git.20180203-1_all.deb ...
Unpacking ansible-lint (3.4.20+git.20180203-1) ...
Selecting previously unselected package python3-colorama.
Preparing to unpack .../08-python3-colorama_0.3.7-1_all.deb ...
Unpacking python3-colorama (0.3.7-1) ...
Selecting previously unselected package python3-click.
Preparing to unpack .../09-python3-click_7.0-1_all.deb ...
Unpacking python3-click (7.0-1) ...
Selecting previously unselected package python3-lib2to3.
Preparing to unpack .../10-python3-lib2to3_3.7.3-1ubuntu1_all.deb ...
Unpacking python3-lib2to3 (3.7.3-1ubuntu1) ...
Selecting previously unselected package python3-distutils.
Preparing to unpack .../11-python3-distutils_3.7.3-1ubuntu1_all.deb ...
Unpacking python3-distutils (3.7.3-1ubuntu1) ...
Selecting previously unselected package python3-tower-cli.
Preparing to unpack .../12-python3-tower-cli_3.3.0-1_all.deb ...
Unpacking python3-tower-cli (3.3.0-1) ...
Selecting previously unselected package ansible-tower-cli.
Preparing to unpack .../13-ansible-tower-cli_3.3.0-1_all.deb ...
Unpacking ansible-tower-cli (3.3.0-1) ...
Selecting previously unselected package fonts-mathjax.
Preparing to unpack .../14-fonts-mathjax_2.7.4+dfsg-1_all.deb ...
Unpacking fonts-mathjax (2.7.4+dfsg-1) ...
Selecting previously unselected package libjs-mathjax.
Preparing to unpack .../15-libjs-mathjax_2.7.4+dfsg-1_all.deb ...
Unpacking libjs-mathjax (2.7.4+dfsg-1) ...
Selecting previously unselected package ansible-tower-cli-doc.
Preparing to unpack .../16-ansible-tower-cli-doc_3.3.0-1_all.deb ...
Unpacking ansible-tower-cli-doc (3.3.0-1) ...
Setting up fonts-mathjax (2.7.4+dfsg-1) ...
Setting up libjs-mathjax (2.7.4+dfsg-1) ...
Setting up python3-colorama (0.3.7-1) ...
Setting up fonts-roboto-slab (1.100263+20170512-1) ...
Setting up python3-click (7.0-1) ...
Setting up libjs-modernizr (2.6.2+ds1-1ubuntu1) ...
Setting up python-six (1.12.0-1) ...
Setting up fonts-roboto-fontface (0.5.0-2) ...
Setting up ansible-tower-cli-doc (3.3.0-1) ...
Setting up python-yaml (3.13-2) ...
Setting up python3-lib2to3 (3.7.3-1ubuntu1) ...
Setting up sphinx-rtd-theme-common (0.4.3+dfsg-1) ...
Setting up python3-distutils (3.7.3-1ubuntu1) ...
Setting up ansible-doc (2.7.8+dfsg-1ubuntu0.19.04.1) ...
Setting up ansible-lint (3.4.20+git.20180203-1) ...
Setting up python3-tower-cli (3.3.0-1) ...
Setting up ansible-tower-cli (3.3.0-1) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for fontconfig (2.13.1-2ubuntu2) ...
root@kiran-virtual-machine:~/chef-zero/playground/cookbooks# ansible localhost -m ping
[WARNING]: provided hosts list is empty, only localhost is available. Note that the
implicit localhost does not match 'all'
localhost | SUCCESS => {
"changed": false,
"ping": "pong"
}
root@kiran-virtual-machine:~/chef-zero/playground/cookbooks# ansible 192.168.45.140 -m ping
[WARNING]: provided hosts list is empty, only localhost is available. Note that the
implicit localhost does not match 'all'
[WARNING]: Could not match supplied host pattern, ignoring: 192.168.45.140
root@kiran-virtual-machine:~/chef-zero/playground/cookbooks# vi /etc/hosts
root@kiran-virtual-machine:~/chef-zero/playground/cookbooks# ansible 192.168.45.140 -m ping
[WARNING]: provided hosts list is empty, only localhost is available. Note that the
implicit localhost does not match 'all'
[WARNING]: Could not match supplied host pattern, ignoring: 192.168.45.140
root@kiran-virtual-machine:~/chef-zero/playground/cookbooks# service ansible restart
Failed to restart ansible.service: Unit ansible.service not found.
root@kiran-virtual-machine:~/chef-zero/playground/cookbooks# cd /etc/init.d/
root@kiran-virtual-machine:/etc/init.d# ls
acpid cups lvm2 rsyslog
alsa-utils cups-browsed lvm2-lvmetad saned
anacron dbus lvm2-lvmpolld sddm
apparmor gdomap mpd spice-vdagent
apport grub-common network-manager udev
avahi-daemon haveged open-vm-tools ufw
bluetooth hwclock.sh plymouth unattended-upgrades
console-setup.sh irqbalance plymouth-log uuidd
cron kerneloops pppd-dns whoopsie
cryptdisks keyboard-setup.sh procps x11-common
cryptdisks-early kmod rsync
root@kiran-virtual-machine:/etc/init.d# ssh 192.168.45.140
^C
root@kiran-virtual-machine:/etc/init.d# ifconfig
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.106 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::636c:f0a3:379f:1f0d prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:9e:48:e0 txqueuelen 1000 (Ethernet)
RX packets 87541 bytes 96641964 (96.6 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 30670 bytes 2573659 (2.5 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 1690 bytes 170590 (170.5 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1690 bytes 170590 (170.5 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
root@kiran-virtual-machine:/etc/init.d# ssh 192.168.0.106
ssh: connect to host 192.168.0.106 port 22: Connection refused
root@kiran-virtual-machine:/etc/init.d# vi /etc/hosts
root@kiran-virtual-machine:/etc/init.d# ssh 192.168.0.106
ssh: connect to host 192.168.0.106 port 22: Connection refused
root@kiran-virtual-machine:/etc/init.d# ansible 192.168.0.106 -m ping
[WARNING]: provided hosts list is empty, only localhost is available. Note that the
implicit localhost does not match 'all'
[WARNING]: Could not match supplied host pattern, ignoring: 192.168.0.106
root@kiran-virtual-machine:/etc/init.d# service sshd restart
Failed to restart sshd.service: Unit sshd.service not found.
root@kiran-virtual-machine:/etc/init.d# service ssh restart
Failed to restart ssh.service: Unit ssh.service not found.
root@kiran-virtual-machine:/etc/init.d# ls
acpid cups lvm2 rsyslog
alsa-utils cups-browsed lvm2-lvmetad saned
anacron dbus lvm2-lvmpolld sddm
apparmor gdomap mpd spice-vdagent
apport grub-common network-manager udev
avahi-daemon haveged open-vm-tools ufw
bluetooth hwclock.sh plymouth unattended-upgrades
console-setup.sh irqbalance plymouth-log uuidd
cron kerneloops pppd-dns whoopsie
cryptdisks keyboard-setup.sh procps x11-common
cryptdisks-early kmod rsync
root@kiran-virtual-machine:/etc/init.d# ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Created directory '/root/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:4WpwV6RiTQBt6I5vLFEWfaVhaZW4py0+OM2tiefxS0k root@kiran-virtual-machine
The key's randomart image is:
+---[RSA 2048]----+
| .=..+=+. |
| o ++==. |
| . ooo=.. |
| +. o.o. |
| =. . S+E |
| o .o oo... |
| + o=.oo |
| . +.o.*=. |
| o .++oo. |
+----[SHA256]-----+
root@kiran-virtual-machine:/etc/init.d# ansible 192.168.0.106 -m ping
[WARNING]: provided hosts list is empty, only localhost is available. Note that the
implicit localhost does not match 'all'
[WARNING]: Could not match supplied host pattern, ignoring: 192.168.0.106
root@kiran-virtual-machine:/etc/init.d# ssh 192.168.0.106
ssh: connect to host 192.168.0.106 port 22: Connection refused
root@kiran-virtual-machine:/etc/init.d# apt install sh
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package sh
root@kiran-virtual-machine:/etc/init.d#
root@kiran-virtual-machine:/etc/init.d# apt install ssh
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
ncurses-term openssh-server openssh-sftp-server ssh-import-id
Suggested packages:
molly-guard monkeysphere rssh
The following NEW packages will be installed:
ncurses-term openssh-server openssh-sftp-server ssh ssh-import-id
0 upgraded, 5 newly installed, 0 to remove and 193 not upgraded.
Need to get 662 kB of archives.
After this operation, 6,050 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://in.archive.ubuntu.com/ubuntu disco/main amd64 openssh-sftp-server amd64 1:7.9p1-10 [44.9 kB]
Err:2 http://in.archive.ubuntu.com/ubuntu disco/main amd64 openssh-server amd64 1:7.9p1-10
500 Internal Server Error [IP: 103.123.234.254 80]
Get:3 http://in.archive.ubuntu.com/ubuntu disco/main amd64 ssh all 1:7.9p1-10 [5,064 B]
Get:4 http://in.archive.ubuntu.com/ubuntu disco/main amd64 ncurses-term all 6.1+20181013-2ubuntu2 [247 kB]
Get:5 http://in.archive.ubuntu.com/ubuntu disco/main amd64 ssh-import-id all 5.7-24-g4001a38e-0ubuntu1 [11.5 kB]
Fetched 308 kB in 1s (445 kB/s)
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/o/openssh/openssh-server_7.9p1-10_amd64.deb 500 Internal Server Error [IP: 103.123.234.254 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
root@kiran-virtual-machine:/etc/init.d# apt install ssh
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
ncurses-term openssh-server openssh-sftp-server ssh-import-id
Suggested packages:
molly-guard monkeysphere rssh
The following NEW packages will be installed:
ncurses-term openssh-server openssh-sftp-server ssh ssh-import-id
0 upgraded, 5 newly installed, 0 to remove and 193 not upgraded.
Need to get 354 kB/662 kB of archives.
After this operation, 6,050 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://in.archive.ubuntu.com/ubuntu disco/main amd64 openssh-server amd64 1:7.9p1-10 [354 kB]
Fetched 354 kB in 0s (1,244 kB/s)
Preconfiguring packages ...
Selecting previously unselected package openssh-sftp-server.
(Reading database ... 259314 files and directories currently installed.)
Preparing to unpack .../openssh-sftp-server_1%3a7.9p1-10_amd64.deb ...
Unpacking openssh-sftp-server (1:7.9p1-10) ...
Selecting previously unselected package openssh-server.
Preparing to unpack .../openssh-server_1%3a7.9p1-10_amd64.deb ...
Unpacking openssh-server (1:7.9p1-10) ...
Selecting previously unselected package ssh.
Preparing to unpack .../ssh_1%3a7.9p1-10_all.deb ...
Unpacking ssh (1:7.9p1-10) ...
Selecting previously unselected package ncurses-term.
Preparing to unpack .../ncurses-term_6.1+20181013-2ubuntu2_all.deb ...
Unpacking ncurses-term (6.1+20181013-2ubuntu2) ...
Selecting previously unselected package ssh-import-id.
Preparing to unpack .../ssh-import-id_5.7-24-g4001a38e-0ubuntu1_all.deb ...
Unpacking ssh-import-id (5.7-24-g4001a38e-0ubuntu1) ...
Setting up openssh-sftp-server (1:7.9p1-10) ...
Setting up openssh-server (1:7.9p1-10) ...
Creating config file /etc/ssh/sshd_config with new version
Creating SSH2 RSA key; this may take some time ...
2048 SHA256:+gfg8c48ZdDBMp1mAmbsVYlK8Z+ec5QEFAAabl99no4 root@kiran-virtual-machine (RSA)
Creating SSH2 ECDSA key; this may take some time ...
256 SHA256:iGHE26kO5xJfJkSJSOsz6oVNdaHNkjJHtdXHM0tDexk root@kiran-virtual-machine (ECDSA)
Creating SSH2 ED25519 key; this may take some time ...
256 SHA256:QVuTom1PApIvXQjV8tijX2HvModxza681SJ9gsZxoKI root@kiran-virtual-machine (ED25519)
Created symlink /etc/systemd/system/sshd.service → /lib/systemd/system/ssh.service.
Created symlink /etc/systemd/system/multi-user.target.wants/ssh.service → /lib/systemd/system/ssh.service.
rescue-ssh.target is a disabled or a static unit, not starting it.
Setting up ssh-import-id (5.7-24-g4001a38e-0ubuntu1) ...
Attempting to convert /etc/ssh/ssh_import_id
Setting up ncurses-term (6.1+20181013-2ubuntu2) ...
Setting up ssh (1:7.9p1-10) ...
Processing triggers for systemd (240-6ubuntu5) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for ufw (0.36-1ubuntu1) ...
Error: Timeout was reached
root@kiran-virtual-machine:/etc/init.d# apt install ssh
Reading package lists... Done
Building dependency tree
Reading state information... Done
ssh is already the newest version (1:7.9p1-10).
0 upgraded, 0 newly installed, 0 to remove and 193 not upgraded.
root@kiran-virtual-machine:/etc/init.d# ssh 192.168.0.106
The authenticity of host '192.168.0.106 (192.168.0.106)' can't be established.
ECDSA key fingerprint is SHA256:iGHE26kO5xJfJkSJSOsz6oVNdaHNkjJHtdXHM0tDexk.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.0.106' (ECDSA) to the list of known hosts.
root@192.168.0.106's password:
Permission denied, please try again.
root@192.168.0.106's password:
Permission denied, please try again.
root@192.168.0.106's password:
root@192.168.0.106: Permission denied (publickey,password).
root@kiran-virtual-machine:/etc/init.d# passwd root
New password:
Retype new password:
passwd: password updated successfully
root@kiran-virtual-machine:/etc/init.d# ssh 192.168.0.106
root@192.168.0.106's password:
Permission denied, please try again.
root@192.168.0.106's password:
Permission denied, please try again.
root@192.168.0.106's password:
root@192.168.0.106: Permission denied (publickey,password).
root@kiran-virtual-machine:/etc/init.d# ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
/root/.ssh/id_rsa already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:P4t4VRlZ8oOkLEyxy3gK6SOrz/h2j/PGCnd8Js46ou4 root@kiran-virtual-machine
The key's randomart image is:
+---[RSA 2048]----+
| o. oo. |
| o o oo+ |
| + o .oo |
| . o o o . |
| o . S . |
| . o o .. |
| o +.= o.o |
| oo=+*o=.. o |
|*E=o+O*.. . |
+----[SHA256]-----+
root@kiran-virtual-machine:/etc/init.d# ssh 192.168.0.106
root@192.168.0.106's password:
Permission denied, please try again.
root@192.168.0.106's password:
Permission denied, please try again.
root@192.168.0.106's password:
root@kiran-virtual-machine:/etc/init.d# ansible 192.168.0.106 -m ping
[WARNING]: provided hosts list is empty, only localhost is available. Note that the
implicit localhost does not match 'all'
[WARNING]: Could not match supplied host pattern, ignoring: 192.168.0.106
root@kiran-virtual-machine:/etc/init.d# ls
acpid cups lvm2 rsyslog
alsa-utils cups-browsed lvm2-lvmetad saned
anacron dbus lvm2-lvmpolld sddm
apparmor gdomap mpd spice-vdagent
apport grub-common network-manager ssh
avahi-daemon haveged open-vm-tools udev
bluetooth hwclock.sh plymouth ufw
console-setup.sh irqbalance plymouth-log unattended-upgrades
cron kerneloops pppd-dns uuidd
cryptdisks keyboard-setup.sh procps whoopsie
cryptdisks-early kmod rsync x11-common
root@kiran-virtual-machine:/etc/init.d# ifconfig
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.106 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::636c:f0a3:379f:1f0d prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:9e:48:e0 txqueuelen 1000 (Ethernet)
RX packets 89294 bytes 97611064 (97.6 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 31075 bytes 2635881 (2.6 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 1863 bytes 194465 (194.4 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1863 bytes 194465 (194.4 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
root@kiran-virtual-machine:/etc/init.d#
root@kiran-virtual-machine:/etc/init.d# ssh 192.168.0.106
root@192.168.0.106's password:
Permission denied, please try again.
root@192.168.0.106's password:
Permission denied, please try again.
root@192.168.0.106's password:
root@192.168.0.106: Permission denied (publickey,password).
root@kiran-virtual-machine:/etc/init.d# ifconfig
ens33: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.0.106 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::636c:f0a3:379f:1f0d prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:9e:48:e0 txqueuelen 1000 (Ethernet)
RX packets 89688 bytes 97703793 (97.7 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 31147 bytes 2651196 (2.6 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 1912 bytes 201767 (201.7 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1912 bytes 201767 (201.7 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
root@kiran-virtual-machine:/etc/init.d# ifconfig
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.45.140 netmask 255.255.255.0 broadcast 192.168.45.255
inet6 fe80::636c:f0a3:379f:1f0d prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:9e:48:e0 txqueuelen 1000 (Ethernet)
RX packets 89709 bytes 97707606 (97.7 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 31196 bytes 2658754 (2.6 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 2024 bytes 211081 (211.0 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2024 bytes 211081 (211.0 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
root@kiran-virtual-machine:/etc/init.d# ansible 192.168.45.141 -m ping
[WARNING]: provided hosts list is empty, only localhost is available. Note that the
implicit localhost does not match 'all'
[WARNING]: Could not match supplied host pattern, ignoring: 192.168.45.141
root@kiran-virtual-machine:/etc/init.d# ssh-copy-id 192.168.45.141
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/root/.ssh/id_rsa.pub"
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: ERROR: ssh: connect to host 192.168.45.141 port 22: Connection refused
root@kiran-virtual-machine:/etc/init.d# ssh-copy-id 192.168.45.141
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/root/.ssh/id_rsa.pub"
The authenticity of host '192.168.45.141 (192.168.45.141)' can't be established.
ECDSA key fingerprint is SHA256:rA7kTGM4/Hy8WcbMPjVQ5Xa6mxSmIaPrHYRqeJazWdQ.
Are you sure you want to continue connecting (yes/no)? yes
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
root@192.168.45.141's password:
Permission denied, please try again.
root@192.168.45.141's password:
Number of key(s) added: 1
Now try logging into the machine, with: "ssh '192.168.45.141'"
and check to make sure that only the key(s) you wanted were added.
root@kiran-virtual-machine:/etc/init.d# ansible 192.168.45.141 -m ping
[WARNING]: provided hosts list is empty, only localhost is available. Note that the
implicit localhost does not match 'all'
[WARNING]: Could not match supplied host pattern, ignoring: 192.168.45.141
root@kiran-virtual-machine:/etc/init.d# ssh-copy-id 192.168.45.141
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/root/.ssh/id_rsa.pub"
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
Enter passphrase for key '/root/.ssh/id_rsa':
/usr/bin/ssh-copy-id: WARNING: All keys were skipped because they already exist on the remote system.
(if you think this is a mistake, you may want to use -f option)
root@kiran-virtual-machine:/etc/init.d# ansible 192.168.45.141 -m ping
[WARNING]: provided hosts list is empty, only localhost is available. Note that the
implicit localhost does not match 'all'
[WARNING]: Could not match supplied host pattern, ignoring: 192.168.45.141
root@kiran-virtual-machine:/etc/init.d# ansible 192.168.45.140 -m ping
[WARNING]: provided hosts list is empty, only localhost is available. Note that the
implicit localhost does not match 'all'
[WARNING]: Could not match supplied host pattern, ignoring: 192.168.45.140
root@kiran-virtual-machine:/etc/init.d# vi /etc/hosts
root@kiran-virtual-machine:/etc/init.d#
There are no enabled repos.
Run "yum repolist all" to see the repos you have.
You can enable repos with yum-config-manager --enable <repo>
root@kiran-virtual-machine:~/chef-zero/playground/cookbooks# apt install ansible
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
python3-asn1crypto python3-bcrypt python3-crypto python3-cryptography python3-jinja2
python3-jmespath python3-kerberos python3-libcloud python3-lockfile
python3-markupsafe python3-netaddr python3-ntlm-auth python3-paramiko python3-pyasn1
python3-requests-kerberos python3-requests-ntlm python3-selinux python3-simplejson
python3-winrm python3-xmltodict
Suggested packages:
cowsay sshpass python-crypto-doc python-cryptography-doc
python3-cryptography-vectors python-jinja2-doc python-lockfile-doc ipython3
python-netaddr-docs python3-gssapi
The following NEW packages will be installed:
ansible python3-asn1crypto python3-bcrypt python3-crypto python3-cryptography
python3-jinja2 python3-jmespath python3-kerberos python3-libcloud python3-lockfile
python3-markupsafe python3-netaddr python3-ntlm-auth python3-paramiko python3-pyasn1
python3-requests-kerberos python3-requests-ntlm python3-selinux python3-simplejson
python3-winrm python3-xmltodict
0 upgraded, 21 newly installed, 0 to remove and 193 not upgraded.
Need to get 6,560 kB of archives.
After this operation, 57.6 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://in.archive.ubuntu.com/ubuntu disco/main amd64 python3-asn1crypto all 0.24.0-1 [72.8 kB]
Get:2 http://in.archive.ubuntu.com/ubuntu disco/main amd64 python3-cryptography amd64 2.3-1ubuntu2 [204 kB]
Err:3 http://in.archive.ubuntu.com/ubuntu disco/main amd64 python3-markupsafe amd64 1.1.0-1
500 Internal Server Error [IP: 103.123.234.254 80]
Get:4 http://in.archive.ubuntu.com/ubuntu disco-updates/main amd64 python3-jinja2 all 2.10-1ubuntu0.19.04.1 [95.4 kB]
Get:5 http://in.archive.ubuntu.com/ubuntu disco/main amd64 python3-bcrypt amd64 3.1.6-1 [30.1 kB]
Get:6 http://in.archive.ubuntu.com/ubuntu disco/main amd64 python3-pyasn1 all 0.4.2-3 [46.8 kB]
Get:7 http://in.archive.ubuntu.com/ubuntu disco/main amd64 python3-paramiko all 2.4.2-0.1ubuntu1 [118 kB]
Get:8 http://in.archive.ubuntu.com/ubuntu disco/main amd64 python3-crypto amd64 2.6.1-9build2 [236 kB]
Get:9 http://in.archive.ubuntu.com/ubuntu disco/main amd64 python3-netaddr all 0.7.19-1 [213 kB]
Get:10 http://in.archive.ubuntu.com/ubuntu disco-updates/universe amd64 ansible all 2.7.8+dfsg-1ubuntu0.19.04.1 [3,956 kB]
Get:11 http://in.archive.ubuntu.com/ubuntu disco/main amd64 python3-jmespath all 0.9.4-1 [18.6 kB]
Get:12 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 python3-kerberos amd64 1.1.14-1build2 [16.5 kB]
Get:13 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 python3-lockfile all 1:0.12.2-2 [14.7 kB]
Get:14 http://in.archive.ubuntu.com/ubuntu disco/main amd64 python3-simplejson amd64 3.16.0-1 [50.2 kB]
Get:15 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 python3-libcloud all 2.4.0-1 [1,268 kB]
Get:16 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 python3-ntlm-auth all 1.1.0-1 [19.6 kB]
Get:17 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 python3-requests-kerberos all 0.11.0-2 [10.1 kB]
Get:18 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 python3-requests-ntlm all 1.1.0-1 [6,004 B]
Get:19 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 python3-selinux amd64 2.8-1build2 [139 kB]
Get:20 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 python3-xmltodict all 0.11.0-2 [10.6 kB]
Get:21 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 python3-winrm all 0.3.0-2 [21.7 kB]
Fetched 6,546 kB in 14s (465 kB/s)
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/m/markupsafe/python3-markupsafe_1.1.0-1_amd64.deb 500 Internal Server Error [IP: 103.123.234.254 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
root@kiran-virtual-machine:~/chef-zero/playground/cookbooks# apt install ansible
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
python3-asn1crypto python3-bcrypt python3-crypto python3-cryptography python3-jinja2
python3-jmespath python3-kerberos python3-libcloud python3-lockfile
python3-markupsafe python3-netaddr python3-ntlm-auth python3-paramiko python3-pyasn1
python3-requests-kerberos python3-requests-ntlm python3-selinux python3-simplejson
python3-winrm python3-xmltodict
Suggested packages:
cowsay sshpass python-crypto-doc python-cryptography-doc
python3-cryptography-vectors python-jinja2-doc python-lockfile-doc ipython3
python-netaddr-docs python3-gssapi
The following NEW packages will be installed:
ansible python3-asn1crypto python3-bcrypt python3-crypto python3-cryptography
python3-jinja2 python3-jmespath python3-kerberos python3-libcloud python3-lockfile
python3-markupsafe python3-netaddr python3-ntlm-auth python3-paramiko python3-pyasn1
python3-requests-kerberos python3-requests-ntlm python3-selinux python3-simplejson
python3-winrm python3-xmltodict
0 upgraded, 21 newly installed, 0 to remove and 193 not upgraded.
Need to get 13.8 kB/6,560 kB of archives.
After this operation, 57.6 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Err:1 http://in.archive.ubuntu.com/ubuntu disco/main amd64 python3-markupsafe amd64 1.1.0-1
Temporary failure resolving 'in.archive.ubuntu.com'
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/m/markupsafe/python3-markupsafe_1.1.0-1_amd64.deb Temporary failure resolving 'in.archive.ubuntu.com'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
root@kiran-virtual-machine:~/chef-zero/playground/cookbooks# apt install ansible
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
python3-asn1crypto python3-bcrypt python3-crypto python3-cryptography python3-jinja2
python3-jmespath python3-kerberos python3-libcloud python3-lockfile
python3-markupsafe python3-netaddr python3-ntlm-auth python3-paramiko python3-pyasn1
python3-requests-kerberos python3-requests-ntlm python3-selinux python3-simplejson
python3-winrm python3-xmltodict
Suggested packages:
cowsay sshpass python-crypto-doc python-cryptography-doc
python3-cryptography-vectors python-jinja2-doc python-lockfile-doc ipython3
python-netaddr-docs python3-gssapi
The following NEW packages will be installed:
ansible python3-asn1crypto python3-bcrypt python3-crypto python3-cryptography
python3-jinja2 python3-jmespath python3-kerberos python3-libcloud python3-lockfile
python3-markupsafe python3-netaddr python3-ntlm-auth python3-paramiko python3-pyasn1
python3-requests-kerberos python3-requests-ntlm python3-selinux python3-simplejson
python3-winrm python3-xmltodict
0 upgraded, 21 newly installed, 0 to remove and 193 not upgraded.
Need to get 13.8 kB/6,560 kB of archives.
After this operation, 57.6 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://in.archive.ubuntu.com/ubuntu disco/main amd64 python3-markupsafe amd64 1.1.0-1 [13.8 kB]
Fetched 13.8 kB in 0s (120 kB/s)
Selecting previously unselected package python3-asn1crypto.
(Reading database ... 244543 files and directories currently installed.)
Preparing to unpack .../00-python3-asn1crypto_0.24.0-1_all.deb ...
Unpacking python3-asn1crypto (0.24.0-1) ...
Selecting previously unselected package python3-cryptography.
Preparing to unpack .../01-python3-cryptography_2.3-1ubuntu2_amd64.deb ...
Unpacking python3-cryptography (2.3-1ubuntu2) ...
Selecting previously unselected package python3-markupsafe.
Preparing to unpack .../02-python3-markupsafe_1.1.0-1_amd64.deb ...
Unpacking python3-markupsafe (1.1.0-1) ...
Selecting previously unselected package python3-jinja2.
Preparing to unpack .../03-python3-jinja2_2.10-1ubuntu0.19.04.1_all.deb ...
Unpacking python3-jinja2 (2.10-1ubuntu0.19.04.1) ...
Selecting previously unselected package python3-bcrypt.
Preparing to unpack .../04-python3-bcrypt_3.1.6-1_amd64.deb ...
Unpacking python3-bcrypt (3.1.6-1) ...
Selecting previously unselected package python3-pyasn1.
Preparing to unpack .../05-python3-pyasn1_0.4.2-3_all.deb ...
Unpacking python3-pyasn1 (0.4.2-3) ...
Selecting previously unselected package python3-paramiko.
Preparing to unpack .../06-python3-paramiko_2.4.2-0.1ubuntu1_all.deb ...
Unpacking python3-paramiko (2.4.2-0.1ubuntu1) ...
Selecting previously unselected package python3-crypto.
Preparing to unpack .../07-python3-crypto_2.6.1-9build2_amd64.deb ...
Unpacking python3-crypto (2.6.1-9build2) ...
Selecting previously unselected package python3-netaddr.
Preparing to unpack .../08-python3-netaddr_0.7.19-1_all.deb ...
Unpacking python3-netaddr (0.7.19-1) ...
Selecting previously unselected package ansible.
Preparing to unpack .../09-ansible_2.7.8+dfsg-1ubuntu0.19.04.1_all.deb ...
Unpacking ansible (2.7.8+dfsg-1ubuntu0.19.04.1) ...
Selecting previously unselected package python3-jmespath.
Preparing to unpack .../10-python3-jmespath_0.9.4-1_all.deb ...
Unpacking python3-jmespath (0.9.4-1) ...
Selecting previously unselected package python3-kerberos.
Preparing to unpack .../11-python3-kerberos_1.1.14-1build2_amd64.deb ...
Unpacking python3-kerberos (1.1.14-1build2) ...
Selecting previously unselected package python3-lockfile.
Preparing to unpack .../12-python3-lockfile_1%3a0.12.2-2_all.deb ...
Unpacking python3-lockfile (1:0.12.2-2) ...
Selecting previously unselected package python3-simplejson.
Preparing to unpack .../13-python3-simplejson_3.16.0-1_amd64.deb ...
Unpacking python3-simplejson (3.16.0-1) ...
Selecting previously unselected package python3-libcloud.
Preparing to unpack .../14-python3-libcloud_2.4.0-1_all.deb ...
Unpacking python3-libcloud (2.4.0-1) ...
Selecting previously unselected package python3-ntlm-auth.
Preparing to unpack .../15-python3-ntlm-auth_1.1.0-1_all.deb ...
Unpacking python3-ntlm-auth (1.1.0-1) ...
Selecting previously unselected package python3-requests-kerberos.
Preparing to unpack .../16-python3-requests-kerberos_0.11.0-2_all.deb ...
Unpacking python3-requests-kerberos (0.11.0-2) ...
Selecting previously unselected package python3-requests-ntlm.
Preparing to unpack .../17-python3-requests-ntlm_1.1.0-1_all.deb ...
Unpacking python3-requests-ntlm (1.1.0-1) ...
Selecting previously unselected package python3-selinux.
Preparing to unpack .../18-python3-selinux_2.8-1build2_amd64.deb ...
Unpacking python3-selinux (2.8-1build2) ...
Selecting previously unselected package python3-xmltodict.
Preparing to unpack .../19-python3-xmltodict_0.11.0-2_all.deb ...
Unpacking python3-xmltodict (0.11.0-2) ...
Selecting previously unselected package python3-winrm.
Preparing to unpack .../20-python3-winrm_0.3.0-2_all.deb ...
Unpacking python3-winrm (0.3.0-2) ...
Setting up python3-lockfile (1:0.12.2-2) ...
Setting up python3-ntlm-auth (1.1.0-1) ...
Setting up python3-bcrypt (3.1.6-1) ...
Setting up python3-kerberos (1.1.14-1build2) ...
Setting up python3-markupsafe (1.1.0-1) ...
Setting up python3-simplejson (3.16.0-1) ...
Setting up python3-xmltodict (0.11.0-2) ...
Setting up python3-jinja2 (2.10-1ubuntu0.19.04.1) ...
Setting up python3-jmespath (0.9.4-1) ...
Setting up python3-requests-kerberos (0.11.0-2) ...
Setting up python3-netaddr (0.7.19-1) ...
Setting up python3-pyasn1 (0.4.2-3) ...
Setting up python3-selinux (2.8-1build2) ...
Setting up python3-crypto (2.6.1-9build2) ...
Setting up python3-asn1crypto (0.24.0-1) ...
Setting up python3-libcloud (2.4.0-1) ...
Setting up python3-cryptography (2.3-1ubuntu2) ...
Setting up python3-paramiko (2.4.2-0.1ubuntu1) ...
Setting up python3-requests-ntlm (1.1.0-1) ...
Setting up python3-winrm (0.3.0-2) ...
Setting up ansible (2.7.8+dfsg-1ubuntu0.19.04.1) ...
Processing triggers for man-db (2.8.5-2) ...
root@kiran-virtual-machine:~/chef-zero/playground/cookbooks# apt install ansible-tower
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package ansible-tower
root@kiran-virtual-machine:~/chef-zero/playground/cookbooks# apt install ansible-*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'ansible-tower-cli' for glob 'ansible-*'
Note, selecting 'ansible-tower-cli-doc' for glob 'ansible-*'
Note, selecting 'ansible-doc' for glob 'ansible-*'
Note, selecting 'ansible-lint' for glob 'ansible-*'
The following additional packages will be installed:
fonts-mathjax fonts-roboto-fontface fonts-roboto-slab libjs-mathjax libjs-modernizr
python-six python-yaml python3-click python3-colorama python3-distutils
python3-lib2to3 python3-tower-cli sphinx-rtd-theme-common
Suggested packages:
fonts-roboto fonts-mathjax-extras fonts-stix libjs-mathjax-doc
The following NEW packages will be installed:
ansible-doc ansible-lint ansible-tower-cli ansible-tower-cli-doc fonts-mathjax
fonts-roboto-fontface fonts-roboto-slab libjs-mathjax libjs-modernizr python-six
python-yaml python3-click python3-colorama python3-distutils python3-lib2to3
python3-tower-cli sphinx-rtd-theme-common
0 upgraded, 17 newly installed, 0 to remove and 193 not upgraded.
Need to get 17.3 MB of archives.
After this operation, 169 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://in.archive.ubuntu.com/ubuntu disco/main amd64 fonts-roboto-slab all 1.100263+20170512-1 [207 kB]
Get:2 http://in.archive.ubuntu.com/ubuntu disco/main amd64 libjs-modernizr all 2.6.2+ds1-1ubuntu1 [46.7 kB]
Get:3 http://in.archive.ubuntu.com/ubuntu disco/main amd64 sphinx-rtd-theme-common all 0.4.3+dfsg-1 [1,019 kB]
Get:4 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 fonts-roboto-fontface all 0.5.0-2 [3,979 kB]
Get:5 http://in.archive.ubuntu.com/ubuntu disco-updates/universe amd64 ansible-doc all 2.7.8+dfsg-1ubuntu0.19.04.1 [3,432 kB]
Get:6 http://in.archive.ubuntu.com/ubuntu disco/main amd64 python-six all 1.12.0-1 [11.6 kB]
Err:7 http://in.archive.ubuntu.com/ubuntu disco/main amd64 python-yaml amd64 3.13-2
500 Internal Server Error [IP: 103.123.234.254 80]
Ign:8 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 ansible-lint all 3.4.20+git.20180203-1
Ign:9 http://in.archive.ubuntu.com/ubuntu disco/main amd64 python3-colorama all 0.3.7-1
Get:10 http://in.archive.ubuntu.com/ubuntu disco/main amd64 python3-click all 7.0-1 [64.7 kB]
Get:11 http://in.archive.ubuntu.com/ubuntu disco/main amd64 python3-lib2to3 all 3.7.3-1ubuntu1 [75.4 kB]
Ign:12 http://in.archive.ubuntu.com/ubuntu disco/main amd64 python3-distutils all 3.7.3-1ubuntu1
Get:13 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 python3-tower-cli all 3.3.0-1 [84.9 kB]
Get:14 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 ansible-tower-cli all 3.3.0-1 [40.7 kB]
Get:15 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 fonts-mathjax all 2.7.4+dfsg-1 [2,208 kB]
Get:16 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 libjs-mathjax all 2.7.4+dfsg-1 [5,654 kB]
Get:17 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 ansible-tower-cli-doc all 3.3.0-1 [137 kB]
Get:8 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 ansible-lint all 3.4.20+git.20180203-1 [24.8 kB]
Get:9 http://in.archive.ubuntu.com/ubuntu disco/main amd64 python3-colorama all 0.3.7-1 [14.9 kB]
Get:12 http://in.archive.ubuntu.com/ubuntu disco/main amd64 python3-distutils all 3.7.3-1ubuntu1 [140 kB]
Fetched 17.1 MB in 46s (371 kB/s)
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/p/pyyaml/python-yaml_3.13-2_amd64.deb 500 Internal Server Error [IP: 103.123.234.254 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
root@kiran-virtual-machine:~/chef-zero/playground/cookbooks# apt install ansible-*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'ansible-tower-cli' for glob 'ansible-*'
Note, selecting 'ansible-tower-cli-doc' for glob 'ansible-*'
Note, selecting 'ansible-doc' for glob 'ansible-*'
Note, selecting 'ansible-lint' for glob 'ansible-*'
The following additional packages will be installed:
fonts-mathjax fonts-roboto-fontface fonts-roboto-slab libjs-mathjax libjs-modernizr
python-six python-yaml python3-click python3-colorama python3-distutils
python3-lib2to3 python3-tower-cli sphinx-rtd-theme-common
Suggested packages:
fonts-roboto fonts-mathjax-extras fonts-stix libjs-mathjax-doc
The following NEW packages will be installed:
ansible-doc ansible-lint ansible-tower-cli ansible-tower-cli-doc fonts-mathjax
fonts-roboto-fontface fonts-roboto-slab libjs-mathjax libjs-modernizr python-six
python-yaml python3-click python3-colorama python3-distutils python3-lib2to3
python3-tower-cli sphinx-rtd-theme-common
0 upgraded, 17 newly installed, 0 to remove and 193 not upgraded.
Need to get 123 kB/17.3 MB of archives.
After this operation, 169 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://in.archive.ubuntu.com/ubuntu disco/main amd64 python-yaml amd64 3.13-2 [123 kB]
Fetched 123 kB in 0s (371 kB/s)
Selecting previously unselected package fonts-roboto-slab.
(Reading database ... 251298 files and directories currently installed.)
Preparing to unpack .../00-fonts-roboto-slab_1.100263+20170512-1_all.deb ...
Unpacking fonts-roboto-slab (1.100263+20170512-1) ...
Selecting previously unselected package libjs-modernizr.
Preparing to unpack .../01-libjs-modernizr_2.6.2+ds1-1ubuntu1_all.deb ...
Unpacking libjs-modernizr (2.6.2+ds1-1ubuntu1) ...
Selecting previously unselected package sphinx-rtd-theme-common.
Preparing to unpack .../02-sphinx-rtd-theme-common_0.4.3+dfsg-1_all.deb ...
Unpacking sphinx-rtd-theme-common (0.4.3+dfsg-1) ...
Selecting previously unselected package fonts-roboto-fontface.
Preparing to unpack .../03-fonts-roboto-fontface_0.5.0-2_all.deb ...
Unpacking fonts-roboto-fontface (0.5.0-2) ...
Selecting previously unselected package ansible-doc.
Preparing to unpack .../04-ansible-doc_2.7.8+dfsg-1ubuntu0.19.04.1_all.deb ...
Unpacking ansible-doc (2.7.8+dfsg-1ubuntu0.19.04.1) ...
Selecting previously unselected package python-six.
Preparing to unpack .../05-python-six_1.12.0-1_all.deb ...
Unpacking python-six (1.12.0-1) ...
Selecting previously unselected package python-yaml.
Preparing to unpack .../06-python-yaml_3.13-2_amd64.deb ...
Unpacking python-yaml (3.13-2) ...
Selecting previously unselected package ansible-lint.
Preparing to unpack .../07-ansible-lint_3.4.20+git.20180203-1_all.deb ...
Unpacking ansible-lint (3.4.20+git.20180203-1) ...
Selecting previously unselected package python3-colorama.
Preparing to unpack .../08-python3-colorama_0.3.7-1_all.deb ...
Unpacking python3-colorama (0.3.7-1) ...
Selecting previously unselected package python3-click.
Preparing to unpack .../09-python3-click_7.0-1_all.deb ...
Unpacking python3-click (7.0-1) ...
Selecting previously unselected package python3-lib2to3.
Preparing to unpack .../10-python3-lib2to3_3.7.3-1ubuntu1_all.deb ...
Unpacking python3-lib2to3 (3.7.3-1ubuntu1) ...
Selecting previously unselected package python3-distutils.
Preparing to unpack .../11-python3-distutils_3.7.3-1ubuntu1_all.deb ...
Unpacking python3-distutils (3.7.3-1ubuntu1) ...
Selecting previously unselected package python3-tower-cli.
Preparing to unpack .../12-python3-tower-cli_3.3.0-1_all.deb ...
Unpacking python3-tower-cli (3.3.0-1) ...
Selecting previously unselected package ansible-tower-cli.
Preparing to unpack .../13-ansible-tower-cli_3.3.0-1_all.deb ...
Unpacking ansible-tower-cli (3.3.0-1) ...
Selecting previously unselected package fonts-mathjax.
Preparing to unpack .../14-fonts-mathjax_2.7.4+dfsg-1_all.deb ...
Unpacking fonts-mathjax (2.7.4+dfsg-1) ...
Selecting previously unselected package libjs-mathjax.
Preparing to unpack .../15-libjs-mathjax_2.7.4+dfsg-1_all.deb ...
Unpacking libjs-mathjax (2.7.4+dfsg-1) ...
Selecting previously unselected package ansible-tower-cli-doc.
Preparing to unpack .../16-ansible-tower-cli-doc_3.3.0-1_all.deb ...
Unpacking ansible-tower-cli-doc (3.3.0-1) ...
Setting up fonts-mathjax (2.7.4+dfsg-1) ...
Setting up libjs-mathjax (2.7.4+dfsg-1) ...
Setting up python3-colorama (0.3.7-1) ...
Setting up fonts-roboto-slab (1.100263+20170512-1) ...
Setting up python3-click (7.0-1) ...
Setting up libjs-modernizr (2.6.2+ds1-1ubuntu1) ...
Setting up python-six (1.12.0-1) ...
Setting up fonts-roboto-fontface (0.5.0-2) ...
Setting up ansible-tower-cli-doc (3.3.0-1) ...
Setting up python-yaml (3.13-2) ...
Setting up python3-lib2to3 (3.7.3-1ubuntu1) ...
Setting up sphinx-rtd-theme-common (0.4.3+dfsg-1) ...
Setting up python3-distutils (3.7.3-1ubuntu1) ...
Setting up ansible-doc (2.7.8+dfsg-1ubuntu0.19.04.1) ...
Setting up ansible-lint (3.4.20+git.20180203-1) ...
Setting up python3-tower-cli (3.3.0-1) ...
Setting up ansible-tower-cli (3.3.0-1) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for fontconfig (2.13.1-2ubuntu2) ...
root@kiran-virtual-machine:~/chef-zero/playground/cookbooks# ansible localhost -m ping
[WARNING]: provided hosts list is empty, only localhost is available. Note that the
implicit localhost does not match 'all'
localhost | SUCCESS => {
"changed": false,
"ping": "pong"
}
root@kiran-virtual-machine:~/chef-zero/playground/cookbooks# ansible 192.168.45.140 -m ping
[WARNING]: provided hosts list is empty, only localhost is available. Note that the
implicit localhost does not match 'all'
[WARNING]: Could not match supplied host pattern, ignoring: 192.168.45.140
root@kiran-virtual-machine:~/chef-zero/playground/cookbooks# vi /etc/hosts
root@kiran-virtual-machine:~/chef-zero/playground/cookbooks# ansible 192.168.45.140 -m ping
[WARNING]: provided hosts list is empty, only localhost is available. Note that the
implicit localhost does not match 'all'
[WARNING]: Could not match supplied host pattern, ignoring: 192.168.45.140
root@kiran-virtual-machine:~/chef-zero/playground/cookbooks# service ansible restart
Failed to restart ansible.service: Unit ansible.service not found.
root@kiran-virtual-machine:~/chef-zero/playground/cookbooks# cd /etc/init.d/
root@kiran-virtual-machine:/etc/init.d# ls
acpid cups lvm2 rsyslog
alsa-utils cups-browsed lvm2-lvmetad saned
anacron dbus lvm2-lvmpolld sddm
apparmor gdomap mpd spice-vdagent
apport grub-common network-manager udev
avahi-daemon haveged open-vm-tools ufw
bluetooth hwclock.sh plymouth unattended-upgrades
console-setup.sh irqbalance plymouth-log uuidd
cron kerneloops pppd-dns whoopsie
cryptdisks keyboard-setup.sh procps x11-common
cryptdisks-early kmod rsync
root@kiran-virtual-machine:/etc/init.d# ssh 192.168.45.140
^C
root@kiran-virtual-machine:/etc/init.d# ifconfig
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.106 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::636c:f0a3:379f:1f0d prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:9e:48:e0 txqueuelen 1000 (Ethernet)
RX packets 87541 bytes 96641964 (96.6 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 30670 bytes 2573659 (2.5 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 1690 bytes 170590 (170.5 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1690 bytes 170590 (170.5 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
root@kiran-virtual-machine:/etc/init.d# ssh 192.168.0.106
ssh: connect to host 192.168.0.106 port 22: Connection refused
root@kiran-virtual-machine:/etc/init.d# vi /etc/hosts
root@kiran-virtual-machine:/etc/init.d# ssh 192.168.0.106
ssh: connect to host 192.168.0.106 port 22: Connection refused
root@kiran-virtual-machine:/etc/init.d# ansible 192.168.0.106 -m ping
[WARNING]: provided hosts list is empty, only localhost is available. Note that the
implicit localhost does not match 'all'
[WARNING]: Could not match supplied host pattern, ignoring: 192.168.0.106
root@kiran-virtual-machine:/etc/init.d# service sshd restart
Failed to restart sshd.service: Unit sshd.service not found.
root@kiran-virtual-machine:/etc/init.d# service ssh restart
Failed to restart ssh.service: Unit ssh.service not found.
root@kiran-virtual-machine:/etc/init.d# ls
acpid cups lvm2 rsyslog
alsa-utils cups-browsed lvm2-lvmetad saned
anacron dbus lvm2-lvmpolld sddm
apparmor gdomap mpd spice-vdagent
apport grub-common network-manager udev
avahi-daemon haveged open-vm-tools ufw
bluetooth hwclock.sh plymouth unattended-upgrades
console-setup.sh irqbalance plymouth-log uuidd
cron kerneloops pppd-dns whoopsie
cryptdisks keyboard-setup.sh procps x11-common
cryptdisks-early kmod rsync
root@kiran-virtual-machine:/etc/init.d# ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Created directory '/root/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:4WpwV6RiTQBt6I5vLFEWfaVhaZW4py0+OM2tiefxS0k root@kiran-virtual-machine
The key's randomart image is:
+---[RSA 2048]----+
| .=..+=+. |
| o ++==. |
| . ooo=.. |
| +. o.o. |
| =. . S+E |
| o .o oo... |
| + o=.oo |
| . +.o.*=. |
| o .++oo. |
+----[SHA256]-----+
root@kiran-virtual-machine:/etc/init.d# ansible 192.168.0.106 -m ping
[WARNING]: provided hosts list is empty, only localhost is available. Note that the
implicit localhost does not match 'all'
[WARNING]: Could not match supplied host pattern, ignoring: 192.168.0.106
root@kiran-virtual-machine:/etc/init.d# ssh 192.168.0.106
ssh: connect to host 192.168.0.106 port 22: Connection refused
root@kiran-virtual-machine:/etc/init.d# apt install sh
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package sh
root@kiran-virtual-machine:/etc/init.d#
root@kiran-virtual-machine:/etc/init.d# apt install ssh
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
ncurses-term openssh-server openssh-sftp-server ssh-import-id
Suggested packages:
molly-guard monkeysphere rssh
The following NEW packages will be installed:
ncurses-term openssh-server openssh-sftp-server ssh ssh-import-id
0 upgraded, 5 newly installed, 0 to remove and 193 not upgraded.
Need to get 662 kB of archives.
After this operation, 6,050 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://in.archive.ubuntu.com/ubuntu disco/main amd64 openssh-sftp-server amd64 1:7.9p1-10 [44.9 kB]
Err:2 http://in.archive.ubuntu.com/ubuntu disco/main amd64 openssh-server amd64 1:7.9p1-10
500 Internal Server Error [IP: 103.123.234.254 80]
Get:3 http://in.archive.ubuntu.com/ubuntu disco/main amd64 ssh all 1:7.9p1-10 [5,064 B]
Get:4 http://in.archive.ubuntu.com/ubuntu disco/main amd64 ncurses-term all 6.1+20181013-2ubuntu2 [247 kB]
Get:5 http://in.archive.ubuntu.com/ubuntu disco/main amd64 ssh-import-id all 5.7-24-g4001a38e-0ubuntu1 [11.5 kB]
Fetched 308 kB in 1s (445 kB/s)
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/o/openssh/openssh-server_7.9p1-10_amd64.deb 500 Internal Server Error [IP: 103.123.234.254 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
root@kiran-virtual-machine:/etc/init.d# apt install ssh
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
ncurses-term openssh-server openssh-sftp-server ssh-import-id
Suggested packages:
molly-guard monkeysphere rssh
The following NEW packages will be installed:
ncurses-term openssh-server openssh-sftp-server ssh ssh-import-id
0 upgraded, 5 newly installed, 0 to remove and 193 not upgraded.
Need to get 354 kB/662 kB of archives.
After this operation, 6,050 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://in.archive.ubuntu.com/ubuntu disco/main amd64 openssh-server amd64 1:7.9p1-10 [354 kB]
Fetched 354 kB in 0s (1,244 kB/s)
Preconfiguring packages ...
Selecting previously unselected package openssh-sftp-server.
(Reading database ... 259314 files and directories currently installed.)
Preparing to unpack .../openssh-sftp-server_1%3a7.9p1-10_amd64.deb ...
Unpacking openssh-sftp-server (1:7.9p1-10) ...
Selecting previously unselected package openssh-server.
Preparing to unpack .../openssh-server_1%3a7.9p1-10_amd64.deb ...
Unpacking openssh-server (1:7.9p1-10) ...
Selecting previously unselected package ssh.
Preparing to unpack .../ssh_1%3a7.9p1-10_all.deb ...
Unpacking ssh (1:7.9p1-10) ...
Selecting previously unselected package ncurses-term.
Preparing to unpack .../ncurses-term_6.1+20181013-2ubuntu2_all.deb ...
Unpacking ncurses-term (6.1+20181013-2ubuntu2) ...
Selecting previously unselected package ssh-import-id.
Preparing to unpack .../ssh-import-id_5.7-24-g4001a38e-0ubuntu1_all.deb ...
Unpacking ssh-import-id (5.7-24-g4001a38e-0ubuntu1) ...
Setting up openssh-sftp-server (1:7.9p1-10) ...
Setting up openssh-server (1:7.9p1-10) ...
Creating config file /etc/ssh/sshd_config with new version
Creating SSH2 RSA key; this may take some time ...
2048 SHA256:+gfg8c48ZdDBMp1mAmbsVYlK8Z+ec5QEFAAabl99no4 root@kiran-virtual-machine (RSA)
Creating SSH2 ECDSA key; this may take some time ...
256 SHA256:iGHE26kO5xJfJkSJSOsz6oVNdaHNkjJHtdXHM0tDexk root@kiran-virtual-machine (ECDSA)
Creating SSH2 ED25519 key; this may take some time ...
256 SHA256:QVuTom1PApIvXQjV8tijX2HvModxza681SJ9gsZxoKI root@kiran-virtual-machine (ED25519)
Created symlink /etc/systemd/system/sshd.service → /lib/systemd/system/ssh.service.
Created symlink /etc/systemd/system/multi-user.target.wants/ssh.service → /lib/systemd/system/ssh.service.
rescue-ssh.target is a disabled or a static unit, not starting it.
Setting up ssh-import-id (5.7-24-g4001a38e-0ubuntu1) ...
Attempting to convert /etc/ssh/ssh_import_id
Setting up ncurses-term (6.1+20181013-2ubuntu2) ...
Setting up ssh (1:7.9p1-10) ...
Processing triggers for systemd (240-6ubuntu5) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for ufw (0.36-1ubuntu1) ...
Error: Timeout was reached
root@kiran-virtual-machine:/etc/init.d# apt install ssh
Reading package lists... Done
Building dependency tree
Reading state information... Done
ssh is already the newest version (1:7.9p1-10).
0 upgraded, 0 newly installed, 0 to remove and 193 not upgraded.
root@kiran-virtual-machine:/etc/init.d# ssh 192.168.0.106
The authenticity of host '192.168.0.106 (192.168.0.106)' can't be established.
ECDSA key fingerprint is SHA256:iGHE26kO5xJfJkSJSOsz6oVNdaHNkjJHtdXHM0tDexk.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.0.106' (ECDSA) to the list of known hosts.
root@192.168.0.106's password:
Permission denied, please try again.
root@192.168.0.106's password:
Permission denied, please try again.
root@192.168.0.106's password:
root@192.168.0.106: Permission denied (publickey,password).
root@kiran-virtual-machine:/etc/init.d# passwd root
New password:
Retype new password:
passwd: password updated successfully
root@kiran-virtual-machine:/etc/init.d# ssh 192.168.0.106
root@192.168.0.106's password:
Permission denied, please try again.
root@192.168.0.106's password:
Permission denied, please try again.
root@192.168.0.106's password:
root@192.168.0.106: Permission denied (publickey,password).
root@kiran-virtual-machine:/etc/init.d# ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
/root/.ssh/id_rsa already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:P4t4VRlZ8oOkLEyxy3gK6SOrz/h2j/PGCnd8Js46ou4 root@kiran-virtual-machine
The key's randomart image is:
+---[RSA 2048]----+
| o. oo. |
| o o oo+ |
| + o .oo |
| . o o o . |
| o . S . |
| . o o .. |
| o +.= o.o |
| oo=+*o=.. o |
|*E=o+O*.. . |
+----[SHA256]-----+
root@kiran-virtual-machine:/etc/init.d# ssh 192.168.0.106
root@192.168.0.106's password:
Permission denied, please try again.
root@192.168.0.106's password:
Permission denied, please try again.
root@192.168.0.106's password:
root@kiran-virtual-machine:/etc/init.d# ansible 192.168.0.106 -m ping
[WARNING]: provided hosts list is empty, only localhost is available. Note that the
implicit localhost does not match 'all'
[WARNING]: Could not match supplied host pattern, ignoring: 192.168.0.106
root@kiran-virtual-machine:/etc/init.d# ls
acpid cups lvm2 rsyslog
alsa-utils cups-browsed lvm2-lvmetad saned
anacron dbus lvm2-lvmpolld sddm
apparmor gdomap mpd spice-vdagent
apport grub-common network-manager ssh
avahi-daemon haveged open-vm-tools udev
bluetooth hwclock.sh plymouth ufw
console-setup.sh irqbalance plymouth-log unattended-upgrades
cron kerneloops pppd-dns uuidd
cryptdisks keyboard-setup.sh procps whoopsie
cryptdisks-early kmod rsync x11-common
root@kiran-virtual-machine:/etc/init.d# ifconfig
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.106 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::636c:f0a3:379f:1f0d prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:9e:48:e0 txqueuelen 1000 (Ethernet)
RX packets 89294 bytes 97611064 (97.6 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 31075 bytes 2635881 (2.6 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 1863 bytes 194465 (194.4 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1863 bytes 194465 (194.4 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
root@kiran-virtual-machine:/etc/init.d#
root@kiran-virtual-machine:/etc/init.d# ssh 192.168.0.106
root@192.168.0.106's password:
Permission denied, please try again.
root@192.168.0.106's password:
Permission denied, please try again.
root@192.168.0.106's password:
root@192.168.0.106: Permission denied (publickey,password).
root@kiran-virtual-machine:/etc/init.d# ifconfig
ens33: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.0.106 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::636c:f0a3:379f:1f0d prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:9e:48:e0 txqueuelen 1000 (Ethernet)
RX packets 89688 bytes 97703793 (97.7 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 31147 bytes 2651196 (2.6 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 1912 bytes 201767 (201.7 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1912 bytes 201767 (201.7 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
root@kiran-virtual-machine:/etc/init.d# ifconfig
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.45.140 netmask 255.255.255.0 broadcast 192.168.45.255
inet6 fe80::636c:f0a3:379f:1f0d prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:9e:48:e0 txqueuelen 1000 (Ethernet)
RX packets 89709 bytes 97707606 (97.7 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 31196 bytes 2658754 (2.6 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 2024 bytes 211081 (211.0 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2024 bytes 211081 (211.0 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
root@kiran-virtual-machine:/etc/init.d# ansible 192.168.45.141 -m ping
[WARNING]: provided hosts list is empty, only localhost is available. Note that the
implicit localhost does not match 'all'
[WARNING]: Could not match supplied host pattern, ignoring: 192.168.45.141
root@kiran-virtual-machine:/etc/init.d# ssh-copy-id 192.168.45.141
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/root/.ssh/id_rsa.pub"
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: ERROR: ssh: connect to host 192.168.45.141 port 22: Connection refused
root@kiran-virtual-machine:/etc/init.d# ssh-copy-id 192.168.45.141
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/root/.ssh/id_rsa.pub"
The authenticity of host '192.168.45.141 (192.168.45.141)' can't be established.
ECDSA key fingerprint is SHA256:rA7kTGM4/Hy8WcbMPjVQ5Xa6mxSmIaPrHYRqeJazWdQ.
Are you sure you want to continue connecting (yes/no)? yes
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
root@192.168.45.141's password:
Permission denied, please try again.
root@192.168.45.141's password:
Number of key(s) added: 1
Now try logging into the machine, with: "ssh '192.168.45.141'"
and check to make sure that only the key(s) you wanted were added.
root@kiran-virtual-machine:/etc/init.d# ansible 192.168.45.141 -m ping
[WARNING]: provided hosts list is empty, only localhost is available. Note that the
implicit localhost does not match 'all'
[WARNING]: Could not match supplied host pattern, ignoring: 192.168.45.141
root@kiran-virtual-machine:/etc/init.d# ssh-copy-id 192.168.45.141
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/root/.ssh/id_rsa.pub"
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
Enter passphrase for key '/root/.ssh/id_rsa':
/usr/bin/ssh-copy-id: WARNING: All keys were skipped because they already exist on the remote system.
(if you think this is a mistake, you may want to use -f option)
root@kiran-virtual-machine:/etc/init.d# ansible 192.168.45.141 -m ping
[WARNING]: provided hosts list is empty, only localhost is available. Note that the
implicit localhost does not match 'all'
[WARNING]: Could not match supplied host pattern, ignoring: 192.168.45.141
root@kiran-virtual-machine:/etc/init.d# ansible 192.168.45.140 -m ping
[WARNING]: provided hosts list is empty, only localhost is available. Note that the
implicit localhost does not match 'all'
[WARNING]: Could not match supplied host pattern, ignoring: 192.168.45.140
root@kiran-virtual-machine:/etc/init.d# vi /etc/hosts
root@kiran-virtual-machine:/etc/init.d#
ANSIBLE ON UBUNTU
Ansible localhost -m apt -a "name=apache2 state=present"
[WARNING]: provided hosts list is empty, only localhost is available. Note that the
implicit localhost does not match 'all'
localhost | CHANGED => {
"cache_update_time": 1566355877,
"cache_updated": false,
"changed": true,
"stderr": "",
"stderr_lines": [],
"stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following additional packages will be installed:\n apache2-bin apache2-data apache2-utils libapr1 libaprutil1\n libaprutil1-dbd-sqlite3 libaprutil1-ldap\nSuggested packages:\n apache2-doc apache2-suexec-pristine | apache2-suexec-custom\nThe following NEW packages will be installed:\n apache2 apache2-bin apache2-data apache2-utils libapr1 libaprutil1\n libaprutil1-dbd-sqlite3 libaprutil1-ldap\n0 upgraded, 8 newly installed, 0 to remove and 193 not upgraded.\nNeed to get 1698 kB of archives.\nAfter this operation, 7314 kB of additional disk space will be used.\nGet:1 http://in.archive.ubuntu.com/ubuntu disco/main amd64 libapr1 amd64 1.6.5-1 [91.6 kB]\nGet:2 http://in.archive.ubuntu.com/ubuntu disco/main amd64 libaprutil1 amd64 1.6.1-3build1 [84.7 kB]\nGet:3 http://in.archive.ubuntu.com/ubuntu disco/main amd64 libaprutil1-dbd-sqlite3 amd64 1.6.1-3build1 [10.6 kB]\nGet:4 http://in.archive.ubuntu.com/ubuntu disco/main amd64 libaprutil1-ldap amd64 1.6.1-3build1 [8692 B]\nGet:5 http://in.archive.ubuntu.com/ubuntu disco/main amd64 apache2-bin amd64 2.4.38-2ubuntu2 [1157 kB]\nGet:6 http://in.archive.ubuntu.com/ubuntu disco/main amd64 apache2-data all 2.4.38-2ubuntu2 [164 kB]\nGet:7 http://in.archive.ubuntu.com/ubuntu disco/main amd64 apache2-utils amd64 2.4.38-2ubuntu2 [86.1 kB]\nGet:8 http://in.archive.ubuntu.com/ubuntu disco/main amd64 apache2 amd64 2.4.38-2ubuntu2 [95.5 kB]\nFetched 1698 kB in 2s (1060 kB/s)\nSelecting previously unselected package libapr1:amd64.\r\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 262138 files and directories currently installed.)\r\nPreparing to unpack .../0-libapr1_1.6.5-1_amd64.deb ...\r\nUnpacking libapr1:amd64 (1.6.5-1) ...\r\nSelecting previously unselected package libaprutil1:amd64.\r\nPreparing to unpack .../1-libaprutil1_1.6.1-3build1_amd64.deb ...\r\nUnpacking libaprutil1:amd64 (1.6.1-3build1) ...\r\nSelecting previously unselected package libaprutil1-dbd-sqlite3:amd64.\r\nPreparing to unpack .../2-libaprutil1-dbd-sqlite3_1.6.1-3build1_amd64.deb ...\r\nUnpacking libaprutil1-dbd-sqlite3:amd64 (1.6.1-3build1) ...\r\nSelecting previously unselected package libaprutil1-ldap:amd64.\r\nPreparing to unpack .../3-libaprutil1-ldap_1.6.1-3build1_amd64.deb ...\r\nUnpacking libaprutil1-ldap:amd64 (1.6.1-3build1) ...\r\nSelecting previously unselected package apache2-bin.\r\nPreparing to unpack .../4-apache2-bin_2.4.38-2ubuntu2_amd64.deb ...\r\nUnpacking apache2-bin (2.4.38-2ubuntu2) ...\r\nSelecting previously unselected package apache2-data.\r\nPreparing to unpack .../5-apache2-data_2.4.38-2ubuntu2_all.deb ...\r\nUnpacking apache2-data (2.4.38-2ubuntu2) ...\r\nSelecting previously unselected package apache2-utils.\r\nPreparing to unpack .../6-apache2-utils_2.4.38-2ubuntu2_amd64.deb ...\r\nUnpacking apache2-utils (2.4.38-2ubuntu2) ...\r\nSelecting previously unselected package apache2.\r\nPreparing to unpack .../7-apache2_2.4.38-2ubuntu2_amd64.deb ...\r\nUnpacking apache2 (2.4.38-2ubuntu2) ...\r\nSetting up libapr1:amd64 (1.6.5-1) ...\r\nSetting up apache2-data (2.4.38-2ubuntu2) ...\r\nSetting up libaprutil1:amd64 (1.6.1-3build1) ...\r\nSetting up libaprutil1-ldap:amd64 (1.6.1-3build1) ...\r\nSetting up libaprutil1-dbd-sqlite3:amd64 (1.6.1-3build1) ...\r\nSetting up apache2-utils (2.4.38-2ubuntu2) ...\r\nSetting up apache2-bin (2.4.38-2ubuntu2) ...\r\nSetting up apache2 (2.4.38-2ubuntu2) ...\r\nEnabling module mpm_event.\r\nEnabling module authz_core.\r\nEnabling module authz_host.\r\nEnabling module authn_core.\r\nEnabling module auth_basic.\r\nEnabling module access_compat.\r\nEnabling module authn_file.\r\nEnabling module authz_user.\r\nEnabling module alias.\r\nEnabling module dir.\r\nEnabling module autoindex.\r\nEnabling module env.\r\nEnabling module mime.\r\nEnabling module negotiation.\r\nEnabling module setenvif.\r\nEnabling module filter.\r\nEnabling module deflate.\r\nEnabling module status.\r\nEnabling module reqtimeout.\r\nEnabling conf charset.\r\nEnabling conf localized-error-pages.\r\nEnabling conf other-vhosts-access-log.\r\nEnabling conf security.\r\nEnabling conf serve-cgi-bin.\r\nEnabling site 000-default.\r\nCreated symlink /etc/systemd/system/multi-user.target.wants/apache2.service -> /lib/systemd/system/apache2.service.\r\nCreated symlink /etc/systemd/system/multi-user.target.wants/apache-htcacheclean.service -> /lib/systemd/system/apache-htcacheclean.service.\r\nProcessing triggers for ufw (0.36-1ubuntu1) ...\r\nProcessing triggers for systemd (240-6ubuntu5) ...\r\nProcessing triggers for man-db (2.8.5-2) ...\r\nProcessing triggers for libc-bin (2.29-0ubuntu2) ...\r\n",
"stdout_lines": [
"Reading package lists...",
"Building dependency tree...",
"Reading state information...",
"The following additional packages will be installed:",
" apache2-bin apache2-data apache2-utils libapr1 libaprutil1",
" libaprutil1-dbd-sqlite3 libaprutil1-ldap",
"Suggested packages:",
" apache2-doc apache2-suexec-pristine | apache2-suexec-custom",
"The following NEW packages will be installed:",
" apache2 apache2-bin apache2-data apache2-utils libapr1 libaprutil1",
" libaprutil1-dbd-sqlite3 libaprutil1-ldap",
"0 upgraded, 8 newly installed, 0 to remove and 193 not upgraded.",
"Need to get 1698 kB of archives.",
"After this operation, 7314 kB of additional disk space will be used.",
"Get:1 http://in.archive.ubuntu.com/ubuntu disco/main amd64 libapr1 amd64 1.6.5-1 [91.6 kB]",
"Get:2 http://in.archive.ubuntu.com/ubuntu disco/main amd64 libaprutil1 amd64 1.6.1-3build1 [84.7 kB]",
"Get:3 http://in.archive.ubuntu.com/ubuntu disco/main amd64 libaprutil1-dbd-sqlite3 amd64 1.6.1-3build1 [10.6 kB]",
"Get:4 http://in.archive.ubuntu.com/ubuntu disco/main amd64 libaprutil1-ldap amd64 1.6.1-3build1 [8692 B]",
"Get:5 http://in.archive.ubuntu.com/ubuntu disco/main amd64 apache2-bin amd64 2.4.38-2ubuntu2 [1157 kB]",
"Get:6 http://in.archive.ubuntu.com/ubuntu disco/main amd64 apache2-data all 2.4.38-2ubuntu2 [164 kB]",
"Get:7 http://in.archive.ubuntu.com/ubuntu disco/main amd64 apache2-utils amd64 2.4.38-2ubuntu2 [86.1 kB]",
"Get:8 http://in.archive.ubuntu.com/ubuntu disco/main amd64 apache2 amd64 2.4.38-2ubuntu2 [95.5 kB]",
"Fetched 1698 kB in 2s (1060 kB/s)",
"Selecting previously unselected package libapr1:amd64.",
"(Reading database ... ",
"(Reading database ... 5%",
"(Reading database ... 10%",
"(Reading database ... 15%",
"(Reading database ... 20%",
"(Reading database ... 25%",
"(Reading database ... 30%",
"(Reading database ... 35%",
"(Reading database ... 40%",
"(Reading database ... 45%",
"(Reading database ... 50%",
"(Reading database ... 55%",
"(Reading database ... 60%",
"(Reading database ... 65%",
"(Reading database ... 70%",
"(Reading database ... 75%",
"(Reading database ... 80%",
"(Reading database ... 85%",
"(Reading database ... 90%",
"(Reading database ... 95%",
"(Reading database ... 100%",
"(Reading database ... 262138 files and directories currently installed.)",
"Preparing to unpack .../0-libapr1_1.6.5-1_amd64.deb ...",
"Unpacking libapr1:amd64 (1.6.5-1) ...",
"Selecting previously unselected package libaprutil1:amd64.",
"Preparing to unpack .../1-libaprutil1_1.6.1-3build1_amd64.deb ...",
"Unpacking libaprutil1:amd64 (1.6.1-3build1) ...",
"Selecting previously unselected package libaprutil1-dbd-sqlite3:amd64.",
"Preparing to unpack .../2-libaprutil1-dbd-sqlite3_1.6.1-3build1_amd64.deb ...",
"Unpacking libaprutil1-dbd-sqlite3:amd64 (1.6.1-3build1) ...",
"Selecting previously unselected package libaprutil1-ldap:amd64.",
"Preparing to unpack .../3-libaprutil1-ldap_1.6.1-3build1_amd64.deb ...",
"Unpacking libaprutil1-ldap:amd64 (1.6.1-3build1) ...",
"Selecting previously unselected package apache2-bin.",
"Preparing to unpack .../4-apache2-bin_2.4.38-2ubuntu2_amd64.deb ...",
"Unpacking apache2-bin (2.4.38-2ubuntu2) ...",
"Selecting previously unselected package apache2-data.",
"Preparing to unpack .../5-apache2-data_2.4.38-2ubuntu2_all.deb ...",
"Unpacking apache2-data (2.4.38-2ubuntu2) ...",
"Selecting previously unselected package apache2-utils.",
"Preparing to unpack .../6-apache2-utils_2.4.38-2ubuntu2_amd64.deb ...",
"Unpacking apache2-utils (2.4.38-2ubuntu2) ...",
"Selecting previously unselected package apache2.",
"Preparing to unpack .../7-apache2_2.4.38-2ubuntu2_amd64.deb ...",
"Unpacking apache2 (2.4.38-2ubuntu2) ...",
"Setting up libapr1:amd64 (1.6.5-1) ...",
"Setting up apache2-data (2.4.38-2ubuntu2) ...",
"Setting up libaprutil1:amd64 (1.6.1-3build1) ...",
"Setting up libaprutil1-ldap:amd64 (1.6.1-3build1) ...",
"Setting up libaprutil1-dbd-sqlite3:amd64 (1.6.1-3build1) ...",
"Setting up apache2-utils (2.4.38-2ubuntu2) ...",
"Setting up apache2-bin (2.4.38-2ubuntu2) ...",
"Setting up apache2 (2.4.38-2ubuntu2) ...",
"Enabling module mpm_event.",
"Enabling module authz_core.",
"Enabling module authz_host.",
"Enabling module authn_core.",
"Enabling module auth_basic.",
"Enabling module access_compat.",
"Enabling module authn_file.",
"Enabling module authz_user.",
"Enabling module alias.",
"Enabling module dir.",
"Enabling module autoindex.",
"Enabling module env.",
"Enabling module mime.",
"Enabling module negotiation.",
"Enabling module setenvif.",
"Enabling module filter.",
"Enabling module deflate.",
"Enabling module status.",
"Enabling module reqtimeout.",
"Enabling conf charset.",
"Enabling conf localized-error-pages.",
"Enabling conf other-vhosts-access-log.",
"Enabling conf security.",
"Enabling conf serve-cgi-bin.",
"Enabling site 000-default.",
"Created symlink /etc/systemd/system/multi-user.target.wants/apache2.service -> /lib/systemd/system/apache2.service.",
"Created symlink /etc/systemd/system/multi-user.target.wants/apache-htcacheclean.service -> /lib/systemd/system/apache-htcacheclean.service.",
"Processing triggers for ufw (0.36-1ubuntu1) ...",
"Processing triggers for systemd (240-6ubuntu5) ...",
"Processing triggers for man-db (2.8.5-2) ...",
"Processing triggers for libc-bin (2.29-0ubuntu2) ..."
]
}
root@kiran-virtual-machine:/etc/init.d#
root@kiran-virtual-machine:/etc/init.d# ansible localhost -m apt -a "name=mysql-server state=present"
[WARNING]: provided hosts list is empty, only localhost is available. Note that the
implicit localhost does not match 'all'
localhost | CHANGED => {
"cache_update_time": 1566355877,
"cache_updated": false,
"changed": true,
"stderr": "",
"stderr_lines": [],
"stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following additional packages will be installed:\n libevent-core-2.1-6 libhtml-template-perl libmecab2 mysql-client-5.7\n mysql-server-5.7 mysql-server-core-5.7\nSuggested packages:\n libipc-sharedcache-perl mailx tinyca\nThe following NEW packages will be installed:\n libevent-core-2.1-6 libhtml-template-perl libmecab2 mysql-client-5.7\n mysql-server mysql-server-5.7\nThe following packages will be upgraded:\n mysql-server-core-5.7\n1 upgraded, 6 newly installed, 0 to remove and 192 not upgraded.\nNeed to get 5970 kB/13.8 MB of archives.\nAfter this operation, 84.3 MB of additional disk space will be used.\nGet:1 http://in.archive.ubuntu.com/ubuntu disco-updates/main amd64 mysql-client-5.7 amd64 5.7.27-0ubuntu0.19.04.1 [2307 kB]\nGet:2 http://in.archive.ubuntu.com/ubuntu disco/main amd64 libevent-core-2.1-6 amd64 2.1.8-stable-4build1 [85.9 kB]\nGet:3 http://in.archive.ubuntu.com/ubuntu disco/main amd64 libmecab2 amd64 0.996-6 [257 kB]\nGet:4 http://in.archive.ubuntu.com/ubuntu disco-updates/main amd64 mysql-server-5.7 amd64 5.7.27-0ubuntu0.19.04.1 [3251 kB]\nGet:5 http://in.archive.ubuntu.com/ubuntu disco/main amd64 libhtml-template-perl all 2.97-1 [59.0 kB]\nGet:6 http://in.archive.ubuntu.com/ubuntu disco-updates/main amd64 mysql-server all 5.7.27-0ubuntu0.19.04.1 [9956 B]\nPreconfiguring packages ...\nFetched 5970 kB in 5s (1236 kB/s)\nSelecting previously unselected package mysql-client-5.7.\r\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 262838 files and directories currently installed.)\r\nPreparing to unpack .../0-mysql-client-5.7_5.7.27-0ubuntu0.19.04.1_amd64.deb ...\r\nUnpacking mysql-client-5.7 (5.7.27-0ubuntu0.19.04.1) ...\r\nPreparing to unpack .../1-mysql-server-core-5.7_5.7.27-0ubuntu0.19.04.1_amd64.deb ...\r\nUnpacking mysql-server-core-5.7 (5.7.27-0ubuntu0.19.04.1) over (5.7.25-1) ...\r\nSelecting previously unselected package libevent-core-2.1-6:amd64.\r\nPreparing to unpack .../2-libevent-core-2.1-6_2.1.8-stable-4build1_amd64.deb ...\r\nUnpacking libevent-core-2.1-6:amd64 (2.1.8-stable-4build1) ...\r\nSelecting previously unselected package libmecab2:amd64.\r\nPreparing to unpack .../3-libmecab2_0.996-6_amd64.deb ...\r\nUnpacking libmecab2:amd64 (0.996-6) ...\r\nSelecting previously unselected package mysql-server-5.7.\r\nPreparing to unpack .../4-mysql-server-5.7_5.7.27-0ubuntu0.19.04.1_amd64.deb ...\r\nUnpacking mysql-server-5.7 (5.7.27-0ubuntu0.19.04.1) ...\r\nSelecting previously unselected package libhtml-template-perl.\r\nPreparing to unpack .../5-libhtml-template-perl_2.97-1_all.deb ...\r\nUnpacking libhtml-template-perl (2.97-1) ...\r\nSelecting previously unselected package mysql-server.\r\nPreparing to unpack .../6-mysql-server_5.7.27-0ubuntu0.19.04.1_all.deb ...\r\nUnpacking mysql-server (5.7.27-0ubuntu0.19.04.1) ...\r\nSetting up libmecab2:amd64 (0.996-6) ...\r\nSetting up mysql-client-5.7 (5.7.27-0ubuntu0.19.04.1) ...\r\nSetting up mysql-server-core-5.7 (5.7.27-0ubuntu0.19.04.1) ...\r\nSetting up libhtml-template-perl (2.97-1) ...\r\nSetting up libevent-core-2.1-6:amd64 (2.1.8-stable-4build1) ...\r\nSetting up mysql-server-5.7 (5.7.27-0ubuntu0.19.04.1) ...\r\nupdate-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode\r\nRenaming removed key_buffer and myisam-recover options (if present)\r\nCreated symlink /etc/systemd/system/multi-user.target.wants/mysql.service -> /lib/systemd/system/mysql.service.\r\nSetting up mysql-server (5.7.27-0ubuntu0.19.04.1) ...\r\nProcessing triggers for systemd (240-6ubuntu5) ...\r\nProcessing triggers for man-db (2.8.5-2) ...\r\nProcessing triggers for libc-bin (2.29-0ubuntu2) ...\r\n",
"stdout_lines": [
"Reading package lists...",
"Building dependency tree...",
"Reading state information...",
"The following additional packages will be installed:",
" libevent-core-2.1-6 libhtml-template-perl libmecab2 mysql-client-5.7",
" mysql-server-5.7 mysql-server-core-5.7",
"Suggested packages:",
" libipc-sharedcache-perl mailx tinyca",
"The following NEW packages will be installed:",
" libevent-core-2.1-6 libhtml-template-perl libmecab2 mysql-client-5.7",
" mysql-server mysql-server-5.7",
"The following packages will be upgraded:",
" mysql-server-core-5.7",
"1 upgraded, 6 newly installed, 0 to remove and 192 not upgraded.",
"Need to get 5970 kB/13.8 MB of archives.",
"After this operation, 84.3 MB of additional disk space will be used.",
"Get:1 http://in.archive.ubuntu.com/ubuntu disco-updates/main amd64 mysql-client-5.7 amd64 5.7.27-0ubuntu0.19.04.1 [2307 kB]",
"Get:2 http://in.archive.ubuntu.com/ubuntu disco/main amd64 libevent-core-2.1-6 amd64 2.1.8-stable-4build1 [85.9 kB]",
"Get:3 http://in.archive.ubuntu.com/ubuntu disco/main amd64 libmecab2 amd64 0.996-6 [257 kB]",
"Get:4 http://in.archive.ubuntu.com/ubuntu disco-updates/main amd64 mysql-server-5.7 amd64 5.7.27-0ubuntu0.19.04.1 [3251 kB]",
"Get:5 http://in.archive.ubuntu.com/ubuntu disco/main amd64 libhtml-template-perl all 2.97-1 [59.0 kB]",
"Get:6 http://in.archive.ubuntu.com/ubuntu disco-updates/main amd64 mysql-server all 5.7.27-0ubuntu0.19.04.1 [9956 B]",
"Preconfiguring packages ...",
"Fetched 5970 kB in 5s (1236 kB/s)",
"Selecting previously unselected package mysql-client-5.7.",
"(Reading database ... ",
"(Reading database ... 5%",
"(Reading database ... 10%",
"(Reading database ... 15%",
"(Reading database ... 20%",
"(Reading database ... 25%",
"(Reading database ... 30%",
"(Reading database ... 35%",
"(Reading database ... 40%",
"(Reading database ... 45%",
"(Reading database ... 50%",
"(Reading database ... 55%",
"(Reading database ... 60%",
"(Reading database ... 65%",
"(Reading database ... 70%",
"(Reading database ... 75%",
"(Reading database ... 80%",
"(Reading database ... 85%",
"(Reading database ... 90%",
"(Reading database ... 95%",
"(Reading database ... 100%",
"(Reading database ... 262838 files and directories currently installed.)",
"Preparing to unpack .../0-mysql-client-5.7_5.7.27-0ubuntu0.19.04.1_amd64.deb ...",
"Unpacking mysql-client-5.7 (5.7.27-0ubuntu0.19.04.1) ...",
"Preparing to unpack .../1-mysql-server-core-5.7_5.7.27-0ubuntu0.19.04.1_amd64.deb ...",
"Unpacking mysql-server-core-5.7 (5.7.27-0ubuntu0.19.04.1) over (5.7.25-1) ...",
"Selecting previously unselected package libevent-core-2.1-6:amd64.",
"Preparing to unpack .../2-libevent-core-2.1-6_2.1.8-stable-4build1_amd64.deb ...",
"Unpacking libevent-core-2.1-6:amd64 (2.1.8-stable-4build1) ...",
"Selecting previously unselected package libmecab2:amd64.",
"Preparing to unpack .../3-libmecab2_0.996-6_amd64.deb ...",
"Unpacking libmecab2:amd64 (0.996-6) ...",
"Selecting previously unselected package mysql-server-5.7.",
"Preparing to unpack .../4-mysql-server-5.7_5.7.27-0ubuntu0.19.04.1_amd64.deb ...",
"Unpacking mysql-server-5.7 (5.7.27-0ubuntu0.19.04.1) ...",
"Selecting previously unselected package libhtml-template-perl.",
"Preparing to unpack .../5-libhtml-template-perl_2.97-1_all.deb ...",
"Unpacking libhtml-template-perl (2.97-1) ...",
"Selecting previously unselected package mysql-server.",
"Preparing to unpack .../6-mysql-server_5.7.27-0ubuntu0.19.04.1_all.deb ...",
"Unpacking mysql-server (5.7.27-0ubuntu0.19.04.1) ...",
"Setting up libmecab2:amd64 (0.996-6) ...",
"Setting up mysql-client-5.7 (5.7.27-0ubuntu0.19.04.1) ...",
"Setting up mysql-server-core-5.7 (5.7.27-0ubuntu0.19.04.1) ...",
"Setting up libhtml-template-perl (2.97-1) ...",
"Setting up libevent-core-2.1-6:amd64 (2.1.8-stable-4build1) ...",
"Setting up mysql-server-5.7 (5.7.27-0ubuntu0.19.04.1) ...",
"update-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode",
"Renaming removed key_buffer and myisam-recover options (if present)",
"Created symlink /etc/systemd/system/multi-user.target.wants/mysql.service -> /lib/systemd/system/mysql.service.",
"Setting up mysql-server (5.7.27-0ubuntu0.19.04.1) ...",
"Processing triggers for systemd (240-6ubuntu5) ...",
"Processing triggers for man-db (2.8.5-2) ...",
"Processing triggers for libc-bin (2.29-0ubuntu2) ..."
]
}
root@kiran-virtual-machine:/etc/init.d#
root@kiran-virtual-machine:/etc/init.d# ansible localhost -m apt -a "name=docker.io state=present"
[WARNING]: provided hosts list is empty, only localhost is available. Note that the
implicit localhost does not match 'all'
localhost | CHANGED => {
"cache_update_time": 1566355877,
"cache_updated": false,
"changed": true,
"stderr": "",
"stderr_lines": [],
"stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following additional packages will be installed:\n bridge-utils cgroupfs-mount containerd pigz runc ubuntu-fan\nSuggested packages:\n ifupdown aufs-tools btrfs-progs debootstrap docker-doc rinse zfs-fuse\n | zfsutils\nThe following NEW packages will be installed:\n bridge-utils cgroupfs-mount containerd docker.io pigz runc ubuntu-fan\n0 upgraded, 7 newly installed, 0 to remove and 192 not upgraded.\nNeed to get 52.2 MB of archives.\nAfter this operation, 257 MB of additional disk space will be used.\nGet:1 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 pigz amd64 2.4-1 [57.4 kB]\nGet:2 http://in.archive.ubuntu.com/ubuntu disco/main amd64 bridge-utils amd64 1.6-2ubuntu1 [30.5 kB]\nGet:3 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 cgroupfs-mount all 1.4 [6320 B]\nGet:4 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 runc amd64 1.0.0~rc7+git20190403.029124da-0ubuntu1 [1904 kB]\nGet:5 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 containerd amd64 1.2.6-0ubuntu1 [19.4 MB]\nGet:6 http://in.archive.ubuntu.com/ubuntu disco-updates/universe amd64 docker.io amd64 18.09.7-0ubuntu1~19.04.5 [30.7 MB]\nGet:7 http://in.archive.ubuntu.com/ubuntu disco/main amd64 ubuntu-fan all 0.12.12 [34.6 kB]\nPreconfiguring packages ...\nFetched 52.2 MB in 38s (1372 kB/s)\nSelecting previously unselected package pigz.\r\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 262995 files and directories currently installed.)\r\nPreparing to unpack .../0-pigz_2.4-1_amd64.deb ...\r\nUnpacking pigz (2.4-1) ...\r\nSelecting previously unselected package bridge-utils.\r\nPreparing to unpack .../1-bridge-utils_1.6-2ubuntu1_amd64.deb ...\r\nUnpacking bridge-utils (1.6-2ubuntu1) ...\r\nSelecting previously unselected package cgroupfs-mount.\r\nPreparing to unpack .../2-cgroupfs-mount_1.4_all.deb ...\r\nUnpacking cgroupfs-mount (1.4) ...\r\nSelecting previously unselected package runc.\r\nPreparing to unpack .../3-runc_1.0.0~rc7+git20190403.029124da-0ubuntu1_amd64.deb ...\r\nUnpacking runc (1.0.0~rc7+git20190403.029124da-0ubuntu1) ...\r\nSelecting previously unselected package containerd.\r\nPreparing to unpack .../4-containerd_1.2.6-0ubuntu1_amd64.deb ...\r\nUnpacking containerd (1.2.6-0ubuntu1) ...\r\nSelecting previously unselected package docker.io.\r\nPreparing to unpack .../5-docker.io_18.09.7-0ubuntu1~19.04.5_amd64.deb ...\r\nUnpacking docker.io (18.09.7-0ubuntu1~19.04.5) ...\r\nSelecting previously unselected package ubuntu-fan.\r\nPreparing to unpack .../6-ubuntu-fan_0.12.12_all.deb ...\r\nUnpacking ubuntu-fan (0.12.12) ...\r\nSetting up runc (1.0.0~rc7+git20190403.029124da-0ubuntu1) ...\r\nSetting up bridge-utils (1.6-2ubuntu1) ...\r\nSetting up pigz (2.4-1) ...\r\nSetting up cgroupfs-mount (1.4) ...\r\nSetting up containerd (1.2.6-0ubuntu1) ...\r\nCreated symlink /etc/systemd/system/multi-user.target.wants/containerd.service -> /lib/systemd/system/containerd.service.\r\nSetting up ubuntu-fan (0.12.12) ...\r\nCreated symlink /etc/systemd/system/multi-user.target.wants/ubuntu-fan.service -> /lib/systemd/system/ubuntu-fan.service.\r\nSetting up docker.io (18.09.7-0ubuntu1~19.04.5) ...\r\nAdding group `docker' (GID 131) ...\r\nDone.\r\nCreated symlink /etc/systemd/system/sockets.target.wants/docker.socket -> /lib/systemd/system/docker.socket.\r\nProcessing triggers for systemd (240-6ubuntu5) ...\r\nProcessing triggers for man-db (2.8.5-2) ...\r\n",
"stdout_lines": [
"Reading package lists...",
"Building dependency tree...",
"Reading state information...",
"The following additional packages will be installed:",
" bridge-utils cgroupfs-mount containerd pigz runc ubuntu-fan",
"Suggested packages:",
" ifupdown aufs-tools btrfs-progs debootstrap docker-doc rinse zfs-fuse",
" | zfsutils",
"The following NEW packages will be installed:",
" bridge-utils cgroupfs-mount containerd docker.io pigz runc ubuntu-fan",
"0 upgraded, 7 newly installed, 0 to remove and 192 not upgraded.",
"Need to get 52.2 MB of archives.",
"After this operation, 257 MB of additional disk space will be used.",
"Get:1 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 pigz amd64 2.4-1 [57.4 kB]",
"Get:2 http://in.archive.ubuntu.com/ubuntu disco/main amd64 bridge-utils amd64 1.6-2ubuntu1 [30.5 kB]",
"Get:3 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 cgroupfs-mount all 1.4 [6320 B]",
"Get:4 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 runc amd64 1.0.0~rc7+git20190403.029124da-0ubuntu1 [1904 kB]",
"Get:5 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 containerd amd64 1.2.6-0ubuntu1 [19.4 MB]",
"Get:6 http://in.archive.ubuntu.com/ubuntu disco-updates/universe amd64 docker.io amd64 18.09.7-0ubuntu1~19.04.5 [30.7 MB]",
"Get:7 http://in.archive.ubuntu.com/ubuntu disco/main amd64 ubuntu-fan all 0.12.12 [34.6 kB]",
"Preconfiguring packages ...",
"Fetched 52.2 MB in 38s (1372 kB/s)",
"Selecting previously unselected package pigz.",
"(Reading database ... ",
"(Reading database ... 5%",
"(Reading database ... 10%",
"(Reading database ... 15%",
"(Reading database ... 20%",
"(Reading database ... 25%",
"(Reading database ... 30%",
"(Reading database ... 35%",
"(Reading database ... 40%",
"(Reading database ... 45%",
"(Reading database ... 50%",
"(Reading database ... 55%",
"(Reading database ... 60%",
"(Reading database ... 65%",
"(Reading database ... 70%",
"(Reading database ... 75%",
"(Reading database ... 80%",
"(Reading database ... 85%",
"(Reading database ... 90%",
"(Reading database ... 95%",
"(Reading database ... 100%",
"(Reading database ... 262995 files and directories currently installed.)",
"Preparing to unpack .../0-pigz_2.4-1_amd64.deb ...",
"Unpacking pigz (2.4-1) ...",
"Selecting previously unselected package bridge-utils.",
"Preparing to unpack .../1-bridge-utils_1.6-2ubuntu1_amd64.deb ...",
"Unpacking bridge-utils (1.6-2ubuntu1) ...",
"Selecting previously unselected package cgroupfs-mount.",
"Preparing to unpack .../2-cgroupfs-mount_1.4_all.deb ...",
"Unpacking cgroupfs-mount (1.4) ...",
"Selecting previously unselected package runc.",
"Preparing to unpack .../3-runc_1.0.0~rc7+git20190403.029124da-0ubuntu1_amd64.deb ...",
"Unpacking runc (1.0.0~rc7+git20190403.029124da-0ubuntu1) ...",
"Selecting previously unselected package containerd.",
"Preparing to unpack .../4-containerd_1.2.6-0ubuntu1_amd64.deb ...",
"Unpacking containerd (1.2.6-0ubuntu1) ...",
"Selecting previously unselected package docker.io.",
"Preparing to unpack .../5-docker.io_18.09.7-0ubuntu1~19.04.5_amd64.deb ...",
"Unpacking docker.io (18.09.7-0ubuntu1~19.04.5) ...",
"Selecting previously unselected package ubuntu-fan.",
"Preparing to unpack .../6-ubuntu-fan_0.12.12_all.deb ...",
"Unpacking ubuntu-fan (0.12.12) ...",
"Setting up runc (1.0.0~rc7+git20190403.029124da-0ubuntu1) ...",
"Setting up bridge-utils (1.6-2ubuntu1) ...",
"Setting up pigz (2.4-1) ...",
"Setting up cgroupfs-mount (1.4) ...",
"Setting up containerd (1.2.6-0ubuntu1) ...",
"Created symlink /etc/systemd/system/multi-user.target.wants/containerd.service -> /lib/systemd/system/containerd.service.",
"Setting up ubuntu-fan (0.12.12) ...",
"Created symlink /etc/systemd/system/multi-user.target.wants/ubuntu-fan.service -> /lib/systemd/system/ubuntu-fan.service.",
"Setting up docker.io (18.09.7-0ubuntu1~19.04.5) ...",
"Adding group `docker' (GID 131) ...",
"Done.",
"Created symlink /etc/systemd/system/sockets.target.wants/docker.socket -> /lib/systemd/system/docker.socket.",
"Processing triggers for systemd (240-6ubuntu5) ...",
"Processing triggers for man-db (2.8.5-2) ..."
]
}
root@kiran-virtual-machine:/etc/init.d# docker
Usage: docker [OPTIONS] COMMAND
A self-sufficient runtime for containers
Options:
--config string Location of client config files (default "/root/.docker")
-D, --debug Enable debug mode
-H, --host list Daemon socket(s) to connect to
-l, --log-level string Set the logging level
("debug"|"info"|"warn"|"error"|"fatal") (default "info")
--tls Use TLS; implied by --tlsverify
--tlscacert string Trust certs signed only by this CA (default
"/root/.docker/ca.pem")
--tlscert string Path to TLS certificate file (default
"/root/.docker/cert.pem")
--tlskey string Path to TLS key file (default "/root/.docker/key.pem")
--tlsverify Use TLS and verify the remote
-v, --version Print version information and quit
Management Commands:
builder Manage builds
config Manage Docker configs
container Manage containers
engine Manage the docker engine
image Manage images
network Manage networks
node Manage Swarm nodes
plugin Manage plugins
secret Manage Docker secrets
service Manage services
stack Manage Docker stacks
swarm Manage Swarm
system Manage Docker
trust Manage trust on Docker images
volume Manage volumes
Commands:
attach Attach local standard input, output, and error streams to a running container
build Build an image from a Dockerfile
commit Create a new image from a container's changes
cp Copy files/folders between a container and the local filesystem
create Create a new container
diff Inspect changes to files or directories on a container's filesystem
events Get real time events from the server
exec Run a command in a running container
export Export a container's filesystem as a tar archive
history Show the history of an image
images List images
import Import the contents from a tarball to create a filesystem image
info Display system-wide information
inspect Return low-level information on Docker objects
kill Kill one or more running containers
load Load an image from a tar archive or STDIN
login Log in to a Docker registry
logout Log out from a Docker registry
logs Fetch the logs of a container
pause Pause all processes within one or more containers
port List port mappings or a specific mapping for the container
ps List containers
pull Pull an image or a repository from a registry
push Push an image or a repository to a registry
rename Rename a container
restart Restart one or more containers
rm Remove one or more containers
rmi Remove one or more images
run Run a command in a new container
save Save one or more images to a tar archive (streamed to STDOUT by default)
search Search the Docker Hub for images
start Start one or more stopped containers
stats Display a live stream of container(s) resource usage statistics
stop Stop one or more running containers
tag Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
top Display the running processes of a container
unpause Unpause all processes within one or more containers
update Update configuration of one or more containers
version Show the Docker version information
wait Block until one or more containers stop, then print their exit codes
Run 'docker COMMAND --help' for more information on a command.
root@kiran-virtual-machine:/etc/init.d#
Ansible localhost -m apt -a "name=apache2 state=present"
[WARNING]: provided hosts list is empty, only localhost is available. Note that the
implicit localhost does not match 'all'
localhost | CHANGED => {
"cache_update_time": 1566355877,
"cache_updated": false,
"changed": true,
"stderr": "",
"stderr_lines": [],
"stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following additional packages will be installed:\n apache2-bin apache2-data apache2-utils libapr1 libaprutil1\n libaprutil1-dbd-sqlite3 libaprutil1-ldap\nSuggested packages:\n apache2-doc apache2-suexec-pristine | apache2-suexec-custom\nThe following NEW packages will be installed:\n apache2 apache2-bin apache2-data apache2-utils libapr1 libaprutil1\n libaprutil1-dbd-sqlite3 libaprutil1-ldap\n0 upgraded, 8 newly installed, 0 to remove and 193 not upgraded.\nNeed to get 1698 kB of archives.\nAfter this operation, 7314 kB of additional disk space will be used.\nGet:1 http://in.archive.ubuntu.com/ubuntu disco/main amd64 libapr1 amd64 1.6.5-1 [91.6 kB]\nGet:2 http://in.archive.ubuntu.com/ubuntu disco/main amd64 libaprutil1 amd64 1.6.1-3build1 [84.7 kB]\nGet:3 http://in.archive.ubuntu.com/ubuntu disco/main amd64 libaprutil1-dbd-sqlite3 amd64 1.6.1-3build1 [10.6 kB]\nGet:4 http://in.archive.ubuntu.com/ubuntu disco/main amd64 libaprutil1-ldap amd64 1.6.1-3build1 [8692 B]\nGet:5 http://in.archive.ubuntu.com/ubuntu disco/main amd64 apache2-bin amd64 2.4.38-2ubuntu2 [1157 kB]\nGet:6 http://in.archive.ubuntu.com/ubuntu disco/main amd64 apache2-data all 2.4.38-2ubuntu2 [164 kB]\nGet:7 http://in.archive.ubuntu.com/ubuntu disco/main amd64 apache2-utils amd64 2.4.38-2ubuntu2 [86.1 kB]\nGet:8 http://in.archive.ubuntu.com/ubuntu disco/main amd64 apache2 amd64 2.4.38-2ubuntu2 [95.5 kB]\nFetched 1698 kB in 2s (1060 kB/s)\nSelecting previously unselected package libapr1:amd64.\r\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 262138 files and directories currently installed.)\r\nPreparing to unpack .../0-libapr1_1.6.5-1_amd64.deb ...\r\nUnpacking libapr1:amd64 (1.6.5-1) ...\r\nSelecting previously unselected package libaprutil1:amd64.\r\nPreparing to unpack .../1-libaprutil1_1.6.1-3build1_amd64.deb ...\r\nUnpacking libaprutil1:amd64 (1.6.1-3build1) ...\r\nSelecting previously unselected package libaprutil1-dbd-sqlite3:amd64.\r\nPreparing to unpack .../2-libaprutil1-dbd-sqlite3_1.6.1-3build1_amd64.deb ...\r\nUnpacking libaprutil1-dbd-sqlite3:amd64 (1.6.1-3build1) ...\r\nSelecting previously unselected package libaprutil1-ldap:amd64.\r\nPreparing to unpack .../3-libaprutil1-ldap_1.6.1-3build1_amd64.deb ...\r\nUnpacking libaprutil1-ldap:amd64 (1.6.1-3build1) ...\r\nSelecting previously unselected package apache2-bin.\r\nPreparing to unpack .../4-apache2-bin_2.4.38-2ubuntu2_amd64.deb ...\r\nUnpacking apache2-bin (2.4.38-2ubuntu2) ...\r\nSelecting previously unselected package apache2-data.\r\nPreparing to unpack .../5-apache2-data_2.4.38-2ubuntu2_all.deb ...\r\nUnpacking apache2-data (2.4.38-2ubuntu2) ...\r\nSelecting previously unselected package apache2-utils.\r\nPreparing to unpack .../6-apache2-utils_2.4.38-2ubuntu2_amd64.deb ...\r\nUnpacking apache2-utils (2.4.38-2ubuntu2) ...\r\nSelecting previously unselected package apache2.\r\nPreparing to unpack .../7-apache2_2.4.38-2ubuntu2_amd64.deb ...\r\nUnpacking apache2 (2.4.38-2ubuntu2) ...\r\nSetting up libapr1:amd64 (1.6.5-1) ...\r\nSetting up apache2-data (2.4.38-2ubuntu2) ...\r\nSetting up libaprutil1:amd64 (1.6.1-3build1) ...\r\nSetting up libaprutil1-ldap:amd64 (1.6.1-3build1) ...\r\nSetting up libaprutil1-dbd-sqlite3:amd64 (1.6.1-3build1) ...\r\nSetting up apache2-utils (2.4.38-2ubuntu2) ...\r\nSetting up apache2-bin (2.4.38-2ubuntu2) ...\r\nSetting up apache2 (2.4.38-2ubuntu2) ...\r\nEnabling module mpm_event.\r\nEnabling module authz_core.\r\nEnabling module authz_host.\r\nEnabling module authn_core.\r\nEnabling module auth_basic.\r\nEnabling module access_compat.\r\nEnabling module authn_file.\r\nEnabling module authz_user.\r\nEnabling module alias.\r\nEnabling module dir.\r\nEnabling module autoindex.\r\nEnabling module env.\r\nEnabling module mime.\r\nEnabling module negotiation.\r\nEnabling module setenvif.\r\nEnabling module filter.\r\nEnabling module deflate.\r\nEnabling module status.\r\nEnabling module reqtimeout.\r\nEnabling conf charset.\r\nEnabling conf localized-error-pages.\r\nEnabling conf other-vhosts-access-log.\r\nEnabling conf security.\r\nEnabling conf serve-cgi-bin.\r\nEnabling site 000-default.\r\nCreated symlink /etc/systemd/system/multi-user.target.wants/apache2.service -> /lib/systemd/system/apache2.service.\r\nCreated symlink /etc/systemd/system/multi-user.target.wants/apache-htcacheclean.service -> /lib/systemd/system/apache-htcacheclean.service.\r\nProcessing triggers for ufw (0.36-1ubuntu1) ...\r\nProcessing triggers for systemd (240-6ubuntu5) ...\r\nProcessing triggers for man-db (2.8.5-2) ...\r\nProcessing triggers for libc-bin (2.29-0ubuntu2) ...\r\n",
"stdout_lines": [
"Reading package lists...",
"Building dependency tree...",
"Reading state information...",
"The following additional packages will be installed:",
" apache2-bin apache2-data apache2-utils libapr1 libaprutil1",
" libaprutil1-dbd-sqlite3 libaprutil1-ldap",
"Suggested packages:",
" apache2-doc apache2-suexec-pristine | apache2-suexec-custom",
"The following NEW packages will be installed:",
" apache2 apache2-bin apache2-data apache2-utils libapr1 libaprutil1",
" libaprutil1-dbd-sqlite3 libaprutil1-ldap",
"0 upgraded, 8 newly installed, 0 to remove and 193 not upgraded.",
"Need to get 1698 kB of archives.",
"After this operation, 7314 kB of additional disk space will be used.",
"Get:1 http://in.archive.ubuntu.com/ubuntu disco/main amd64 libapr1 amd64 1.6.5-1 [91.6 kB]",
"Get:2 http://in.archive.ubuntu.com/ubuntu disco/main amd64 libaprutil1 amd64 1.6.1-3build1 [84.7 kB]",
"Get:3 http://in.archive.ubuntu.com/ubuntu disco/main amd64 libaprutil1-dbd-sqlite3 amd64 1.6.1-3build1 [10.6 kB]",
"Get:4 http://in.archive.ubuntu.com/ubuntu disco/main amd64 libaprutil1-ldap amd64 1.6.1-3build1 [8692 B]",
"Get:5 http://in.archive.ubuntu.com/ubuntu disco/main amd64 apache2-bin amd64 2.4.38-2ubuntu2 [1157 kB]",
"Get:6 http://in.archive.ubuntu.com/ubuntu disco/main amd64 apache2-data all 2.4.38-2ubuntu2 [164 kB]",
"Get:7 http://in.archive.ubuntu.com/ubuntu disco/main amd64 apache2-utils amd64 2.4.38-2ubuntu2 [86.1 kB]",
"Get:8 http://in.archive.ubuntu.com/ubuntu disco/main amd64 apache2 amd64 2.4.38-2ubuntu2 [95.5 kB]",
"Fetched 1698 kB in 2s (1060 kB/s)",
"Selecting previously unselected package libapr1:amd64.",
"(Reading database ... ",
"(Reading database ... 5%",
"(Reading database ... 10%",
"(Reading database ... 15%",
"(Reading database ... 20%",
"(Reading database ... 25%",
"(Reading database ... 30%",
"(Reading database ... 35%",
"(Reading database ... 40%",
"(Reading database ... 45%",
"(Reading database ... 50%",
"(Reading database ... 55%",
"(Reading database ... 60%",
"(Reading database ... 65%",
"(Reading database ... 70%",
"(Reading database ... 75%",
"(Reading database ... 80%",
"(Reading database ... 85%",
"(Reading database ... 90%",
"(Reading database ... 95%",
"(Reading database ... 100%",
"(Reading database ... 262138 files and directories currently installed.)",
"Preparing to unpack .../0-libapr1_1.6.5-1_amd64.deb ...",
"Unpacking libapr1:amd64 (1.6.5-1) ...",
"Selecting previously unselected package libaprutil1:amd64.",
"Preparing to unpack .../1-libaprutil1_1.6.1-3build1_amd64.deb ...",
"Unpacking libaprutil1:amd64 (1.6.1-3build1) ...",
"Selecting previously unselected package libaprutil1-dbd-sqlite3:amd64.",
"Preparing to unpack .../2-libaprutil1-dbd-sqlite3_1.6.1-3build1_amd64.deb ...",
"Unpacking libaprutil1-dbd-sqlite3:amd64 (1.6.1-3build1) ...",
"Selecting previously unselected package libaprutil1-ldap:amd64.",
"Preparing to unpack .../3-libaprutil1-ldap_1.6.1-3build1_amd64.deb ...",
"Unpacking libaprutil1-ldap:amd64 (1.6.1-3build1) ...",
"Selecting previously unselected package apache2-bin.",
"Preparing to unpack .../4-apache2-bin_2.4.38-2ubuntu2_amd64.deb ...",
"Unpacking apache2-bin (2.4.38-2ubuntu2) ...",
"Selecting previously unselected package apache2-data.",
"Preparing to unpack .../5-apache2-data_2.4.38-2ubuntu2_all.deb ...",
"Unpacking apache2-data (2.4.38-2ubuntu2) ...",
"Selecting previously unselected package apache2-utils.",
"Preparing to unpack .../6-apache2-utils_2.4.38-2ubuntu2_amd64.deb ...",
"Unpacking apache2-utils (2.4.38-2ubuntu2) ...",
"Selecting previously unselected package apache2.",
"Preparing to unpack .../7-apache2_2.4.38-2ubuntu2_amd64.deb ...",
"Unpacking apache2 (2.4.38-2ubuntu2) ...",
"Setting up libapr1:amd64 (1.6.5-1) ...",
"Setting up apache2-data (2.4.38-2ubuntu2) ...",
"Setting up libaprutil1:amd64 (1.6.1-3build1) ...",
"Setting up libaprutil1-ldap:amd64 (1.6.1-3build1) ...",
"Setting up libaprutil1-dbd-sqlite3:amd64 (1.6.1-3build1) ...",
"Setting up apache2-utils (2.4.38-2ubuntu2) ...",
"Setting up apache2-bin (2.4.38-2ubuntu2) ...",
"Setting up apache2 (2.4.38-2ubuntu2) ...",
"Enabling module mpm_event.",
"Enabling module authz_core.",
"Enabling module authz_host.",
"Enabling module authn_core.",
"Enabling module auth_basic.",
"Enabling module access_compat.",
"Enabling module authn_file.",
"Enabling module authz_user.",
"Enabling module alias.",
"Enabling module dir.",
"Enabling module autoindex.",
"Enabling module env.",
"Enabling module mime.",
"Enabling module negotiation.",
"Enabling module setenvif.",
"Enabling module filter.",
"Enabling module deflate.",
"Enabling module status.",
"Enabling module reqtimeout.",
"Enabling conf charset.",
"Enabling conf localized-error-pages.",
"Enabling conf other-vhosts-access-log.",
"Enabling conf security.",
"Enabling conf serve-cgi-bin.",
"Enabling site 000-default.",
"Created symlink /etc/systemd/system/multi-user.target.wants/apache2.service -> /lib/systemd/system/apache2.service.",
"Created symlink /etc/systemd/system/multi-user.target.wants/apache-htcacheclean.service -> /lib/systemd/system/apache-htcacheclean.service.",
"Processing triggers for ufw (0.36-1ubuntu1) ...",
"Processing triggers for systemd (240-6ubuntu5) ...",
"Processing triggers for man-db (2.8.5-2) ...",
"Processing triggers for libc-bin (2.29-0ubuntu2) ..."
]
}
root@kiran-virtual-machine:/etc/init.d#
root@kiran-virtual-machine:/etc/init.d# ansible localhost -m apt -a "name=mysql-server state=present"
[WARNING]: provided hosts list is empty, only localhost is available. Note that the
implicit localhost does not match 'all'
localhost | CHANGED => {
"cache_update_time": 1566355877,
"cache_updated": false,
"changed": true,
"stderr": "",
"stderr_lines": [],
"stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following additional packages will be installed:\n libevent-core-2.1-6 libhtml-template-perl libmecab2 mysql-client-5.7\n mysql-server-5.7 mysql-server-core-5.7\nSuggested packages:\n libipc-sharedcache-perl mailx tinyca\nThe following NEW packages will be installed:\n libevent-core-2.1-6 libhtml-template-perl libmecab2 mysql-client-5.7\n mysql-server mysql-server-5.7\nThe following packages will be upgraded:\n mysql-server-core-5.7\n1 upgraded, 6 newly installed, 0 to remove and 192 not upgraded.\nNeed to get 5970 kB/13.8 MB of archives.\nAfter this operation, 84.3 MB of additional disk space will be used.\nGet:1 http://in.archive.ubuntu.com/ubuntu disco-updates/main amd64 mysql-client-5.7 amd64 5.7.27-0ubuntu0.19.04.1 [2307 kB]\nGet:2 http://in.archive.ubuntu.com/ubuntu disco/main amd64 libevent-core-2.1-6 amd64 2.1.8-stable-4build1 [85.9 kB]\nGet:3 http://in.archive.ubuntu.com/ubuntu disco/main amd64 libmecab2 amd64 0.996-6 [257 kB]\nGet:4 http://in.archive.ubuntu.com/ubuntu disco-updates/main amd64 mysql-server-5.7 amd64 5.7.27-0ubuntu0.19.04.1 [3251 kB]\nGet:5 http://in.archive.ubuntu.com/ubuntu disco/main amd64 libhtml-template-perl all 2.97-1 [59.0 kB]\nGet:6 http://in.archive.ubuntu.com/ubuntu disco-updates/main amd64 mysql-server all 5.7.27-0ubuntu0.19.04.1 [9956 B]\nPreconfiguring packages ...\nFetched 5970 kB in 5s (1236 kB/s)\nSelecting previously unselected package mysql-client-5.7.\r\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 262838 files and directories currently installed.)\r\nPreparing to unpack .../0-mysql-client-5.7_5.7.27-0ubuntu0.19.04.1_amd64.deb ...\r\nUnpacking mysql-client-5.7 (5.7.27-0ubuntu0.19.04.1) ...\r\nPreparing to unpack .../1-mysql-server-core-5.7_5.7.27-0ubuntu0.19.04.1_amd64.deb ...\r\nUnpacking mysql-server-core-5.7 (5.7.27-0ubuntu0.19.04.1) over (5.7.25-1) ...\r\nSelecting previously unselected package libevent-core-2.1-6:amd64.\r\nPreparing to unpack .../2-libevent-core-2.1-6_2.1.8-stable-4build1_amd64.deb ...\r\nUnpacking libevent-core-2.1-6:amd64 (2.1.8-stable-4build1) ...\r\nSelecting previously unselected package libmecab2:amd64.\r\nPreparing to unpack .../3-libmecab2_0.996-6_amd64.deb ...\r\nUnpacking libmecab2:amd64 (0.996-6) ...\r\nSelecting previously unselected package mysql-server-5.7.\r\nPreparing to unpack .../4-mysql-server-5.7_5.7.27-0ubuntu0.19.04.1_amd64.deb ...\r\nUnpacking mysql-server-5.7 (5.7.27-0ubuntu0.19.04.1) ...\r\nSelecting previously unselected package libhtml-template-perl.\r\nPreparing to unpack .../5-libhtml-template-perl_2.97-1_all.deb ...\r\nUnpacking libhtml-template-perl (2.97-1) ...\r\nSelecting previously unselected package mysql-server.\r\nPreparing to unpack .../6-mysql-server_5.7.27-0ubuntu0.19.04.1_all.deb ...\r\nUnpacking mysql-server (5.7.27-0ubuntu0.19.04.1) ...\r\nSetting up libmecab2:amd64 (0.996-6) ...\r\nSetting up mysql-client-5.7 (5.7.27-0ubuntu0.19.04.1) ...\r\nSetting up mysql-server-core-5.7 (5.7.27-0ubuntu0.19.04.1) ...\r\nSetting up libhtml-template-perl (2.97-1) ...\r\nSetting up libevent-core-2.1-6:amd64 (2.1.8-stable-4build1) ...\r\nSetting up mysql-server-5.7 (5.7.27-0ubuntu0.19.04.1) ...\r\nupdate-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode\r\nRenaming removed key_buffer and myisam-recover options (if present)\r\nCreated symlink /etc/systemd/system/multi-user.target.wants/mysql.service -> /lib/systemd/system/mysql.service.\r\nSetting up mysql-server (5.7.27-0ubuntu0.19.04.1) ...\r\nProcessing triggers for systemd (240-6ubuntu5) ...\r\nProcessing triggers for man-db (2.8.5-2) ...\r\nProcessing triggers for libc-bin (2.29-0ubuntu2) ...\r\n",
"stdout_lines": [
"Reading package lists...",
"Building dependency tree...",
"Reading state information...",
"The following additional packages will be installed:",
" libevent-core-2.1-6 libhtml-template-perl libmecab2 mysql-client-5.7",
" mysql-server-5.7 mysql-server-core-5.7",
"Suggested packages:",
" libipc-sharedcache-perl mailx tinyca",
"The following NEW packages will be installed:",
" libevent-core-2.1-6 libhtml-template-perl libmecab2 mysql-client-5.7",
" mysql-server mysql-server-5.7",
"The following packages will be upgraded:",
" mysql-server-core-5.7",
"1 upgraded, 6 newly installed, 0 to remove and 192 not upgraded.",
"Need to get 5970 kB/13.8 MB of archives.",
"After this operation, 84.3 MB of additional disk space will be used.",
"Get:1 http://in.archive.ubuntu.com/ubuntu disco-updates/main amd64 mysql-client-5.7 amd64 5.7.27-0ubuntu0.19.04.1 [2307 kB]",
"Get:2 http://in.archive.ubuntu.com/ubuntu disco/main amd64 libevent-core-2.1-6 amd64 2.1.8-stable-4build1 [85.9 kB]",
"Get:3 http://in.archive.ubuntu.com/ubuntu disco/main amd64 libmecab2 amd64 0.996-6 [257 kB]",
"Get:4 http://in.archive.ubuntu.com/ubuntu disco-updates/main amd64 mysql-server-5.7 amd64 5.7.27-0ubuntu0.19.04.1 [3251 kB]",
"Get:5 http://in.archive.ubuntu.com/ubuntu disco/main amd64 libhtml-template-perl all 2.97-1 [59.0 kB]",
"Get:6 http://in.archive.ubuntu.com/ubuntu disco-updates/main amd64 mysql-server all 5.7.27-0ubuntu0.19.04.1 [9956 B]",
"Preconfiguring packages ...",
"Fetched 5970 kB in 5s (1236 kB/s)",
"Selecting previously unselected package mysql-client-5.7.",
"(Reading database ... ",
"(Reading database ... 5%",
"(Reading database ... 10%",
"(Reading database ... 15%",
"(Reading database ... 20%",
"(Reading database ... 25%",
"(Reading database ... 30%",
"(Reading database ... 35%",
"(Reading database ... 40%",
"(Reading database ... 45%",
"(Reading database ... 50%",
"(Reading database ... 55%",
"(Reading database ... 60%",
"(Reading database ... 65%",
"(Reading database ... 70%",
"(Reading database ... 75%",
"(Reading database ... 80%",
"(Reading database ... 85%",
"(Reading database ... 90%",
"(Reading database ... 95%",
"(Reading database ... 100%",
"(Reading database ... 262838 files and directories currently installed.)",
"Preparing to unpack .../0-mysql-client-5.7_5.7.27-0ubuntu0.19.04.1_amd64.deb ...",
"Unpacking mysql-client-5.7 (5.7.27-0ubuntu0.19.04.1) ...",
"Preparing to unpack .../1-mysql-server-core-5.7_5.7.27-0ubuntu0.19.04.1_amd64.deb ...",
"Unpacking mysql-server-core-5.7 (5.7.27-0ubuntu0.19.04.1) over (5.7.25-1) ...",
"Selecting previously unselected package libevent-core-2.1-6:amd64.",
"Preparing to unpack .../2-libevent-core-2.1-6_2.1.8-stable-4build1_amd64.deb ...",
"Unpacking libevent-core-2.1-6:amd64 (2.1.8-stable-4build1) ...",
"Selecting previously unselected package libmecab2:amd64.",
"Preparing to unpack .../3-libmecab2_0.996-6_amd64.deb ...",
"Unpacking libmecab2:amd64 (0.996-6) ...",
"Selecting previously unselected package mysql-server-5.7.",
"Preparing to unpack .../4-mysql-server-5.7_5.7.27-0ubuntu0.19.04.1_amd64.deb ...",
"Unpacking mysql-server-5.7 (5.7.27-0ubuntu0.19.04.1) ...",
"Selecting previously unselected package libhtml-template-perl.",
"Preparing to unpack .../5-libhtml-template-perl_2.97-1_all.deb ...",
"Unpacking libhtml-template-perl (2.97-1) ...",
"Selecting previously unselected package mysql-server.",
"Preparing to unpack .../6-mysql-server_5.7.27-0ubuntu0.19.04.1_all.deb ...",
"Unpacking mysql-server (5.7.27-0ubuntu0.19.04.1) ...",
"Setting up libmecab2:amd64 (0.996-6) ...",
"Setting up mysql-client-5.7 (5.7.27-0ubuntu0.19.04.1) ...",
"Setting up mysql-server-core-5.7 (5.7.27-0ubuntu0.19.04.1) ...",
"Setting up libhtml-template-perl (2.97-1) ...",
"Setting up libevent-core-2.1-6:amd64 (2.1.8-stable-4build1) ...",
"Setting up mysql-server-5.7 (5.7.27-0ubuntu0.19.04.1) ...",
"update-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode",
"Renaming removed key_buffer and myisam-recover options (if present)",
"Created symlink /etc/systemd/system/multi-user.target.wants/mysql.service -> /lib/systemd/system/mysql.service.",
"Setting up mysql-server (5.7.27-0ubuntu0.19.04.1) ...",
"Processing triggers for systemd (240-6ubuntu5) ...",
"Processing triggers for man-db (2.8.5-2) ...",
"Processing triggers for libc-bin (2.29-0ubuntu2) ..."
]
}
root@kiran-virtual-machine:/etc/init.d#
oot@kiran-virtual-machine:/etc/init.d# mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.7.27-0ubuntu0.19.04.1 (Ubuntu)
Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> quit
Bye
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.7.27-0ubuntu0.19.04.1 (Ubuntu)
Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> quit
Bye
[WARNING]: provided hosts list is empty, only localhost is available. Note that the
implicit localhost does not match 'all'
localhost | CHANGED => {
"cache_update_time": 1566355877,
"cache_updated": false,
"changed": true,
"stderr": "",
"stderr_lines": [],
"stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following additional packages will be installed:\n bridge-utils cgroupfs-mount containerd pigz runc ubuntu-fan\nSuggested packages:\n ifupdown aufs-tools btrfs-progs debootstrap docker-doc rinse zfs-fuse\n | zfsutils\nThe following NEW packages will be installed:\n bridge-utils cgroupfs-mount containerd docker.io pigz runc ubuntu-fan\n0 upgraded, 7 newly installed, 0 to remove and 192 not upgraded.\nNeed to get 52.2 MB of archives.\nAfter this operation, 257 MB of additional disk space will be used.\nGet:1 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 pigz amd64 2.4-1 [57.4 kB]\nGet:2 http://in.archive.ubuntu.com/ubuntu disco/main amd64 bridge-utils amd64 1.6-2ubuntu1 [30.5 kB]\nGet:3 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 cgroupfs-mount all 1.4 [6320 B]\nGet:4 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 runc amd64 1.0.0~rc7+git20190403.029124da-0ubuntu1 [1904 kB]\nGet:5 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 containerd amd64 1.2.6-0ubuntu1 [19.4 MB]\nGet:6 http://in.archive.ubuntu.com/ubuntu disco-updates/universe amd64 docker.io amd64 18.09.7-0ubuntu1~19.04.5 [30.7 MB]\nGet:7 http://in.archive.ubuntu.com/ubuntu disco/main amd64 ubuntu-fan all 0.12.12 [34.6 kB]\nPreconfiguring packages ...\nFetched 52.2 MB in 38s (1372 kB/s)\nSelecting previously unselected package pigz.\r\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 262995 files and directories currently installed.)\r\nPreparing to unpack .../0-pigz_2.4-1_amd64.deb ...\r\nUnpacking pigz (2.4-1) ...\r\nSelecting previously unselected package bridge-utils.\r\nPreparing to unpack .../1-bridge-utils_1.6-2ubuntu1_amd64.deb ...\r\nUnpacking bridge-utils (1.6-2ubuntu1) ...\r\nSelecting previously unselected package cgroupfs-mount.\r\nPreparing to unpack .../2-cgroupfs-mount_1.4_all.deb ...\r\nUnpacking cgroupfs-mount (1.4) ...\r\nSelecting previously unselected package runc.\r\nPreparing to unpack .../3-runc_1.0.0~rc7+git20190403.029124da-0ubuntu1_amd64.deb ...\r\nUnpacking runc (1.0.0~rc7+git20190403.029124da-0ubuntu1) ...\r\nSelecting previously unselected package containerd.\r\nPreparing to unpack .../4-containerd_1.2.6-0ubuntu1_amd64.deb ...\r\nUnpacking containerd (1.2.6-0ubuntu1) ...\r\nSelecting previously unselected package docker.io.\r\nPreparing to unpack .../5-docker.io_18.09.7-0ubuntu1~19.04.5_amd64.deb ...\r\nUnpacking docker.io (18.09.7-0ubuntu1~19.04.5) ...\r\nSelecting previously unselected package ubuntu-fan.\r\nPreparing to unpack .../6-ubuntu-fan_0.12.12_all.deb ...\r\nUnpacking ubuntu-fan (0.12.12) ...\r\nSetting up runc (1.0.0~rc7+git20190403.029124da-0ubuntu1) ...\r\nSetting up bridge-utils (1.6-2ubuntu1) ...\r\nSetting up pigz (2.4-1) ...\r\nSetting up cgroupfs-mount (1.4) ...\r\nSetting up containerd (1.2.6-0ubuntu1) ...\r\nCreated symlink /etc/systemd/system/multi-user.target.wants/containerd.service -> /lib/systemd/system/containerd.service.\r\nSetting up ubuntu-fan (0.12.12) ...\r\nCreated symlink /etc/systemd/system/multi-user.target.wants/ubuntu-fan.service -> /lib/systemd/system/ubuntu-fan.service.\r\nSetting up docker.io (18.09.7-0ubuntu1~19.04.5) ...\r\nAdding group `docker' (GID 131) ...\r\nDone.\r\nCreated symlink /etc/systemd/system/sockets.target.wants/docker.socket -> /lib/systemd/system/docker.socket.\r\nProcessing triggers for systemd (240-6ubuntu5) ...\r\nProcessing triggers for man-db (2.8.5-2) ...\r\n",
"stdout_lines": [
"Reading package lists...",
"Building dependency tree...",
"Reading state information...",
"The following additional packages will be installed:",
" bridge-utils cgroupfs-mount containerd pigz runc ubuntu-fan",
"Suggested packages:",
" ifupdown aufs-tools btrfs-progs debootstrap docker-doc rinse zfs-fuse",
" | zfsutils",
"The following NEW packages will be installed:",
" bridge-utils cgroupfs-mount containerd docker.io pigz runc ubuntu-fan",
"0 upgraded, 7 newly installed, 0 to remove and 192 not upgraded.",
"Need to get 52.2 MB of archives.",
"After this operation, 257 MB of additional disk space will be used.",
"Get:1 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 pigz amd64 2.4-1 [57.4 kB]",
"Get:2 http://in.archive.ubuntu.com/ubuntu disco/main amd64 bridge-utils amd64 1.6-2ubuntu1 [30.5 kB]",
"Get:3 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 cgroupfs-mount all 1.4 [6320 B]",
"Get:4 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 runc amd64 1.0.0~rc7+git20190403.029124da-0ubuntu1 [1904 kB]",
"Get:5 http://in.archive.ubuntu.com/ubuntu disco/universe amd64 containerd amd64 1.2.6-0ubuntu1 [19.4 MB]",
"Get:6 http://in.archive.ubuntu.com/ubuntu disco-updates/universe amd64 docker.io amd64 18.09.7-0ubuntu1~19.04.5 [30.7 MB]",
"Get:7 http://in.archive.ubuntu.com/ubuntu disco/main amd64 ubuntu-fan all 0.12.12 [34.6 kB]",
"Preconfiguring packages ...",
"Fetched 52.2 MB in 38s (1372 kB/s)",
"Selecting previously unselected package pigz.",
"(Reading database ... ",
"(Reading database ... 5%",
"(Reading database ... 10%",
"(Reading database ... 15%",
"(Reading database ... 20%",
"(Reading database ... 25%",
"(Reading database ... 30%",
"(Reading database ... 35%",
"(Reading database ... 40%",
"(Reading database ... 45%",
"(Reading database ... 50%",
"(Reading database ... 55%",
"(Reading database ... 60%",
"(Reading database ... 65%",
"(Reading database ... 70%",
"(Reading database ... 75%",
"(Reading database ... 80%",
"(Reading database ... 85%",
"(Reading database ... 90%",
"(Reading database ... 95%",
"(Reading database ... 100%",
"(Reading database ... 262995 files and directories currently installed.)",
"Preparing to unpack .../0-pigz_2.4-1_amd64.deb ...",
"Unpacking pigz (2.4-1) ...",
"Selecting previously unselected package bridge-utils.",
"Preparing to unpack .../1-bridge-utils_1.6-2ubuntu1_amd64.deb ...",
"Unpacking bridge-utils (1.6-2ubuntu1) ...",
"Selecting previously unselected package cgroupfs-mount.",
"Preparing to unpack .../2-cgroupfs-mount_1.4_all.deb ...",
"Unpacking cgroupfs-mount (1.4) ...",
"Selecting previously unselected package runc.",
"Preparing to unpack .../3-runc_1.0.0~rc7+git20190403.029124da-0ubuntu1_amd64.deb ...",
"Unpacking runc (1.0.0~rc7+git20190403.029124da-0ubuntu1) ...",
"Selecting previously unselected package containerd.",
"Preparing to unpack .../4-containerd_1.2.6-0ubuntu1_amd64.deb ...",
"Unpacking containerd (1.2.6-0ubuntu1) ...",
"Selecting previously unselected package docker.io.",
"Preparing to unpack .../5-docker.io_18.09.7-0ubuntu1~19.04.5_amd64.deb ...",
"Unpacking docker.io (18.09.7-0ubuntu1~19.04.5) ...",
"Selecting previously unselected package ubuntu-fan.",
"Preparing to unpack .../6-ubuntu-fan_0.12.12_all.deb ...",
"Unpacking ubuntu-fan (0.12.12) ...",
"Setting up runc (1.0.0~rc7+git20190403.029124da-0ubuntu1) ...",
"Setting up bridge-utils (1.6-2ubuntu1) ...",
"Setting up pigz (2.4-1) ...",
"Setting up cgroupfs-mount (1.4) ...",
"Setting up containerd (1.2.6-0ubuntu1) ...",
"Created symlink /etc/systemd/system/multi-user.target.wants/containerd.service -> /lib/systemd/system/containerd.service.",
"Setting up ubuntu-fan (0.12.12) ...",
"Created symlink /etc/systemd/system/multi-user.target.wants/ubuntu-fan.service -> /lib/systemd/system/ubuntu-fan.service.",
"Setting up docker.io (18.09.7-0ubuntu1~19.04.5) ...",
"Adding group `docker' (GID 131) ...",
"Done.",
"Created symlink /etc/systemd/system/sockets.target.wants/docker.socket -> /lib/systemd/system/docker.socket.",
"Processing triggers for systemd (240-6ubuntu5) ...",
"Processing triggers for man-db (2.8.5-2) ..."
]
}
root@kiran-virtual-machine:/etc/init.d# docker
Usage: docker [OPTIONS] COMMAND
A self-sufficient runtime for containers
Options:
--config string Location of client config files (default "/root/.docker")
-D, --debug Enable debug mode
-H, --host list Daemon socket(s) to connect to
-l, --log-level string Set the logging level
("debug"|"info"|"warn"|"error"|"fatal") (default "info")
--tls Use TLS; implied by --tlsverify
--tlscacert string Trust certs signed only by this CA (default
"/root/.docker/ca.pem")
--tlscert string Path to TLS certificate file (default
"/root/.docker/cert.pem")
--tlskey string Path to TLS key file (default "/root/.docker/key.pem")
--tlsverify Use TLS and verify the remote
-v, --version Print version information and quit
Management Commands:
builder Manage builds
config Manage Docker configs
container Manage containers
engine Manage the docker engine
image Manage images
network Manage networks
node Manage Swarm nodes
plugin Manage plugins
secret Manage Docker secrets
service Manage services
stack Manage Docker stacks
swarm Manage Swarm
system Manage Docker
trust Manage trust on Docker images
volume Manage volumes
Commands:
attach Attach local standard input, output, and error streams to a running container
build Build an image from a Dockerfile
commit Create a new image from a container's changes
cp Copy files/folders between a container and the local filesystem
create Create a new container
diff Inspect changes to files or directories on a container's filesystem
events Get real time events from the server
exec Run a command in a running container
export Export a container's filesystem as a tar archive
history Show the history of an image
images List images
import Import the contents from a tarball to create a filesystem image
info Display system-wide information
inspect Return low-level information on Docker objects
kill Kill one or more running containers
load Load an image from a tar archive or STDIN
login Log in to a Docker registry
logout Log out from a Docker registry
logs Fetch the logs of a container
pause Pause all processes within one or more containers
port List port mappings or a specific mapping for the container
ps List containers
pull Pull an image or a repository from a registry
push Push an image or a repository to a registry
rename Rename a container
restart Restart one or more containers
rm Remove one or more containers
rmi Remove one or more images
run Run a command in a new container
save Save one or more images to a tar archive (streamed to STDOUT by default)
search Search the Docker Hub for images
start Start one or more stopped containers
stats Display a live stream of container(s) resource usage statistics
stop Stop one or more running containers
tag Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
top Display the running processes of a container
unpause Unpause all processes within one or more containers
update Update configuration of one or more containers
version Show the Docker version information
wait Block until one or more containers stop, then print their exit codes
Run 'docker COMMAND --help' for more information on a command.
root@kiran-virtual-machine:/etc/init.d#
Comments
Post a Comment