From d380ddbf6ecc35fbbf704000efe68cc753832e57 Mon Sep 17 00:00:00 2001 From: Chu-Siang Lai Date: Mon, 18 Jun 2018 16:23:42 +0800 Subject: [PATCH] Add 'ubuntu-18.04' image 1. Update the ipynb with `ubuntu-18.04` image. 2. Stop maintian autobuild the `ubuntu-14.04` image. --- README.md | 6 +- ipynb/ansible_on_jupyter_ubuntu.ipynb | 213 +++++++++++++------------- ubuntu-18.04/Dockerfile | 44 ++++++ ubuntu-18.04/docker-entrypoint.sh | 15 ++ 4 files changed, 173 insertions(+), 105 deletions(-) create mode 100644 ubuntu-18.04/Dockerfile create mode 100755 ubuntu-18.04/docker-entrypoint.sh diff --git a/README.md b/README.md index 31cfb37..f1d92f8 100644 --- a/README.md +++ b/README.md @@ -24,8 +24,9 @@ A Docker image for run [Ansible][ansible_official] 2.5 on [Jupyter Notebook][jup - ~~`opensuse-42.1`~~ [*(opensuse-42.1/Dockerfile)*][dockerfile_opensuse-42.1] - `opensuse-42.2` [*(opensuse-42.2/Dockerfile)*][dockerfile_opensuse-42.2] - `opensuse-42.3` [*(opensuse-42.3/Dockerfile)*][dockerfile_opensuse-42.3] -- `ubuntu-14.04` [*(ubuntu-14.04/Dockerfile)*][dockerfile_ubuntu-14.04] +- ~~`ubuntu-14.04`~~ [*(ubuntu-14.04/Dockerfile)*][dockerfile_ubuntu-14.04] - `ubuntu-16.04` [*(ubuntu-16.04/Dockerfile)*][dockerfile_ubuntu-16.04] +- `ubuntu-18.04` [*(ubuntu-18.04/Dockerfile)*][dockerfile_ubuntu-18.04] [dockerfile_alpine-3.4]: https://github.com/chusiang/ansible-jupyter.dockerfile/blob/master/alpine-3.4/Dockerfile [dockerfile_alpine-3.4_ansible-2.1]: https://github.com/chusiang/ansible-jupyter.dockerfile/blob/master/alpine-3.4_ansible-2.1/Dockerfile @@ -44,6 +45,7 @@ A Docker image for run [Ansible][ansible_official] 2.5 on [Jupyter Notebook][jup [dockerfile_opensuse-42.3]: https://github.com/chusiang/ansible-jupyter.dockerfile/blob/master/opensuse-42.3/Dockerfile [dockerfile_ubuntu-14.04]: https://github.com/chusiang/ansible-jupyter.dockerfile/blob/master/ubuntu-14.04/Dockerfile [dockerfile_ubuntu-16.04]: https://github.com/chusiang/ansible-jupyter.dockerfile/blob/master/ubuntu-16.04/Dockerfile +[dockerfile_ubuntu-18.04]: https://github.com/chusiang/ansible-jupyter.dockerfile/blob/master/ubuntu-18.04/Dockerfile ## Build image @@ -129,7 +131,7 @@ Enjoy it ! ### 2018 -* 06/18 Add images of `alpine-3.7`. +* 06/18 Add new images of `alpine-3.7`, `ubuntu-18.04`. Stop automated build image of `ubuntu-14.04`. * 01/10 Stop automated build images of `centos-6`, `debian-7` and `alpine-3.4_ansible-2.1`. ### 2017 diff --git a/ipynb/ansible_on_jupyter_ubuntu.ipynb b/ipynb/ansible_on_jupyter_ubuntu.ipynb index 82412fe..0e3bbe4 100644 --- a/ipynb/ansible_on_jupyter_ubuntu.ipynb +++ b/ipynb/ansible_on_jupyter_ubuntu.ipynb @@ -39,7 +39,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "Mon Jun 18 07:33:55 UTC 2018\r\n" + "Mon Jun 18 08:18:29 UTC 2018\r\n" ] } ], @@ -89,7 +89,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "Ubuntu 16.04.4 LTS \\n \\l\r\n", + "Ubuntu 18.04 LTS \\n \\l\r\n", "\r\n" ] } @@ -138,7 +138,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "Python 2.7.12\r\n" + "Python 2.7.15rc1\r\n" ] } ], @@ -191,7 +191,7 @@ " configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']\r\n", " ansible python module location = /usr/lib/python2.7/dist-packages/ansible\r\n", " executable location = /usr/bin/ansible\r\n", - " python version = 2.7.12 (default, Dec 4 2017, 14:50:18) [GCC 5.4.0 20160609]\r\n" + " python version = 2.7.15rc1 (default, Apr 15 2018, 21:51:34) [GCC 7.3.0]\r\n" ] } ], @@ -323,16 +323,16 @@ "\u001b[0;32m \"ansible_date_time\": {\u001b[0m\r\n", "\u001b[0;32m \"date\": \"2018-06-18\", \u001b[0m\r\n", "\u001b[0;32m \"day\": \"18\", \u001b[0m\r\n", - "\u001b[0;32m \"epoch\": \"1529307275\", \u001b[0m\r\n", - "\u001b[0;32m \"hour\": \"07\", \u001b[0m\r\n", - "\u001b[0;32m \"iso8601\": \"2018-06-18T07:34:35Z\", \u001b[0m\r\n", - "\u001b[0;32m \"iso8601_basic\": \"20180618T073435054701\", \u001b[0m\r\n", - "\u001b[0;32m \"iso8601_basic_short\": \"20180618T073435\", \u001b[0m\r\n", - "\u001b[0;32m \"iso8601_micro\": \"2018-06-18T07:34:35.054785Z\", \u001b[0m\r\n", - "\u001b[0;32m \"minute\": \"34\", \u001b[0m\r\n", + "\u001b[0;32m \"epoch\": \"1529309926\", \u001b[0m\r\n", + "\u001b[0;32m \"hour\": \"08\", \u001b[0m\r\n", + "\u001b[0;32m \"iso8601\": \"2018-06-18T08:18:46Z\", \u001b[0m\r\n", + "\u001b[0;32m \"iso8601_basic\": \"20180618T081846070674\", \u001b[0m\r\n", + "\u001b[0;32m \"iso8601_basic_short\": \"20180618T081846\", \u001b[0m\r\n", + "\u001b[0;32m \"iso8601_micro\": \"2018-06-18T08:18:46.070743Z\", \u001b[0m\r\n", + "\u001b[0;32m \"minute\": \"18\", \u001b[0m\r\n", "\u001b[0;32m \"month\": \"06\", \u001b[0m\r\n", - "\u001b[0;32m \"second\": \"35\", \u001b[0m\r\n", - "\u001b[0;32m \"time\": \"07:34:35\", \u001b[0m\r\n", + "\u001b[0;32m \"second\": \"46\", \u001b[0m\r\n", + "\u001b[0;32m \"time\": \"08:18:46\", \u001b[0m\r\n", "\u001b[0;32m \"tz\": \"UTC\", \u001b[0m\r\n", "\u001b[0;32m \"tz_offset\": \"+0000\", \u001b[0m\r\n", "\u001b[0;32m \"weekday\": \"Monday\", \u001b[0m\r\n", @@ -988,9 +988,9 @@ "\u001b[0;32m \"ansible_distribution_file_parsed\": true, \u001b[0m\r\n", "\u001b[0;32m \"ansible_distribution_file_path\": \"/etc/os-release\", \u001b[0m\r\n", "\u001b[0;32m \"ansible_distribution_file_variety\": \"Debian\", \u001b[0m\r\n", - "\u001b[0;32m \"ansible_distribution_major_version\": \"16\", \u001b[0m\r\n", - "\u001b[0;32m \"ansible_distribution_release\": \"xenial\", \u001b[0m\r\n", - "\u001b[0;32m \"ansible_distribution_version\": \"16.04\", \u001b[0m\r\n", + "\u001b[0;32m \"ansible_distribution_major_version\": \"18\", \u001b[0m\r\n", + "\u001b[0;32m \"ansible_distribution_release\": \"bionic\", \u001b[0m\r\n", + "\u001b[0;32m \"ansible_distribution_version\": \"18.04\", \u001b[0m\r\n", "\u001b[0;32m \"ansible_dns\": {\u001b[0m\r\n", "\u001b[0;32m \"nameservers\": [\u001b[0m\r\n", "\u001b[0;32m \"192.168.65.1\"\u001b[0m\r\n", @@ -1003,7 +1003,7 @@ "\u001b[0;32m \"CLICOLOR\": \"1\", \u001b[0m\r\n", "\u001b[0;32m \"GIT_PAGER\": \"cat\", \u001b[0m\r\n", "\u001b[0;32m \"HOME\": \"/root\", \u001b[0m\r\n", - "\u001b[0;32m \"HOSTNAME\": \"4a8c91a064f9\", \u001b[0m\r\n", + "\u001b[0;32m \"HOSTNAME\": \"8b094cbc9be4\", \u001b[0m\r\n", "\u001b[0;32m \"JPY_PARENT_PID\": \"6\", \u001b[0m\r\n", "\u001b[0;32m \"MPLBACKEND\": \"module://ipykernel.pylab.backend_inline\", \u001b[0m\r\n", "\u001b[0;32m \"PAGER\": \"cat\", \u001b[0m\r\n", @@ -1013,89 +1013,89 @@ "\u001b[0;32m }, \u001b[0m\r\n", "\u001b[0;32m \"ansible_fips\": false, \u001b[0m\r\n", "\u001b[0;32m \"ansible_form_factor\": \"Unknown\", \u001b[0m\r\n", - "\u001b[0;32m \"ansible_fqdn\": \"4a8c91a064f9\", \u001b[0m\r\n", - "\u001b[0;32m \"ansible_hostname\": \"4a8c91a064f9\", \u001b[0m\r\n", + "\u001b[0;32m \"ansible_fqdn\": \"8b094cbc9be4\", \u001b[0m\r\n", + "\u001b[0;32m \"ansible_hostname\": \"8b094cbc9be4\", \u001b[0m\r\n", "\u001b[0;32m \"ansible_is_chroot\": false, \u001b[0m\r\n", "\u001b[0;32m \"ansible_kernel\": \"4.9.87-linuxkit-aufs\", \u001b[0m\r\n", "\u001b[0;32m \"ansible_local\": {}, \u001b[0m\r\n", "\u001b[0;32m \"ansible_lsb\": {\u001b[0m\r\n", - "\u001b[0;32m \"codename\": \"xenial\", \u001b[0m\r\n", - "\u001b[0;32m \"description\": \"Ubuntu 16.04.4 LTS\", \u001b[0m\r\n", + "\u001b[0;32m \"codename\": \"bionic\", \u001b[0m\r\n", + "\u001b[0;32m \"description\": \"Ubuntu 18.04 LTS\", \u001b[0m\r\n", "\u001b[0;32m \"id\": \"Ubuntu\", \u001b[0m\r\n", - "\u001b[0;32m \"major_release\": \"16\", \u001b[0m\r\n", - "\u001b[0;32m \"release\": \"16.04\"\u001b[0m\r\n", + "\u001b[0;32m \"major_release\": \"18\", \u001b[0m\r\n", + "\u001b[0;32m \"release\": \"18.04\"\u001b[0m\r\n", "\u001b[0;32m }, \u001b[0m\r\n", "\u001b[0;32m \"ansible_machine\": \"x86_64\", \u001b[0m\r\n", - "\u001b[0;32m \"ansible_memfree_mb\": 99, \u001b[0m\r\n", + "\u001b[0;32m \"ansible_memfree_mb\": 178, \u001b[0m\r\n", "\u001b[0;32m \"ansible_memory_mb\": {\u001b[0m\r\n", "\u001b[0;32m \"nocache\": {\u001b[0m\r\n", - "\u001b[0;32m \"free\": 978, \u001b[0m\r\n", - "\u001b[0;32m \"used\": 1020\u001b[0m\r\n", + "\u001b[0;32m \"free\": 895, \u001b[0m\r\n", + "\u001b[0;32m \"used\": 1103\u001b[0m\r\n", "\u001b[0;32m }, \u001b[0m\r\n", "\u001b[0;32m \"real\": {\u001b[0m\r\n", - "\u001b[0;32m \"free\": 99, \u001b[0m\r\n", + "\u001b[0;32m \"free\": 178, \u001b[0m\r\n", "\u001b[0;32m \"total\": 1998, \u001b[0m\r\n", - "\u001b[0;32m \"used\": 1899\u001b[0m\r\n", + "\u001b[0;32m \"used\": 1820\u001b[0m\r\n", "\u001b[0;32m }, \u001b[0m\r\n", "\u001b[0;32m \"swap\": {\u001b[0m\r\n", "\u001b[0;32m \"cached\": 0, \u001b[0m\r\n", - "\u001b[0;32m \"free\": 1022, \u001b[0m\r\n", + "\u001b[0;32m \"free\": 1011, \u001b[0m\r\n", "\u001b[0;32m \"total\": 1023, \u001b[0m\r\n", - "\u001b[0;32m \"used\": 1\u001b[0m\r\n", + "\u001b[0;32m \"used\": 12\u001b[0m\r\n", "\u001b[0;32m }\u001b[0m\r\n", "\u001b[0;32m }, \u001b[0m\r\n", "\u001b[0;32m \"ansible_memtotal_mb\": 1998, \u001b[0m\r\n", "\u001b[0;32m \"ansible_mounts\": [\u001b[0m\r\n", "\u001b[0;32m {\u001b[0m\r\n", - "\u001b[0;32m \"block_available\": 10909989, \u001b[0m\r\n", + "\u001b[0;32m \"block_available\": 9571265, \u001b[0m\r\n", "\u001b[0;32m \"block_size\": 4096, \u001b[0m\r\n", "\u001b[0;32m \"block_total\": 16448139, \u001b[0m\r\n", - "\u001b[0;32m \"block_used\": 5538150, \u001b[0m\r\n", + "\u001b[0;32m \"block_used\": 6876874, \u001b[0m\r\n", "\u001b[0;32m \"device\": \"/dev/sda1\", \u001b[0m\r\n", "\u001b[0;32m \"fstype\": \"ext4\", \u001b[0m\r\n", - "\u001b[0;32m \"inode_available\": 3385593, \u001b[0m\r\n", + "\u001b[0;32m \"inode_available\": 3101420, \u001b[0m\r\n", "\u001b[0;32m \"inode_total\": 4194304, \u001b[0m\r\n", - "\u001b[0;32m \"inode_used\": 808711, \u001b[0m\r\n", + "\u001b[0;32m \"inode_used\": 1092884, \u001b[0m\r\n", "\u001b[0;32m \"mount\": \"/etc/resolv.conf\", \u001b[0m\r\n", "\u001b[0;32m \"options\": \"rw,relatime,data=ordered,bind\", \u001b[0m\r\n", - "\u001b[0;32m \"size_available\": 44687314944, \u001b[0m\r\n", + "\u001b[0;32m \"size_available\": 39203901440, \u001b[0m\r\n", "\u001b[0;32m \"size_total\": 67371577344, \u001b[0m\r\n", "\u001b[0;32m \"uuid\": \"N/A\"\u001b[0m\r\n", "\u001b[0;32m }, \u001b[0m\r\n", "\u001b[0;32m {\u001b[0m\r\n", - "\u001b[0;32m \"block_available\": 10909989, \u001b[0m\r\n", + "\u001b[0;32m \"block_available\": 9571265, \u001b[0m\r\n", "\u001b[0;32m \"block_size\": 4096, \u001b[0m\r\n", "\u001b[0;32m \"block_total\": 16448139, \u001b[0m\r\n", - "\u001b[0;32m \"block_used\": 5538150, \u001b[0m\r\n", + "\u001b[0;32m \"block_used\": 6876874, \u001b[0m\r\n", "\u001b[0;32m \"device\": \"/dev/sda1\", \u001b[0m\r\n", "\u001b[0;32m \"fstype\": \"ext4\", \u001b[0m\r\n", - "\u001b[0;32m \"inode_available\": 3385593, \u001b[0m\r\n", + "\u001b[0;32m \"inode_available\": 3101420, \u001b[0m\r\n", "\u001b[0;32m \"inode_total\": 4194304, \u001b[0m\r\n", - "\u001b[0;32m \"inode_used\": 808711, \u001b[0m\r\n", + "\u001b[0;32m \"inode_used\": 1092884, \u001b[0m\r\n", "\u001b[0;32m \"mount\": \"/etc/hostname\", \u001b[0m\r\n", "\u001b[0;32m \"options\": \"rw,relatime,data=ordered,bind\", \u001b[0m\r\n", - "\u001b[0;32m \"size_available\": 44687314944, \u001b[0m\r\n", + "\u001b[0;32m \"size_available\": 39203901440, \u001b[0m\r\n", "\u001b[0;32m \"size_total\": 67371577344, \u001b[0m\r\n", "\u001b[0;32m \"uuid\": \"N/A\"\u001b[0m\r\n", "\u001b[0;32m }, \u001b[0m\r\n", "\u001b[0;32m {\u001b[0m\r\n", - "\u001b[0;32m \"block_available\": 10909989, \u001b[0m\r\n", + "\u001b[0;32m \"block_available\": 9571265, \u001b[0m\r\n", "\u001b[0;32m \"block_size\": 4096, \u001b[0m\r\n", "\u001b[0;32m \"block_total\": 16448139, \u001b[0m\r\n", - "\u001b[0;32m \"block_used\": 5538150, \u001b[0m\r\n", + "\u001b[0;32m \"block_used\": 6876874, \u001b[0m\r\n", "\u001b[0;32m \"device\": \"/dev/sda1\", \u001b[0m\r\n", "\u001b[0;32m \"fstype\": \"ext4\", \u001b[0m\r\n", - "\u001b[0;32m \"inode_available\": 3385593, \u001b[0m\r\n", + "\u001b[0;32m \"inode_available\": 3101420, \u001b[0m\r\n", "\u001b[0;32m \"inode_total\": 4194304, \u001b[0m\r\n", - "\u001b[0;32m \"inode_used\": 808711, \u001b[0m\r\n", + "\u001b[0;32m \"inode_used\": 1092884, \u001b[0m\r\n", "\u001b[0;32m \"mount\": \"/etc/hosts\", \u001b[0m\r\n", "\u001b[0;32m \"options\": \"rw,relatime,data=ordered,bind\", \u001b[0m\r\n", - "\u001b[0;32m \"size_available\": 44687314944, \u001b[0m\r\n", + "\u001b[0;32m \"size_available\": 39203901440, \u001b[0m\r\n", "\u001b[0;32m \"size_total\": 67371577344, \u001b[0m\r\n", "\u001b[0;32m \"uuid\": \"N/A\"\u001b[0m\r\n", "\u001b[0;32m }\u001b[0m\r\n", "\u001b[0;32m ], \u001b[0m\r\n", - "\u001b[0;32m \"ansible_nodename\": \"4a8c91a064f9\", \u001b[0m\r\n", + "\u001b[0;32m \"ansible_nodename\": \"8b094cbc9be4\", \u001b[0m\r\n", "\u001b[0;32m \"ansible_os_family\": \"Debian\", \u001b[0m\r\n", "\u001b[0;32m \"ansible_pkg_mgr\": \"apt\", \u001b[0m\r\n", "\u001b[0;32m \"ansible_processor\": [\u001b[0m\r\n", @@ -1115,25 +1115,25 @@ "\u001b[0;32m \"ansible_product_uuid\": \"003B4176-0000-0000-88D0-8E3AB99F1457\", \u001b[0m\r\n", "\u001b[0;32m \"ansible_product_version\": \"1.0\", \u001b[0m\r\n", "\u001b[0;32m \"ansible_python\": {\u001b[0m\r\n", - "\u001b[0;32m \"executable\": \"/usr/bin/python\", \u001b[0m\r\n", + "\u001b[0;32m \"executable\": \"/usr/bin/python2\", \u001b[0m\r\n", "\u001b[0;32m \"has_sslcontext\": true, \u001b[0m\r\n", "\u001b[0;32m \"type\": \"CPython\", \u001b[0m\r\n", "\u001b[0;32m \"version\": {\u001b[0m\r\n", "\u001b[0;32m \"major\": 2, \u001b[0m\r\n", - "\u001b[0;32m \"micro\": 12, \u001b[0m\r\n", + "\u001b[0;32m \"micro\": 15, \u001b[0m\r\n", "\u001b[0;32m \"minor\": 7, \u001b[0m\r\n", - "\u001b[0;32m \"releaselevel\": \"final\", \u001b[0m\r\n", - "\u001b[0;32m \"serial\": 0\u001b[0m\r\n", + "\u001b[0;32m \"releaselevel\": \"candidate\", \u001b[0m\r\n", + "\u001b[0;32m \"serial\": 1\u001b[0m\r\n", "\u001b[0;32m }, \u001b[0m\r\n", "\u001b[0;32m \"version_info\": [\u001b[0m\r\n", "\u001b[0;32m 2, \u001b[0m\r\n", "\u001b[0;32m 7, \u001b[0m\r\n", - "\u001b[0;32m 12, \u001b[0m\r\n", - "\u001b[0;32m \"final\", \u001b[0m\r\n", - "\u001b[0;32m 0\u001b[0m\r\n", + "\u001b[0;32m 15, \u001b[0m\r\n", + "\u001b[0;32m \"candidate\", \u001b[0m\r\n", + "\u001b[0;32m 1\u001b[0m\r\n", "\u001b[0;32m ]\u001b[0m\r\n", "\u001b[0;32m }, \u001b[0m\r\n", - "\u001b[0;32m \"ansible_python_version\": \"2.7.12\", \u001b[0m\r\n", + "\u001b[0;32m \"ansible_python_version\": \"2.7.15rc1\", \u001b[0m\r\n", "\u001b[0;32m \"ansible_real_group_id\": 0, \u001b[0m\r\n", "\u001b[0;32m \"ansible_real_user_id\": 0, \u001b[0m\r\n", "\u001b[0;32m \"ansible_selinux\": {\u001b[0m\r\n", @@ -1141,28 +1141,11 @@ "\u001b[0;32m }, \u001b[0m\r\n", "\u001b[0;32m \"ansible_selinux_python_present\": false, \u001b[0m\r\n", "\u001b[0;32m \"ansible_service_mgr\": \"docker-entrypoi\", \u001b[0m\r\n", - "\u001b[0;32m \"ansible_swapfree_mb\": 1022, \u001b[0m\r\n", + "\u001b[0;32m \"ansible_swapfree_mb\": 1011, \u001b[0m\r\n", "\u001b[0;32m \"ansible_swaptotal_mb\": 1023, \u001b[0m\r\n", "\u001b[0;32m \"ansible_system\": \"Linux\", \u001b[0m\r\n", - "\u001b[0;32m \"ansible_system_capabilities\": [\u001b[0m\r\n", - "\u001b[0;32m \"cap_chown\", \u001b[0m\r\n", - "\u001b[0;32m \"cap_dac_override\", \u001b[0m\r\n", - "\u001b[0;32m \"cap_fowner\", \u001b[0m\r\n", - "\u001b[0;32m \"cap_fsetid\", \u001b[0m\r\n", - "\u001b[0;32m \"cap_kill\", \u001b[0m\r\n", - "\u001b[0;32m \"cap_setgid\", \u001b[0m\r\n", - "\u001b[0;32m \"cap_setuid\", \u001b[0m\r\n", - "\u001b[0;32m \"cap_setpcap\", \u001b[0m\r\n", - "\u001b[0;32m \"cap_net_bind_service\", \u001b[0m\r\n", - "\u001b[0;32m \"cap_net_raw\", \u001b[0m\r\n", - "\u001b[0;32m \"cap_sys_chroot\", \u001b[0m\r\n", - "\u001b[0;32m \"cap_mknod\", \u001b[0m\r\n", - "\u001b[0;32m \"cap_audit_write\", \u001b[0m\r\n", - "\u001b[0;32m \"cap_setfcap+eip\"\u001b[0m\r\n", - "\u001b[0;32m ], \u001b[0m\r\n", - "\u001b[0;32m \"ansible_system_capabilities_enforced\": \"True\", \u001b[0m\r\n", "\u001b[0;32m \"ansible_system_vendor\": \"NA\", \u001b[0m\r\n", - "\u001b[0;32m \"ansible_uptime_seconds\": 14409, \u001b[0m\r\n", + "\u001b[0;32m \"ansible_uptime_seconds\": 17060, \u001b[0m\r\n", "\u001b[0;32m \"ansible_user_dir\": \"/root\", \u001b[0m\r\n", "\u001b[0;32m \"ansible_user_gecos\": \"root\", \u001b[0m\r\n", "\u001b[0;32m \"ansible_user_gid\": 0, \u001b[0m\r\n", @@ -1207,18 +1190,18 @@ "\u001b[0;33m \"changed\": true, \u001b[0m\r\n", "\u001b[0;33m \"stderr\": \"\", \u001b[0m\r\n", "\u001b[0;33m \"stderr_lines\": [], \u001b[0m\r\n", - "\u001b[0;33m \"stdout\": \"Reading package lists...\\nBuilding dependency tree...\\nReading state information...\\nThe following packages were automatically installed and are no longer required:\\n libpython3.5 vim-common vim-runtime\\nUse 'apt autoremove' to remove them.\\nThe following packages will be REMOVED:\\n vim\\n0 upgraded, 0 newly installed, 1 to remove and 2 not upgraded.\\nAfter this operation, 2458 kB disk space will be freed.\\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 ... 46931 files and directories currently installed.)\\r\\nRemoving vim (2:7.4.1689-3ubuntu1.2) ...\\r\\n\", \u001b[0m\r\n", + "\u001b[0;33m \"stdout\": \"Reading package lists...\\nBuilding dependency tree...\\nReading state information...\\nThe following packages were automatically installed and are no longer required:\\n libpython3.6 vim-common vim-runtime xxd\\nUse 'apt autoremove' to remove them.\\nThe following packages will be REMOVED:\\n vim\\n0 upgraded, 0 newly installed, 1 to remove and 5 not upgraded.\\nAfter this operation, 2852 kB disk space will be freed.\\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 ... 50081 files and directories currently installed.)\\r\\nRemoving vim (2:8.0.1453-1ubuntu1) ...\\r\\n\", \u001b[0m\r\n", "\u001b[0;33m \"stdout_lines\": [\u001b[0m\r\n", "\u001b[0;33m \"Reading package lists...\", \u001b[0m\r\n", "\u001b[0;33m \"Building dependency tree...\", \u001b[0m\r\n", "\u001b[0;33m \"Reading state information...\", \u001b[0m\r\n", "\u001b[0;33m \"The following packages were automatically installed and are no longer required:\", \u001b[0m\r\n", - "\u001b[0;33m \" libpython3.5 vim-common vim-runtime\", \u001b[0m\r\n", + "\u001b[0;33m \" libpython3.6 vim-common vim-runtime xxd\", \u001b[0m\r\n", "\u001b[0;33m \"Use 'apt autoremove' to remove them.\", \u001b[0m\r\n", "\u001b[0;33m \"The following packages will be REMOVED:\", \u001b[0m\r\n", "\u001b[0;33m \" vim\", \u001b[0m\r\n", - "\u001b[0;33m \"0 upgraded, 0 newly installed, 1 to remove and 2 not upgraded.\", \u001b[0m\r\n", - "\u001b[0;33m \"After this operation, 2458 kB disk space will be freed.\", \u001b[0m\r\n", + "\u001b[0;33m \"0 upgraded, 0 newly installed, 1 to remove and 5 not upgraded.\", \u001b[0m\r\n", + "\u001b[0;33m \"After this operation, 2852 kB disk space will be freed.\", \u001b[0m\r\n", "\u001b[0;33m \"(Reading database ... \", \u001b[0m\r\n", "\u001b[0;33m \"(Reading database ... 5%\", \u001b[0m\r\n", "\u001b[0;33m \"(Reading database ... 10%\", \u001b[0m\r\n", @@ -1240,8 +1223,8 @@ "\u001b[0;33m \"(Reading database ... 90%\", \u001b[0m\r\n", "\u001b[0;33m \"(Reading database ... 95%\", \u001b[0m\r\n", "\u001b[0;33m \"(Reading database ... 100%\", \u001b[0m\r\n", - "\u001b[0;33m \"(Reading database ... 46931 files and directories currently installed.)\", \u001b[0m\r\n", - "\u001b[0;33m \"Removing vim (2:7.4.1689-3ubuntu1.2) ...\"\u001b[0m\r\n", + "\u001b[0;33m \"(Reading database ... 50081 files and directories currently installed.)\", \u001b[0m\r\n", + "\u001b[0;33m \"Removing vim (2:8.0.1453-1ubuntu1) ...\"\u001b[0m\r\n", "\u001b[0;33m ]\u001b[0m\r\n", "\u001b[0;33m}\u001b[0m\r\n" ] @@ -1270,14 +1253,14 @@ "output_type": "stream", "text": [ "\u001b[0;33mlocalhost | SUCCESS => {\u001b[0m\r\n", - "\u001b[0;33m \"cache_update_time\": 1528994100, \u001b[0m\r\n", + "\u001b[0;33m \"cache_update_time\": 1529309580, \u001b[0m\r\n", "\u001b[0;33m \"cache_updated\": false, \u001b[0m\r\n", "\u001b[0;33m \"changed\": true, \u001b[0m\r\n", "\u001b[0;33m \"stderr\": \"debconf: delaying package configuration, since apt-utils is not installed\\n\", \u001b[0m\r\n", "\u001b[0;33m \"stderr_lines\": [\u001b[0m\r\n", "\u001b[0;33m \"debconf: delaying package configuration, since apt-utils is not installed\"\u001b[0m\r\n", "\u001b[0;33m ], \u001b[0m\r\n", - "\u001b[0;33m \"stdout\": \"Reading package lists...\\nBuilding dependency tree...\\nReading state information...\\nSuggested packages:\\n ctags vim-doc vim-scripts\\nThe following NEW packages will be installed:\\n vim\\n0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.\\nNeed to get 1036 kB of archives.\\nAfter this operation, 2458 kB of additional disk space will be used.\\nGet:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 vim amd64 2:7.4.1689-3ubuntu1.2 [1036 kB]\\nFetched 1036 kB in 2s (400 kB/s)\\nSelecting previously unselected package vim.\\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 ... 46925 files and directories currently installed.)\\r\\nPreparing to unpack .../vim_2%3a7.4.1689-3ubuntu1.2_amd64.deb ...\\r\\nUnpacking vim (2:7.4.1689-3ubuntu1.2) ...\\r\\nSetting up vim (2:7.4.1689-3ubuntu1.2) ...\\r\\nupdate-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vim (vim) in auto mode\\r\\nupdate-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vimdiff (vimdiff) in auto mode\\r\\nupdate-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rvim (rvim) in auto mode\\r\\nupdate-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rview (rview) in auto mode\\r\\nupdate-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vi (vi) in auto mode\\r\\nupdate-alternatives: using /usr/bin/vim.basic to provide /usr/bin/view (view) in auto mode\\r\\nupdate-alternatives: using /usr/bin/vim.basic to provide /usr/bin/ex (ex) in auto mode\\r\\nupdate-alternatives: using /usr/bin/vim.basic to provide /usr/bin/editor (editor) in auto mode\\r\\n\", \u001b[0m\r\n", + "\u001b[0;33m \"stdout\": \"Reading package lists...\\nBuilding dependency tree...\\nReading state information...\\nSuggested packages:\\n ctags vim-doc vim-scripts\\nThe following NEW packages will be installed:\\n vim\\n0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.\\nNeed to get 1152 kB of archives.\\nAfter this operation, 2852 kB of additional disk space will be used.\\nGet:1 http://archive.ubuntu.com/ubuntu bionic/main amd64 vim amd64 2:8.0.1453-1ubuntu1 [1152 kB]\\nFetched 1152 kB in 3s (411 kB/s)\\nSelecting previously unselected package vim.\\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 ... 50072 files and directories currently installed.)\\r\\nPreparing to unpack .../vim_2%3a8.0.1453-1ubuntu1_amd64.deb ...\\r\\nUnpacking vim (2:8.0.1453-1ubuntu1) ...\\r\\nSetting up vim (2:8.0.1453-1ubuntu1) ...\\r\\nupdate-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vim (vim) in auto mode\\r\\nupdate-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vimdiff (vimdiff) in auto mode\\r\\nupdate-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rvim (rvim) in auto mode\\r\\nupdate-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rview (rview) in auto mode\\r\\nupdate-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vi (vi) in auto mode\\r\\nupdate-alternatives: warning: skip creation of /usr/share/man/fr/man1/vi.1.gz because associated file /usr/share/man/fr/man1/vim.1.gz (of link group vi) doesn't exist\\r\\nupdate-alternatives: warning: skip creation of /usr/share/man/it/man1/vi.1.gz because associated file /usr/share/man/it/man1/vim.1.gz (of link group vi) doesn't exist\\r\\nupdate-alternatives: warning: skip creation of /usr/share/man/pl/man1/vi.1.gz because associated file /usr/share/man/pl/man1/vim.1.gz (of link group vi) doesn't exist\\r\\nupdate-alternatives: warning: skip creation of /usr/share/man/ru/man1/vi.1.gz because associated file /usr/share/man/ru/man1/vim.1.gz (of link group vi) doesn't exist\\r\\nupdate-alternatives: warning: skip creation of /usr/share/man/ja/man1/vi.1.gz because associated file /usr/share/man/ja/man1/vim.1.gz (of link group vi) doesn't exist\\r\\nupdate-alternatives: warning: skip creation of /usr/share/man/man1/vi.1.gz because associated file /usr/share/man/man1/vim.1.gz (of link group vi) doesn't exist\\r\\nupdate-alternatives: using /usr/bin/vim.basic to provide /usr/bin/view (view) in auto mode\\r\\nupdate-alternatives: warning: skip creation of /usr/share/man/fr/man1/view.1.gz because associated file /usr/share/man/fr/man1/vim.1.gz (of link group view) doesn't exist\\r\\nupdate-alternatives: warning: skip creation of /usr/share/man/it/man1/view.1.gz because associated file /usr/share/man/it/man1/vim.1.gz (of link group view) doesn't exist\\r\\nupdate-alternatives: warning: skip creation of /usr/share/man/pl/man1/view.1.gz because associated file /usr/share/man/pl/man1/vim.1.gz (of link group view) doesn't exist\\r\\nupdate-alternatives: warning: skip creation of /usr/share/man/ru/man1/view.1.gz because associated file /usr/share/man/ru/man1/vim.1.gz (of link group view) doesn't exist\\r\\nupdate-alternatives: warning: skip creation of /usr/share/man/ja/man1/view.1.gz because associated file /usr/share/man/ja/man1/vim.1.gz (of link group view) doesn't exist\\r\\nupdate-alternatives: warning: skip creation of /usr/share/man/man1/view.1.gz because associated file /usr/share/man/man1/vim.1.gz (of link group view) doesn't exist\\r\\nupdate-alternatives: using /usr/bin/vim.basic to provide /usr/bin/ex (ex) in auto mode\\r\\nupdate-alternatives: warning: skip creation of /usr/share/man/fr/man1/ex.1.gz because associated file /usr/share/man/fr/man1/vim.1.gz (of link group ex) doesn't exist\\r\\nupdate-alternatives: warning: skip creation of /usr/share/man/it/man1/ex.1.gz because associated file /usr/share/man/it/man1/vim.1.gz (of link group ex) doesn't exist\\r\\nupdate-alternatives: warning: skip creation of /usr/share/man/pl/man1/ex.1.gz because associated file /usr/share/man/pl/man1/vim.1.gz (of link group ex) doesn't exist\\r\\nupdate-alternatives: warning: skip creation of /usr/share/man/ru/man1/ex.1.gz because associated file /usr/share/man/ru/man1/vim.1.gz (of link group ex) doesn't exist\\r\\nupdate-alternatives: warning: skip creation of /usr/share/man/ja/man1/ex.1.gz because associated file /usr/share/man/ja/man1/vim.1.gz (of link group ex) doesn't exist\\r\\nupdate-alternatives: warning: skip creation of /usr/share/man/man1/ex.1.gz because associated file /usr/share/man/man1/vim.1.gz (of link group ex) doesn't exist\\r\\nupdate-alternatives: using /usr/bin/vim.basic to provide /usr/bin/editor (editor) in auto mode\\r\\nupdate-alternatives: warning: skip creation of /usr/share/man/fr/man1/editor.1.gz because associated file /usr/share/man/fr/man1/vim.1.gz (of link group editor) doesn't exist\\r\\nupdate-alternatives: warning: skip creation of /usr/share/man/it/man1/editor.1.gz because associated file /usr/share/man/it/man1/vim.1.gz (of link group editor) doesn't exist\\r\\nupdate-alternatives: warning: skip creation of /usr/share/man/pl/man1/editor.1.gz because associated file /usr/share/man/pl/man1/vim.1.gz (of link group editor) doesn't exist\\r\\nupdate-alternatives: warning: skip creation of /usr/share/man/ru/man1/editor.1.gz because associated file /usr/share/man/ru/man1/vim.1.gz (of link group editor) doesn't exist\\r\\nupdate-alternatives: warning: skip creation of /usr/share/man/ja/man1/editor.1.gz because associated file /usr/share/man/ja/man1/vim.1.gz (of link group editor) doesn't exist\\r\\nupdate-alternatives: warning: skip creation of /usr/share/man/man1/editor.1.gz because associated file /usr/share/man/man1/vim.1.gz (of link group editor) doesn't exist\\r\\n\", \u001b[0m\r\n", "\u001b[0;33m \"stdout_lines\": [\u001b[0m\r\n", "\u001b[0;33m \"Reading package lists...\", \u001b[0m\r\n", "\u001b[0;33m \"Building dependency tree...\", \u001b[0m\r\n", @@ -1286,11 +1269,11 @@ "\u001b[0;33m \" ctags vim-doc vim-scripts\", \u001b[0m\r\n", "\u001b[0;33m \"The following NEW packages will be installed:\", \u001b[0m\r\n", "\u001b[0;33m \" vim\", \u001b[0m\r\n", - "\u001b[0;33m \"0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.\", \u001b[0m\r\n", - "\u001b[0;33m \"Need to get 1036 kB of archives.\", \u001b[0m\r\n", - "\u001b[0;33m \"After this operation, 2458 kB of additional disk space will be used.\", \u001b[0m\r\n", - "\u001b[0;33m \"Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 vim amd64 2:7.4.1689-3ubuntu1.2 [1036 kB]\", \u001b[0m\r\n", - "\u001b[0;33m \"Fetched 1036 kB in 2s (400 kB/s)\", \u001b[0m\r\n", + "\u001b[0;33m \"0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.\", \u001b[0m\r\n", + "\u001b[0;33m \"Need to get 1152 kB of archives.\", \u001b[0m\r\n", + "\u001b[0;33m \"After this operation, 2852 kB of additional disk space will be used.\", \u001b[0m\r\n", + "\u001b[0;33m \"Get:1 http://archive.ubuntu.com/ubuntu bionic/main amd64 vim amd64 2:8.0.1453-1ubuntu1 [1152 kB]\", \u001b[0m\r\n", + "\u001b[0;33m \"Fetched 1152 kB in 3s (411 kB/s)\", \u001b[0m\r\n", "\u001b[0;33m \"Selecting previously unselected package vim.\", \u001b[0m\r\n", "\u001b[0;33m \"(Reading database ... \", \u001b[0m\r\n", "\u001b[0;33m \"(Reading database ... 5%\", \u001b[0m\r\n", @@ -1313,18 +1296,42 @@ "\u001b[0;33m \"(Reading database ... 90%\", \u001b[0m\r\n", "\u001b[0;33m \"(Reading database ... 95%\", \u001b[0m\r\n", "\u001b[0;33m \"(Reading database ... 100%\", \u001b[0m\r\n", - "\u001b[0;33m \"(Reading database ... 46925 files and directories currently installed.)\", \u001b[0m\r\n", - "\u001b[0;33m \"Preparing to unpack .../vim_2%3a7.4.1689-3ubuntu1.2_amd64.deb ...\", \u001b[0m\r\n", - "\u001b[0;33m \"Unpacking vim (2:7.4.1689-3ubuntu1.2) ...\", \u001b[0m\r\n", - "\u001b[0;33m \"Setting up vim (2:7.4.1689-3ubuntu1.2) ...\", \u001b[0m\r\n", + "\u001b[0;33m \"(Reading database ... 50072 files and directories currently installed.)\", \u001b[0m\r\n", + "\u001b[0;33m \"Preparing to unpack .../vim_2%3a8.0.1453-1ubuntu1_amd64.deb ...\", \u001b[0m\r\n", + "\u001b[0;33m \"Unpacking vim (2:8.0.1453-1ubuntu1) ...\", \u001b[0m\r\n", + "\u001b[0;33m \"Setting up vim (2:8.0.1453-1ubuntu1) ...\", \u001b[0m\r\n", "\u001b[0;33m \"update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vim (vim) in auto mode\", \u001b[0m\r\n", "\u001b[0;33m \"update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vimdiff (vimdiff) in auto mode\", \u001b[0m\r\n", "\u001b[0;33m \"update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rvim (rvim) in auto mode\", \u001b[0m\r\n", "\u001b[0;33m \"update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rview (rview) in auto mode\", \u001b[0m\r\n", "\u001b[0;33m \"update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vi (vi) in auto mode\", \u001b[0m\r\n", + "\u001b[0;33m \"update-alternatives: warning: skip creation of /usr/share/man/fr/man1/vi.1.gz because associated file /usr/share/man/fr/man1/vim.1.gz (of link group vi) doesn't exist\", \u001b[0m\r\n", + "\u001b[0;33m \"update-alternatives: warning: skip creation of /usr/share/man/it/man1/vi.1.gz because associated file /usr/share/man/it/man1/vim.1.gz (of link group vi) doesn't exist\", \u001b[0m\r\n", + "\u001b[0;33m \"update-alternatives: warning: skip creation of /usr/share/man/pl/man1/vi.1.gz because associated file /usr/share/man/pl/man1/vim.1.gz (of link group vi) doesn't exist\", \u001b[0m\r\n", + "\u001b[0;33m \"update-alternatives: warning: skip creation of /usr/share/man/ru/man1/vi.1.gz because associated file /usr/share/man/ru/man1/vim.1.gz (of link group vi) doesn't exist\", \u001b[0m\r\n", + "\u001b[0;33m \"update-alternatives: warning: skip creation of /usr/share/man/ja/man1/vi.1.gz because associated file /usr/share/man/ja/man1/vim.1.gz (of link group vi) doesn't exist\", \u001b[0m\r\n", + "\u001b[0;33m \"update-alternatives: warning: skip creation of /usr/share/man/man1/vi.1.gz because associated file /usr/share/man/man1/vim.1.gz (of link group vi) doesn't exist\", \u001b[0m\r\n", "\u001b[0;33m \"update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/view (view) in auto mode\", \u001b[0m\r\n", + "\u001b[0;33m \"update-alternatives: warning: skip creation of /usr/share/man/fr/man1/view.1.gz because associated file /usr/share/man/fr/man1/vim.1.gz (of link group view) doesn't exist\", \u001b[0m\r\n", + "\u001b[0;33m \"update-alternatives: warning: skip creation of /usr/share/man/it/man1/view.1.gz because associated file /usr/share/man/it/man1/vim.1.gz (of link group view) doesn't exist\", \u001b[0m\r\n", + "\u001b[0;33m \"update-alternatives: warning: skip creation of /usr/share/man/pl/man1/view.1.gz because associated file /usr/share/man/pl/man1/vim.1.gz (of link group view) doesn't exist\", \u001b[0m\r\n", + "\u001b[0;33m \"update-alternatives: warning: skip creation of /usr/share/man/ru/man1/view.1.gz because associated file /usr/share/man/ru/man1/vim.1.gz (of link group view) doesn't exist\", \u001b[0m\r\n", + "\u001b[0;33m \"update-alternatives: warning: skip creation of /usr/share/man/ja/man1/view.1.gz because associated file /usr/share/man/ja/man1/vim.1.gz (of link group view) doesn't exist\", \u001b[0m\r\n", + "\u001b[0;33m \"update-alternatives: warning: skip creation of /usr/share/man/man1/view.1.gz because associated file /usr/share/man/man1/vim.1.gz (of link group view) doesn't exist\", \u001b[0m\r\n", "\u001b[0;33m \"update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/ex (ex) in auto mode\", \u001b[0m\r\n", - "\u001b[0;33m \"update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/editor (editor) in auto mode\"\u001b[0m\r\n", + "\u001b[0;33m \"update-alternatives: warning: skip creation of /usr/share/man/fr/man1/ex.1.gz because associated file /usr/share/man/fr/man1/vim.1.gz (of link group ex) doesn't exist\", \u001b[0m\r\n", + "\u001b[0;33m \"update-alternatives: warning: skip creation of /usr/share/man/it/man1/ex.1.gz because associated file /usr/share/man/it/man1/vim.1.gz (of link group ex) doesn't exist\", \u001b[0m\r\n", + "\u001b[0;33m \"update-alternatives: warning: skip creation of /usr/share/man/pl/man1/ex.1.gz because associated file /usr/share/man/pl/man1/vim.1.gz (of link group ex) doesn't exist\", \u001b[0m\r\n", + "\u001b[0;33m \"update-alternatives: warning: skip creation of /usr/share/man/ru/man1/ex.1.gz because associated file /usr/share/man/ru/man1/vim.1.gz (of link group ex) doesn't exist\", \u001b[0m\r\n", + "\u001b[0;33m \"update-alternatives: warning: skip creation of /usr/share/man/ja/man1/ex.1.gz because associated file /usr/share/man/ja/man1/vim.1.gz (of link group ex) doesn't exist\", \u001b[0m\r\n", + "\u001b[0;33m \"update-alternatives: warning: skip creation of /usr/share/man/man1/ex.1.gz because associated file /usr/share/man/man1/vim.1.gz (of link group ex) doesn't exist\", \u001b[0m\r\n", + "\u001b[0;33m \"update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/editor (editor) in auto mode\", \u001b[0m\r\n", + "\u001b[0;33m \"update-alternatives: warning: skip creation of /usr/share/man/fr/man1/editor.1.gz because associated file /usr/share/man/fr/man1/vim.1.gz (of link group editor) doesn't exist\", \u001b[0m\r\n", + "\u001b[0;33m \"update-alternatives: warning: skip creation of /usr/share/man/it/man1/editor.1.gz because associated file /usr/share/man/it/man1/vim.1.gz (of link group editor) doesn't exist\", \u001b[0m\r\n", + "\u001b[0;33m \"update-alternatives: warning: skip creation of /usr/share/man/pl/man1/editor.1.gz because associated file /usr/share/man/pl/man1/vim.1.gz (of link group editor) doesn't exist\", \u001b[0m\r\n", + "\u001b[0;33m \"update-alternatives: warning: skip creation of /usr/share/man/ru/man1/editor.1.gz because associated file /usr/share/man/ru/man1/vim.1.gz (of link group editor) doesn't exist\", \u001b[0m\r\n", + "\u001b[0;33m \"update-alternatives: warning: skip creation of /usr/share/man/ja/man1/editor.1.gz because associated file /usr/share/man/ja/man1/vim.1.gz (of link group editor) doesn't exist\", \u001b[0m\r\n", + "\u001b[0;33m \"update-alternatives: warning: skip creation of /usr/share/man/man1/editor.1.gz because associated file /usr/share/man/man1/vim.1.gz (of link group editor) doesn't exist\"\u001b[0m\r\n", "\u001b[0;33m ]\u001b[0m\r\n", "\u001b[0;33m}\u001b[0m\r\n" ] @@ -1353,25 +1360,25 @@ "output_type": "stream", "text": [ "\u001b[0;33mlocalhost | SUCCESS => {\u001b[0m\r\n", - "\u001b[0;33m \"cache_update_time\": 1528994100, \u001b[0m\r\n", + "\u001b[0;33m \"cache_update_time\": 1529309580, \u001b[0m\r\n", "\u001b[0;33m \"cache_updated\": false, \u001b[0m\r\n", "\u001b[0;33m \"changed\": true, \u001b[0m\r\n", "\u001b[0;33m \"stderr\": \"debconf: delaying package configuration, since apt-utils is not installed\\n\", \u001b[0m\r\n", "\u001b[0;33m \"stderr_lines\": [\u001b[0m\r\n", "\u001b[0;33m \"debconf: delaying package configuration, since apt-utils is not installed\"\u001b[0m\r\n", "\u001b[0;33m ], \u001b[0m\r\n", - "\u001b[0;33m \"stdout\": \"Reading package lists...\\nBuilding dependency tree...\\nReading state information...\\nThe following NEW packages will be installed:\\n tree\\n0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.\\nNeed to get 40.6 kB of archives.\\nAfter this operation, 138 kB of additional disk space will be used.\\nGet:1 http://archive.ubuntu.com/ubuntu xenial/universe amd64 tree amd64 1.7.0-3 [40.6 kB]\\nFetched 40.6 kB in 0s (44.2 kB/s)\\nSelecting previously unselected package tree.\\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 ... 46931 files and directories currently installed.)\\r\\nPreparing to unpack .../tree_1.7.0-3_amd64.deb ...\\r\\nUnpacking tree (1.7.0-3) ...\\r\\nSetting up tree (1.7.0-3) ...\\r\\n\", \u001b[0m\r\n", + "\u001b[0;33m \"stdout\": \"Reading package lists...\\nBuilding dependency tree...\\nReading state information...\\nThe following NEW packages will be installed:\\n tree\\n0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.\\nNeed to get 40.7 kB of archives.\\nAfter this operation, 105 kB of additional disk space will be used.\\nGet:1 http://archive.ubuntu.com/ubuntu bionic/universe amd64 tree amd64 1.7.0-5 [40.7 kB]\\nFetched 40.7 kB in 1s (42.3 kB/s)\\nSelecting previously unselected package tree.\\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 ... 50081 files and directories currently installed.)\\r\\nPreparing to unpack .../tree_1.7.0-5_amd64.deb ...\\r\\nUnpacking tree (1.7.0-5) ...\\r\\nSetting up tree (1.7.0-5) ...\\r\\n\", \u001b[0m\r\n", "\u001b[0;33m \"stdout_lines\": [\u001b[0m\r\n", "\u001b[0;33m \"Reading package lists...\", \u001b[0m\r\n", "\u001b[0;33m \"Building dependency tree...\", \u001b[0m\r\n", "\u001b[0;33m \"Reading state information...\", \u001b[0m\r\n", "\u001b[0;33m \"The following NEW packages will be installed:\", \u001b[0m\r\n", "\u001b[0;33m \" tree\", \u001b[0m\r\n", - "\u001b[0;33m \"0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.\", \u001b[0m\r\n", - "\u001b[0;33m \"Need to get 40.6 kB of archives.\", \u001b[0m\r\n", - "\u001b[0;33m \"After this operation, 138 kB of additional disk space will be used.\", \u001b[0m\r\n", - "\u001b[0;33m \"Get:1 http://archive.ubuntu.com/ubuntu xenial/universe amd64 tree amd64 1.7.0-3 [40.6 kB]\", \u001b[0m\r\n", - "\u001b[0;33m \"Fetched 40.6 kB in 0s (44.2 kB/s)\", \u001b[0m\r\n", + "\u001b[0;33m \"0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.\", \u001b[0m\r\n", + "\u001b[0;33m \"Need to get 40.7 kB of archives.\", \u001b[0m\r\n", + "\u001b[0;33m \"After this operation, 105 kB of additional disk space will be used.\", \u001b[0m\r\n", + "\u001b[0;33m \"Get:1 http://archive.ubuntu.com/ubuntu bionic/universe amd64 tree amd64 1.7.0-5 [40.7 kB]\", \u001b[0m\r\n", + "\u001b[0;33m \"Fetched 40.7 kB in 1s (42.3 kB/s)\", \u001b[0m\r\n", "\u001b[0;33m \"Selecting previously unselected package tree.\", \u001b[0m\r\n", "\u001b[0;33m \"(Reading database ... \", \u001b[0m\r\n", "\u001b[0;33m \"(Reading database ... 5%\", \u001b[0m\r\n", @@ -1394,10 +1401,10 @@ "\u001b[0;33m \"(Reading database ... 90%\", \u001b[0m\r\n", "\u001b[0;33m \"(Reading database ... 95%\", \u001b[0m\r\n", "\u001b[0;33m \"(Reading database ... 100%\", \u001b[0m\r\n", - "\u001b[0;33m \"(Reading database ... 46931 files and directories currently installed.)\", \u001b[0m\r\n", - "\u001b[0;33m \"Preparing to unpack .../tree_1.7.0-3_amd64.deb ...\", \u001b[0m\r\n", - "\u001b[0;33m \"Unpacking tree (1.7.0-3) ...\", \u001b[0m\r\n", - "\u001b[0;33m \"Setting up tree (1.7.0-3) ...\"\u001b[0m\r\n", + "\u001b[0;33m \"(Reading database ... 50081 files and directories currently installed.)\", \u001b[0m\r\n", + "\u001b[0;33m \"Preparing to unpack .../tree_1.7.0-5_amd64.deb ...\", \u001b[0m\r\n", + "\u001b[0;33m \"Unpacking tree (1.7.0-5) ...\", \u001b[0m\r\n", + "\u001b[0;33m \"Setting up tree (1.7.0-5) ...\"\u001b[0m\r\n", "\u001b[0;33m ]\u001b[0m\r\n", "\u001b[0;33m}\u001b[0m\r\n" ] @@ -1794,7 +1801,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython2", - "version": "2.7.12" + "version": "2.7.15rc1" } }, "nbformat": 4, diff --git a/ubuntu-18.04/Dockerfile b/ubuntu-18.04/Dockerfile new file mode 100644 index 0000000..99bf5ca --- /dev/null +++ b/ubuntu-18.04/Dockerfile @@ -0,0 +1,44 @@ +FROM ubuntu:18.04 + +MAINTAINER Chu-Siang Lai + +# Update the index of available packages. +RUN apt-get update + +# Install the requires apt package and python. +RUN apt-get install -y --no-install-recommends \ + linux-headers-generic gcc build-essential python python-pip python-dev \ + libffi-dev \ + && \ + apt-get clean + +# Setup the ansible. +RUN apt-get install -y --no-install-recommends software-properties-common + +RUN add-apt-repository ppa:ansible/ansible -y && apt-get update + +RUN apt-get install -y --no-install-recommends \ + ansible \ + && \ + apt-get clean + +# for disable localhost warning message. +RUN /bin/echo -e "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts + +# Upgrade the pip to lastest. +RUN pip install -U pip + +# Setup with Ansible. +ADD https://raw.githubusercontent.com/chusiang/ansible-jupyter.dockerfile/master/setup_jupyter.yml /home +RUN ansible-playbook -v /home/setup_jupyter.yml + +# Copy a ipython notebook example to image. +ADD https://raw.githubusercontent.com/chusiang/ansible-jupyter.dockerfile/master/ipynb/ansible_on_jupyter.ipynb /home/ +ADD https://raw.githubusercontent.com/chusiang/ansible-jupyter.dockerfile/master/ipynb/ansible_on_jupyter_ubuntu.ipynb /home/ + +# Run service of Jupyter. +COPY docker-entrypoint.sh /usr/local/bin/ +ENTRYPOINT [ "docker-entrypoint.sh" ] +EXPOSE 8888 + +CMD [ "jupyter", "--version" ] diff --git a/ubuntu-18.04/docker-entrypoint.sh b/ubuntu-18.04/docker-entrypoint.sh new file mode 100755 index 0000000..d243fa5 --- /dev/null +++ b/ubuntu-18.04/docker-entrypoint.sh @@ -0,0 +1,15 @@ +#!/bin/sh +# ============================================================ +# Author: Chu-Siang Lai / chusiang (at) drx.tw +# Blog: http://note.drx.tw +# Filename: docker-entrypoint.sh +# Modified: 2016-11-20 18:43 +# Description: Run the jupyter service. +# +# --ip 0.0.0.0: Allow all IP access. +# --no-browser: Don't open browser from command line. +# --notebook-dir: Bunding the workdir. +# +# =========================================================== + +jupyter-notebook --ip 0.0.0.0 --no-browser --allow-root --notebook-dir=/home