Skip to content

Instantly share code, notes, and snippets.

@odyssey4me
Created July 17, 2016 14:30
Show Gist options
  • Save odyssey4me/ec8f9316f74bca099c9f65f8fefb05a4 to your computer and use it in GitHub Desktop.
Save odyssey4me/ec8f9316f74bca099c9f65f8fefb05a4 to your computer and use it in GitHub Desktop.
Testing the local and remote lxc connection plugins
# Note: This test is executed on Ubuntu Trusty
# do this on localhost (deployment host)
# ensure that there's a local ssh private key
ssh-keygen -t rsa -N '' -f ~/.ssh/id_rsa
# now make sure that the public key is in the second host's authorized_keys
# then do a test ssh connection to make sure it works, and to add the host
# to known hosts
# do this on both hosts
# implement the right binaries
apt-get update && \
apt-get purge -y nano && \
apt-get install -y git vim tmux fail2ban build-essential python2.7 python-dev libssl-dev libffi-dev
#
# only do the rest of these steps on localhost (deployment host)
#
# install pip
curl --silent --show-error --retry 5 https://bootstrap.pypa.io/get-pip.py | sudo python2.7
# install ansible
pip install -U ansible==2.1.0
# implement the two connection plugins
mkdir -p ~/.ansible/plugins/connection
git clone https://github.com/Mic92/ansible-lxc.git ~/.ansible/plugins/connection/lxc
git clone https://github.com/chifflier/ansible-lxc-ssh.git ~/.ansible/plugins/connection/lxc_ssh
[all]
localhost ansible_connection=local ansible_become=True ansible_user=root
container1 ansible_connection=lxc physical_host=localhost ansible_become=True ansible_user=root
container2 ansible_connection=lxc physical_host=localhost ansible_become=True ansible_user=root
lxc-connection2 ansible_host=aaaa.bbbb.cccc.dddd ansible_become=True ansible_user=root
container3 ansible_connection=lxc_ssh ansible_host=aaaa.bbbb.cccc.dddd physical_host=lxc-connection2 ansible_become=True ansible_user=root ansible_ssh_extra_args=container3
container4 ansible_connection=lxc_ssh ansible_host=aaaa.bbbb.cccc.dddd physical_host=lxc-connection2 ansible_become=True ansible_user=root ansible_ssh_extra_args=container4
[hosts]
localhost
lxc-connection2
[all_containers]
container1
container2
container3
container4
Discussion, and referenced PR for remote LXC connection plugin: https://groups.google.com/forum/#!topic/ansible-devel/4S7asT5rVOg
Remote chroot connection plugin WIP: https://github.com/renard/ansible/tree/cnx_chroot
Using the local jail connection plugin: https://www.keltia.net/howtos/jail-mgmt-with-ansible/
Using the local chroot connection plugin: https://lesterwade.wordpress.com/2013/08/02/building-cloud-images-with-ansible/
Nesting connection plugin discussion: https://groups.google.com/forum/#!msg/ansible-project/snM7n1QGoAw/_QhPrSWb64YJ
Using ssh configuration to remotely manage LXC containers: http://servertopic.com/topic/xtXf-how-to-use-ansible-to-manage-remote-lxc-containers
- name: Prepare the hosts
hosts: hosts
tasks:
- name: Install LXC packages
apt:
pkg: "{{ item }}"
state: present
default_release: "trusty-backports"
with_items:
- lxc
- lxc-dev
tags: prepare-host
- name: Install pip
shell: "curl --silent --show-error --retry 5 https://bootstrap.pypa.io/get-pip.py | sudo python2.7"
tags: prepare-host
- name: Install LXC python library
pip:
name: lxc-python2
state: present
tags: prepare-host
- name: Create and prepare containers
hosts: all_containers
gather_facts: no
tasks:
- name: Clean up containers
lxc_container:
name: "{{ inventory_hostname }}"
state: absent
delegate_to: "{{ physical_host }}"
tags:
- destroy
- name: Create the containers
lxc_container:
name: "{{ inventory_hostname }}"
template: download
state: started
backing_store: dir
template_options: --dist ubuntu --release trusty --arch amd64
delegate_to: "{{ physical_host }}"
- name: Deploy the container prep script
copy:
content: |
#!/usr/bin/env bash
set -e -x
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" --force-yes python2.7
rm -f /usr/bin/python
ln -s /usr/bin/python2.7 /usr/bin/python
userdel --force --remove ubuntu || true
apt-get clean
dest: "/var/lib/lxc/{{ inventory_hostname }}/rootfs/usr/local/bin/cache-prep-commands.sh"
mode: "0755"
delegate_to: "{{ physical_host }}"
- name: Execute the container prep script
command: "chroot /var/lib/lxc/{{ inventory_hostname }}/rootfs /usr/local/bin/cache-prep-commands.sh"
delegate_to: "{{ physical_host }}"
- name: Do things in all containers
hosts: all_containers
tasks:
- name: Install packages
apt:
pkg: "{{ item }}"
state: present
with_items:
- ca-certificates
- iptables
2016-07-17 14:23:16,570 p=14261 u=root | No config file found; using defaults
2016-07-17 14:23:16,657 p=14261 u=root | PLAYBOOK: test-lxc-connection-plugin.yml ***************************************
2016-07-17 14:23:16,657 p=14261 u=root | 3 plays in test-lxc-connection-plugin.yml
2016-07-17 14:23:16,663 p=14261 u=root | PLAY [Prepare the hosts] *******************************************************
2016-07-17 14:23:16,678 p=14261 u=root | TASK [setup] *******************************************************************
2016-07-17 14:23:17,344 p=14261 u=root | ok: [localhost]
2016-07-17 14:23:17,953 p=14261 u=root | ok: [lxc-connection2]
2016-07-17 14:23:17,956 p=14261 u=root | TASK [Install LXC packages] ****************************************************
2016-07-17 14:23:17,956 p=14261 u=root | task path: /root/test-lxc-connection-plugin.yml:4
2016-07-17 14:23:18,844 p=14261 u=root | ok: [localhost] => (item=[u'lxc', u'lxc-dev']) => {"cache_update_time": 0, "cache_updated": false, "changed": false, "invocation": {"module_args": {"allow_unauthenticated": false, "autoremove": false, "cache_valid_time": null, "deb": null, "default_release": null, "dpkg_options": "force-confdef,force-confold", "force": false, "install_recommends": null, "name": ["lxc", "lxc-dev"], "only_upgrade": false, "package": ["lxc", "lxc-dev"], "purge": false, "state": "present", "update_cache": false, "upgrade": null}, "module_name": "apt"}, "item": ["lxc", "lxc-dev"]}
2016-07-17 14:23:18,882 p=14261 u=root | ok: [lxc-connection2] => (item=[u'lxc', u'lxc-dev']) => {"cache_update_time": 0, "cache_updated": false, "changed": false, "invocation": {"module_args": {"allow_unauthenticated": false, "autoremove": false, "cache_valid_time": null, "deb": null, "default_release": null, "dpkg_options": "force-confdef,force-confold", "force": false, "install_recommends": null, "name": ["lxc", "lxc-dev"], "only_upgrade": false, "package": ["lxc", "lxc-dev"], "purge": false, "state": "present", "update_cache": false, "upgrade": null}, "module_name": "apt"}, "item": ["lxc", "lxc-dev"]}
2016-07-17 14:23:18,884 p=14261 u=root | TASK [Install pip] *************************************************************
2016-07-17 14:23:18,885 p=14261 u=root | task path: /root/test-lxc-connection-plugin.yml:12
2016-07-17 14:23:20,936 p=14261 u=root | changed: [localhost] => {"changed": true, "cmd": "curl --silent --show-error --retry 5 https://bootstrap.pypa.io/get-pip.py | sudo python2.7", "delta": "0:00:01.865381", "end": "2016-07-17 14:23:20.919719", "invocation": {"module_args": {"_raw_params": "curl --silent --show-error --retry 5 https://bootstrap.pypa.io/get-pip.py | sudo python2.7", "_uses_shell": true, "chdir": null, "creates": null, "executable": null, "removes": null, "warn": true}, "module_name": "command"}, "rc": 0, "start": "2016-07-17 14:23:19.054338", "stderr": "/tmp/tmp86smIm/pip.zip/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.\n/tmp/tmp86smIm/pip.zip/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.", "stdout": "Requirement already up-to-date: pip in /usr/local/lib/python2.7/dist-packages", "stdout_lines": ["Requirement already up-to-date: pip in /usr/local/lib/python2.7/dist-packages"], "warnings": ["Consider using get_url or uri module rather than running curl"]}
2016-07-17 14:23:20,938 p=14261 u=root | [WARNING]: Consider using get_url or uri module rather than running curl
2016-07-17 14:23:20,948 p=14261 u=root | changed: [lxc-connection2] => {"changed": true, "cmd": "curl --silent --show-error --retry 5 https://bootstrap.pypa.io/get-pip.py | sudo python2.7", "delta": "0:00:01.839763", "end": "2016-07-17 14:23:21.036266", "invocation": {"module_args": {"_raw_params": "curl --silent --show-error --retry 5 https://bootstrap.pypa.io/get-pip.py | sudo python2.7", "_uses_shell": true, "chdir": null, "creates": null, "executable": null, "removes": null, "warn": true}, "module_name": "command"}, "rc": 0, "start": "2016-07-17 14:23:19.196503", "stderr": "/tmp/tmpKfXxCd/pip.zip/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.\n/tmp/tmpKfXxCd/pip.zip/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.", "stdout": "Requirement already up-to-date: pip in /usr/local/lib/python2.7/dist-packages", "stdout_lines": ["Requirement already up-to-date: pip in /usr/local/lib/python2.7/dist-packages"], "warnings": ["Consider using get_url or uri module rather than running curl"]}
2016-07-17 14:23:20,950 p=14261 u=root | TASK [Install LXC python library] **********************************************
2016-07-17 14:23:20,950 p=14261 u=root | task path: /root/test-lxc-connection-plugin.yml:15
2016-07-17 14:23:21,826 p=14261 u=root | ok: [localhost] => {"changed": false, "cmd": "/usr/local/bin/pip install lxc-python2", "invocation": {"module_args": {"chdir": null, "editable": true, "executable": null, "extra_args": null, "name": "lxc-python2", "requirements": null, "state": "present", "umask": null, "use_mirrors": true, "version": null, "virtualenv": null, "virtualenv_command": "virtualenv", "virtualenv_python": null, "virtualenv_site_packages": false}, "module_name": "pip"}, "name": "lxc-python2", "requirements": null, "state": "present", "stderr": "", "stdout": "Requirement already satisfied (use --upgrade to upgrade): lxc-python2 in /usr/local/lib/python2.7/dist-packages\n", "stdout_lines": ["Requirement already satisfied (use --upgrade to upgrade): lxc-python2 in /usr/local/lib/python2.7/dist-packages"], "version": null, "virtualenv": null}
2016-07-17 14:23:21,936 p=14261 u=root | ok: [lxc-connection2] => {"changed": false, "cmd": "/usr/local/bin/pip install lxc-python2", "invocation": {"module_args": {"chdir": null, "editable": true, "executable": null, "extra_args": null, "name": "lxc-python2", "requirements": null, "state": "present", "umask": null, "use_mirrors": true, "version": null, "virtualenv": null, "virtualenv_command": "virtualenv", "virtualenv_python": null, "virtualenv_site_packages": false}, "module_name": "pip"}, "name": "lxc-python2", "requirements": null, "state": "present", "stderr": "", "stdout": "Requirement already satisfied (use --upgrade to upgrade): lxc-python2 in /usr/local/lib/python2.7/dist-packages\n", "stdout_lines": ["Requirement already satisfied (use --upgrade to upgrade): lxc-python2 in /usr/local/lib/python2.7/dist-packages"], "version": null, "virtualenv": null}
2016-07-17 14:23:21,946 p=14261 u=root | PLAY [Create and prepare containers] *******************************************
2016-07-17 14:23:21,963 p=14261 u=root | TASK [Clean up containers] *****************************************************
2016-07-17 14:23:21,963 p=14261 u=root | task path: /root/test-lxc-connection-plugin.yml:26
2016-07-17 14:23:24,219 p=14261 u=root | changed: [container2 -> localhost] => {"changed": true, "invocation": {"module_args": {"archive": false, "archive_compression": "gzip", "archive_path": null, "backing_store": "dir", "clone_name": null, "clone_snapshot": false, "config": null, "container_command": null, "container_config": null, "container_log": false, "container_log_level": "INFO", "directory": null, "fs_size": "5G", "fs_type": "ext4", "lv_name": "container2", "lxc_path": null, "name": "container2", "state": "absent", "template": "ubuntu", "template_options": null, "thinpool": null, "vg_name": "lxc", "zfs_root": null}, "module_name": "lxc_container"}, "lxc_container": {"init_pid": -1, "interfaces": [], "ips": [], "name": "container2", "state": "absent"}}
2016-07-17 14:23:24,225 p=14261 u=root | changed: [container1 -> localhost] => {"changed": true, "invocation": {"module_args": {"archive": false, "archive_compression": "gzip", "archive_path": null, "backing_store": "dir", "clone_name": null, "clone_snapshot": false, "config": null, "container_command": null, "container_config": null, "container_log": false, "container_log_level": "INFO", "directory": null, "fs_size": "5G", "fs_type": "ext4", "lv_name": "container1", "lxc_path": null, "name": "container1", "state": "absent", "template": "ubuntu", "template_options": null, "thinpool": null, "vg_name": "lxc", "zfs_root": null}, "module_name": "lxc_container"}, "lxc_container": {"init_pid": -1, "interfaces": [], "ips": [], "name": "container1", "state": "absent"}}
2016-07-17 14:23:24,284 p=14261 u=root | changed: [container3 -> 23.253.244.110] => {"changed": true, "invocation": {"module_args": {"archive": false, "archive_compression": "gzip", "archive_path": null, "backing_store": "dir", "clone_name": null, "clone_snapshot": false, "config": null, "container_command": null, "container_config": null, "container_log": false, "container_log_level": "INFO", "directory": null, "fs_size": "5G", "fs_type": "ext4", "lv_name": "container3", "lxc_path": null, "name": "container3", "state": "absent", "template": "ubuntu", "template_options": null, "thinpool": null, "vg_name": "lxc", "zfs_root": null}, "module_name": "lxc_container"}, "lxc_container": {"init_pid": -1, "interfaces": [], "ips": [], "name": "container3", "state": "absent"}}
2016-07-17 14:23:24,291 p=14261 u=root | changed: [container4 -> 23.253.244.110] => {"changed": true, "invocation": {"module_args": {"archive": false, "archive_compression": "gzip", "archive_path": null, "backing_store": "dir", "clone_name": null, "clone_snapshot": false, "config": null, "container_command": null, "container_config": null, "container_log": false, "container_log_level": "INFO", "directory": null, "fs_size": "5G", "fs_type": "ext4", "lv_name": "container4", "lxc_path": null, "name": "container4", "state": "absent", "template": "ubuntu", "template_options": null, "thinpool": null, "vg_name": "lxc", "zfs_root": null}, "module_name": "lxc_container"}, "lxc_container": {"init_pid": -1, "interfaces": [], "ips": [], "name": "container4", "state": "absent"}}
2016-07-17 14:23:24,295 p=14261 u=root | TASK [Create the containers] ***************************************************
2016-07-17 14:23:24,295 p=14261 u=root | task path: /root/test-lxc-connection-plugin.yml:34
2016-07-17 14:23:35,318 p=14261 u=root | changed: [container2 -> localhost] => {"changed": true, "invocation": {"module_args": {"archive": false, "archive_compression": "gzip", "archive_path": null, "backing_store": "dir", "clone_name": null, "clone_snapshot": false, "config": null, "container_command": null, "container_config": null, "container_log": false, "container_log_level": "INFO", "directory": null, "fs_size": "5G", "fs_type": "ext4", "lv_name": "container2", "lxc_path": null, "name": "container2", "state": "started", "template": "download", "template_options": "--dist ubuntu --release trusty --arch amd64", "thinpool": null, "vg_name": "lxc", "zfs_root": null}, "module_name": "lxc_container"}, "lxc_container": {"init_pid": 14693, "interfaces": ["eth0", "lo"], "ips": [], "name": "container2", "state": "running"}}
2016-07-17 14:23:35,387 p=14261 u=root | changed: [container1 -> localhost] => {"changed": true, "invocation": {"module_args": {"archive": false, "archive_compression": "gzip", "archive_path": null, "backing_store": "dir", "clone_name": null, "clone_snapshot": false, "config": null, "container_command": null, "container_config": null, "container_log": false, "container_log_level": "INFO", "directory": null, "fs_size": "5G", "fs_type": "ext4", "lv_name": "container1", "lxc_path": null, "name": "container1", "state": "started", "template": "download", "template_options": "--dist ubuntu --release trusty --arch amd64", "thinpool": null, "vg_name": "lxc", "zfs_root": null}, "module_name": "lxc_container"}, "lxc_container": {"init_pid": 14767, "interfaces": ["eth0", "lo"], "ips": [], "name": "container1", "state": "running"}}
2016-07-17 14:23:35,978 p=14261 u=root | changed: [container4 -> 23.253.244.110] => {"changed": true, "invocation": {"module_args": {"archive": false, "archive_compression": "gzip", "archive_path": null, "backing_store": "dir", "clone_name": null, "clone_snapshot": false, "config": null, "container_command": null, "container_config": null, "container_log": false, "container_log_level": "INFO", "directory": null, "fs_size": "5G", "fs_type": "ext4", "lv_name": "container4", "lxc_path": null, "name": "container4", "state": "started", "template": "download", "template_options": "--dist ubuntu --release trusty --arch amd64", "thinpool": null, "vg_name": "lxc", "zfs_root": null}, "module_name": "lxc_container"}, "lxc_container": {"init_pid": 22330, "interfaces": ["eth0", "lo"], "ips": [], "name": "container4", "state": "running"}}
2016-07-17 14:23:36,068 p=14261 u=root | changed: [container3 -> 23.253.244.110] => {"changed": true, "invocation": {"module_args": {"archive": false, "archive_compression": "gzip", "archive_path": null, "backing_store": "dir", "clone_name": null, "clone_snapshot": false, "config": null, "container_command": null, "container_config": null, "container_log": false, "container_log_level": "INFO", "directory": null, "fs_size": "5G", "fs_type": "ext4", "lv_name": "container3", "lxc_path": null, "name": "container3", "state": "started", "template": "download", "template_options": "--dist ubuntu --release trusty --arch amd64", "thinpool": null, "vg_name": "lxc", "zfs_root": null}, "module_name": "lxc_container"}, "lxc_container": {"init_pid": 22400, "interfaces": ["eth0", "lo"], "ips": [], "name": "container3", "state": "running"}}
2016-07-17 14:23:36,073 p=14261 u=root | TASK [Deploy the container prep script] ****************************************
2016-07-17 14:23:36,073 p=14261 u=root | task path: /root/test-lxc-connection-plugin.yml:43
2016-07-17 14:23:36,429 p=14261 u=root | changed: [container2 -> localhost] => {"changed": true, "checksum": "3345bae2ae896df51aea3298d2e469fa0872ded7", "dest": "/var/lib/lxc/container2/rootfs/usr/local/bin/cache-prep-commands.sh", "gid": 0, "group": "root", "invocation": {"module_args": {"backup": false, "content": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "delimiter": null, "dest": "/var/lib/lxc/container2/rootfs/usr/local/bin/cache-prep-commands.sh", "directory_mode": null, "follow": false, "force": true, "group": null, "mode": "0755", "original_basename": "tmpm3jSod", "owner": null, "regexp": null, "remote_src": null, "selevel": null, "serole": null, "setype": null, "seuser": null, "src": "/root/.ansible/tmp/ansible-tmp-1468765416.25-212632035049371/source", "validate": null}}, "md5sum": "5f36a9837643bc992e376207040c0b4d", "mode": "0755", "owner": "root", "size": 315, "src": "/root/.ansible/tmp/ansible-tmp-1468765416.25-212632035049371/source", "state": "file", "uid": 0}
2016-07-17 14:23:36,432 p=14261 u=root | changed: [container1 -> localhost] => {"changed": true, "checksum": "3345bae2ae896df51aea3298d2e469fa0872ded7", "dest": "/var/lib/lxc/container1/rootfs/usr/local/bin/cache-prep-commands.sh", "gid": 0, "group": "root", "invocation": {"module_args": {"backup": false, "content": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "delimiter": null, "dest": "/var/lib/lxc/container1/rootfs/usr/local/bin/cache-prep-commands.sh", "directory_mode": null, "follow": false, "force": true, "group": null, "mode": "0755", "original_basename": "tmpUUMWkk", "owner": null, "regexp": null, "remote_src": null, "selevel": null, "serole": null, "setype": null, "seuser": null, "src": "/root/.ansible/tmp/ansible-tmp-1468765416.25-266566222659682/source", "validate": null}}, "md5sum": "5f36a9837643bc992e376207040c0b4d", "mode": "0755", "owner": "root", "size": 315, "src": "/root/.ansible/tmp/ansible-tmp-1468765416.25-266566222659682/source", "state": "file", "uid": 0}
2016-07-17 14:23:36,460 p=14261 u=root | changed: [container4 -> 23.253.244.110] => {"changed": true, "checksum": "3345bae2ae896df51aea3298d2e469fa0872ded7", "dest": "/var/lib/lxc/container4/rootfs/usr/local/bin/cache-prep-commands.sh", "gid": 0, "group": "root", "invocation": {"module_args": {"backup": false, "content": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "delimiter": null, "dest": "/var/lib/lxc/container4/rootfs/usr/local/bin/cache-prep-commands.sh", "directory_mode": null, "follow": false, "force": true, "group": null, "mode": "0755", "original_basename": "tmpWouwOL", "owner": null, "regexp": null, "remote_src": null, "selevel": null, "serole": null, "setype": null, "seuser": null, "src": "/root/.ansible/tmp/ansible-tmp-1468765416.3-40288752839719/source", "validate": null}}, "md5sum": "5f36a9837643bc992e376207040c0b4d", "mode": "0755", "owner": "root", "size": 315, "src": "/root/.ansible/tmp/ansible-tmp-1468765416.3-40288752839719/source", "state": "file", "uid": 0}
2016-07-17 14:23:36,461 p=14261 u=root | changed: [container3 -> 23.253.244.110] => {"changed": true, "checksum": "3345bae2ae896df51aea3298d2e469fa0872ded7", "dest": "/var/lib/lxc/container3/rootfs/usr/local/bin/cache-prep-commands.sh", "gid": 0, "group": "root", "invocation": {"module_args": {"backup": false, "content": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "delimiter": null, "dest": "/var/lib/lxc/container3/rootfs/usr/local/bin/cache-prep-commands.sh", "directory_mode": null, "follow": false, "force": true, "group": null, "mode": "0755", "original_basename": "tmpSah81g", "owner": null, "regexp": null, "remote_src": null, "selevel": null, "serole": null, "setype": null, "seuser": null, "src": "/root/.ansible/tmp/ansible-tmp-1468765416.3-253801234650822/source", "validate": null}}, "md5sum": "5f36a9837643bc992e376207040c0b4d", "mode": "0755", "owner": "root", "size": 315, "src": "/root/.ansible/tmp/ansible-tmp-1468765416.3-253801234650822/source", "state": "file", "uid": 0}
2016-07-17 14:23:36,465 p=14261 u=root | TASK [Execute the container prep script] ***************************************
2016-07-17 14:23:36,465 p=14261 u=root | task path: /root/test-lxc-connection-plugin.yml:59
2016-07-17 14:23:48,154 p=14261 u=root | changed: [container2 -> localhost] => {"changed": true, "cmd": ["chroot", "/var/lib/lxc/container2/rootfs", "/usr/local/bin/cache-prep-commands.sh"], "delta": "0:00:11.562897", "end": "2016-07-17 14:23:48.135839", "invocation": {"module_args": {"_raw_params": "chroot /var/lib/lxc/container2/rootfs /usr/local/bin/cache-prep-commands.sh", "_uses_shell": false, "chdir": null, "creates": null, "executable": null, "removes": null, "warn": true}, "module_name": "command"}, "rc": 0, "start": "2016-07-17 14:23:36.572942", "stderr": "+ export DEBIAN_FRONTEND=noninteractive\n+ DEBIAN_FRONTEND=noninteractive\n+ apt-get update\n+ apt-get install -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold --force-yes python2.7\n+ rm -f /usr/bin/python\n+ ln -s /usr/bin/python2.7 /usr/bin/python\n+ userdel --force --remove ubuntu\nuserdel: ubuntu mail spool (/var/mail/ubuntu) not found\n+ apt-get clean", "stdout": "Hit http://security.ubuntu.com trusty-security InRelease\nHit http://security.ubuntu.com trusty-security/main amd64 Packages\nHit http://security.ubuntu.com trusty-security/restricted amd64 Packages\nIgn http://archive.ubuntu.com trusty InRelease\nHit http://security.ubuntu.com trusty-security/universe amd64 Packages\nHit http://security.ubuntu.com trusty-security/multiverse amd64 Packages\nHit http://security.ubuntu.com trusty-security/main Translation-en\nGet:1 http://archive.ubuntu.com trusty-updates InRelease [65.9 kB]\nHit http://security.ubuntu.com trusty-security/multiverse Translation-en\nHit http://security.ubuntu.com trusty-security/restricted Translation-en\nHit http://security.ubuntu.com trusty-security/universe Translation-en\nHit http://archive.ubuntu.com trusty Release.gpg\nGet:2 http://archive.ubuntu.com trusty-updates/main amd64 Packages [799 kB]\nGet:3 http://archive.ubuntu.com trusty-updates/restricted amd64 Packages [15.9 kB]\nGet:4 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [364 kB]\nGet:5 http://archive.ubuntu.com trusty-updates/multiverse amd64 Packages [13.2 kB]\nHit http://archive.ubuntu.com trusty-updates/main Translation-en\nHit http://archive.ubuntu.com trusty-updates/multiverse Translation-en\nHit http://archive.ubuntu.com trusty-updates/restricted Translation-en\nHit http://archive.ubuntu.com trusty-updates/universe Translation-en\nHit http://archive.ubuntu.com trusty Release\nHit http://archive.ubuntu.com trusty/main amd64 Packages\nHit http://archive.ubuntu.com trusty/restricted amd64 Packages\nHit http://archive.ubuntu.com trusty/universe amd64 Packages\nHit http://archive.ubuntu.com trusty/multiverse amd64 Packages\nHit http://archive.ubuntu.com trusty/main Translation-en\nHit http://archive.ubuntu.com trusty/multiverse Translation-en\nHit http://archive.ubuntu.com trusty/restricted Translation-en\nHit http://archive.ubuntu.com trusty/universe Translation-en\nIgn http://archive.ubuntu.com trusty/main Translation-en_US\nIgn http://archive.ubuntu.com trusty/multiverse Translation-en_US\nIgn http://archive.ubuntu.com trusty/restricted Translation-en_US\nIgn http://archive.ubuntu.com trusty/universe Translation-en_US\nFetched 1,258 kB in 6s (201 kB/s)\nReading package lists...\nReading package lists...\nBuilding dependency tree...\nReading state information...\nThe following extra packages will be installed:\n python2.7-minimal\nSuggested packages:\n python2.7-doc binutils binfmt-support\nThe following NEW packages will be installed:\n python2.7 python2.7-minimal\n0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.\nNeed to get 1,381 kB of archives.\nAfter this operation, 3,835 kB of additional disk space will be used.\nGet:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python2.7-minimal amd64 2.7.6-8ubuntu0.2 [1,185 kB]\nGet:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python2.7 amd64 2.7.6-8ubuntu0.2 [196 kB]\nFetched 1,381 kB in 1s (1,120 kB/s)\nSelecting previously unselected package python2.7-minimal.\n(Reading database ... 14718 files and directories currently installed.)\nPreparing to unpack .../python2.7-minimal_2.7.6-8ubuntu0.2_amd64.deb ...\nUnpacking python2.7-minimal (2.7.6-8ubuntu0.2) ...\nSelecting previously unselected package python2.7.\nPreparing to unpack .../python2.7_2.7.6-8ubuntu0.2_amd64.deb ...\nUnpacking python2.7 (2.7.6-8ubuntu0.2) ...\nProcessing triggers for mime-support (3.54ubuntu1.1) ...\nSetting up python2.7-minimal (2.7.6-8ubuntu0.2) ...\nSetting up python2.7 (2.7.6-8ubuntu0.2) ...", "stdout_lines": ["Hit http://security.ubuntu.com trusty-security InRelease", "Hit http://security.ubuntu.com trusty-security/main amd64 Packages", "Hit http://security.ubuntu.com trusty-security/restricted amd64 Packages", "Ign http://archive.ubuntu.com trusty InRelease", "Hit http://security.ubuntu.com trusty-security/universe amd64 Packages", "Hit http://security.ubuntu.com trusty-security/multiverse amd64 Packages", "Hit http://security.ubuntu.com trusty-security/main Translation-en", "Get:1 http://archive.ubuntu.com trusty-updates InRelease [65.9 kB]", "Hit http://security.ubuntu.com trusty-security/multiverse Translation-en", "Hit http://security.ubuntu.com trusty-security/restricted Translation-en", "Hit http://security.ubuntu.com trusty-security/universe Translation-en", "Hit http://archive.ubuntu.com trusty Release.gpg", "Get:2 http://archive.ubuntu.com trusty-updates/main amd64 Packages [799 kB]", "Get:3 http://archive.ubuntu.com trusty-updates/restricted amd64 Packages [15.9 kB]", "Get:4 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [364 kB]", "Get:5 http://archive.ubuntu.com trusty-updates/multiverse amd64 Packages [13.2 kB]", "Hit http://archive.ubuntu.com trusty-updates/main Translation-en", "Hit http://archive.ubuntu.com trusty-updates/multiverse Translation-en", "Hit http://archive.ubuntu.com trusty-updates/restricted Translation-en", "Hit http://archive.ubuntu.com trusty-updates/universe Translation-en", "Hit http://archive.ubuntu.com trusty Release", "Hit http://archive.ubuntu.com trusty/main amd64 Packages", "Hit http://archive.ubuntu.com trusty/restricted amd64 Packages", "Hit http://archive.ubuntu.com trusty/universe amd64 Packages", "Hit http://archive.ubuntu.com trusty/multiverse amd64 Packages", "Hit http://archive.ubuntu.com trusty/main Translation-en", "Hit http://archive.ubuntu.com trusty/multiverse Translation-en", "Hit http://archive.ubuntu.com trusty/restricted Translation-en", "Hit http://archive.ubuntu.com trusty/universe Translation-en", "Ign http://archive.ubuntu.com trusty/main Translation-en_US", "Ign http://archive.ubuntu.com trusty/multiverse Translation-en_US", "Ign http://archive.ubuntu.com trusty/restricted Translation-en_US", "Ign http://archive.ubuntu.com trusty/universe Translation-en_US", "Fetched 1,258 kB in 6s (201 kB/s)", "Reading package lists...", "Reading package lists...", "Building dependency tree...", "Reading state information...", "The following extra packages will be installed:", " python2.7-minimal", "Suggested packages:", " python2.7-doc binutils binfmt-support", "The following NEW packages will be installed:", " python2.7 python2.7-minimal", "0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.", "Need to get 1,381 kB of archives.", "After this operation, 3,835 kB of additional disk space will be used.", "Get:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python2.7-minimal amd64 2.7.6-8ubuntu0.2 [1,185 kB]", "Get:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python2.7 amd64 2.7.6-8ubuntu0.2 [196 kB]", "Fetched 1,381 kB in 1s (1,120 kB/s)", "Selecting previously unselected package python2.7-minimal.", "(Reading database ... 14718 files and directories currently installed.)", "Preparing to unpack .../python2.7-minimal_2.7.6-8ubuntu0.2_amd64.deb ...", "Unpacking python2.7-minimal (2.7.6-8ubuntu0.2) ...", "Selecting previously unselected package python2.7.", "Preparing to unpack .../python2.7_2.7.6-8ubuntu0.2_amd64.deb ...", "Unpacking python2.7 (2.7.6-8ubuntu0.2) ...", "Processing triggers for mime-support (3.54ubuntu1.1) ...", "Setting up python2.7-minimal (2.7.6-8ubuntu0.2) ...", "Setting up python2.7 (2.7.6-8ubuntu0.2) ..."], "warnings": []}
2016-07-17 14:23:48,471 p=14261 u=root | changed: [container1 -> localhost] => {"changed": true, "cmd": ["chroot", "/var/lib/lxc/container1/rootfs", "/usr/local/bin/cache-prep-commands.sh"], "delta": "0:00:11.883148", "end": "2016-07-17 14:23:48.453045", "invocation": {"module_args": {"_raw_params": "chroot /var/lib/lxc/container1/rootfs /usr/local/bin/cache-prep-commands.sh", "_uses_shell": false, "chdir": null, "creates": null, "executable": null, "removes": null, "warn": true}, "module_name": "command"}, "rc": 0, "start": "2016-07-17 14:23:36.569897", "stderr": "+ export DEBIAN_FRONTEND=noninteractive\n+ DEBIAN_FRONTEND=noninteractive\n+ apt-get update\n+ apt-get install -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold --force-yes python2.7\n+ rm -f /usr/bin/python\n+ ln -s /usr/bin/python2.7 /usr/bin/python\n+ userdel --force --remove ubuntu\nuserdel: ubuntu mail spool (/var/mail/ubuntu) not found\n+ apt-get clean", "stdout": "Hit http://security.ubuntu.com trusty-security InRelease\nIgn http://archive.ubuntu.com trusty InRelease\nGet:1 http://archive.ubuntu.com trusty-updates InRelease [65.9 kB]\nHit http://security.ubuntu.com trusty-security/main amd64 Packages\nHit http://security.ubuntu.com trusty-security/restricted amd64 Packages\nHit http://security.ubuntu.com trusty-security/universe amd64 Packages\nHit http://security.ubuntu.com trusty-security/multiverse amd64 Packages\nHit http://archive.ubuntu.com trusty Release.gpg\nHit http://security.ubuntu.com trusty-security/main Translation-en\nGet:2 http://archive.ubuntu.com trusty-updates/main amd64 Packages [799 kB]\nHit http://security.ubuntu.com trusty-security/multiverse Translation-en\nHit http://security.ubuntu.com trusty-security/restricted Translation-en\nHit http://security.ubuntu.com trusty-security/universe Translation-en\nGet:3 http://archive.ubuntu.com trusty-updates/restricted amd64 Packages [15.9 kB]\nGet:4 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [364 kB]\nGet:5 http://archive.ubuntu.com trusty-updates/multiverse amd64 Packages [13.2 kB]\nHit http://archive.ubuntu.com trusty-updates/main Translation-en\nHit http://archive.ubuntu.com trusty-updates/multiverse Translation-en\nHit http://archive.ubuntu.com trusty-updates/restricted Translation-en\nHit http://archive.ubuntu.com trusty-updates/universe Translation-en\nHit http://archive.ubuntu.com trusty Release\nHit http://archive.ubuntu.com trusty/main amd64 Packages\nHit http://archive.ubuntu.com trusty/restricted amd64 Packages\nHit http://archive.ubuntu.com trusty/universe amd64 Packages\nHit http://archive.ubuntu.com trusty/multiverse amd64 Packages\nHit http://archive.ubuntu.com trusty/main Translation-en\nHit http://archive.ubuntu.com trusty/multiverse Translation-en\nHit http://archive.ubuntu.com trusty/restricted Translation-en\nHit http://archive.ubuntu.com trusty/universe Translation-en\nIgn http://archive.ubuntu.com trusty/main Translation-en_US\nIgn http://archive.ubuntu.com trusty/multiverse Translation-en_US\nIgn http://archive.ubuntu.com trusty/restricted Translation-en_US\nIgn http://archive.ubuntu.com trusty/universe Translation-en_US\nFetched 1,258 kB in 6s (199 kB/s)\nReading package lists...\nReading package lists...\nBuilding dependency tree...\nReading state information...\nThe following extra packages will be installed:\n python2.7-minimal\nSuggested packages:\n python2.7-doc binutils binfmt-support\nThe following NEW packages will be installed:\n python2.7 python2.7-minimal\n0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.\nNeed to get 1,381 kB of archives.\nAfter this operation, 3,835 kB of additional disk space will be used.\nGet:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python2.7-minimal amd64 2.7.6-8ubuntu0.2 [1,185 kB]\nGet:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python2.7 amd64 2.7.6-8ubuntu0.2 [196 kB]\nFetched 1,381 kB in 1s (919 kB/s)\nSelecting previously unselected package python2.7-minimal.\n(Reading database ... 14718 files and directories currently installed.)\nPreparing to unpack .../python2.7-minimal_2.7.6-8ubuntu0.2_amd64.deb ...\nUnpacking python2.7-minimal (2.7.6-8ubuntu0.2) ...\nSelecting previously unselected package python2.7.\nPreparing to unpack .../python2.7_2.7.6-8ubuntu0.2_amd64.deb ...\nUnpacking python2.7 (2.7.6-8ubuntu0.2) ...\nProcessing triggers for mime-support (3.54ubuntu1.1) ...\nSetting up python2.7-minimal (2.7.6-8ubuntu0.2) ...\nSetting up python2.7 (2.7.6-8ubuntu0.2) ...", "stdout_lines": ["Hit http://security.ubuntu.com trusty-security InRelease", "Ign http://archive.ubuntu.com trusty InRelease", "Get:1 http://archive.ubuntu.com trusty-updates InRelease [65.9 kB]", "Hit http://security.ubuntu.com trusty-security/main amd64 Packages", "Hit http://security.ubuntu.com trusty-security/restricted amd64 Packages", "Hit http://security.ubuntu.com trusty-security/universe amd64 Packages", "Hit http://security.ubuntu.com trusty-security/multiverse amd64 Packages", "Hit http://archive.ubuntu.com trusty Release.gpg", "Hit http://security.ubuntu.com trusty-security/main Translation-en", "Get:2 http://archive.ubuntu.com trusty-updates/main amd64 Packages [799 kB]", "Hit http://security.ubuntu.com trusty-security/multiverse Translation-en", "Hit http://security.ubuntu.com trusty-security/restricted Translation-en", "Hit http://security.ubuntu.com trusty-security/universe Translation-en", "Get:3 http://archive.ubuntu.com trusty-updates/restricted amd64 Packages [15.9 kB]", "Get:4 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [364 kB]", "Get:5 http://archive.ubuntu.com trusty-updates/multiverse amd64 Packages [13.2 kB]", "Hit http://archive.ubuntu.com trusty-updates/main Translation-en", "Hit http://archive.ubuntu.com trusty-updates/multiverse Translation-en", "Hit http://archive.ubuntu.com trusty-updates/restricted Translation-en", "Hit http://archive.ubuntu.com trusty-updates/universe Translation-en", "Hit http://archive.ubuntu.com trusty Release", "Hit http://archive.ubuntu.com trusty/main amd64 Packages", "Hit http://archive.ubuntu.com trusty/restricted amd64 Packages", "Hit http://archive.ubuntu.com trusty/universe amd64 Packages", "Hit http://archive.ubuntu.com trusty/multiverse amd64 Packages", "Hit http://archive.ubuntu.com trusty/main Translation-en", "Hit http://archive.ubuntu.com trusty/multiverse Translation-en", "Hit http://archive.ubuntu.com trusty/restricted Translation-en", "Hit http://archive.ubuntu.com trusty/universe Translation-en", "Ign http://archive.ubuntu.com trusty/main Translation-en_US", "Ign http://archive.ubuntu.com trusty/multiverse Translation-en_US", "Ign http://archive.ubuntu.com trusty/restricted Translation-en_US", "Ign http://archive.ubuntu.com trusty/universe Translation-en_US", "Fetched 1,258 kB in 6s (199 kB/s)", "Reading package lists...", "Reading package lists...", "Building dependency tree...", "Reading state information...", "The following extra packages will be installed:", " python2.7-minimal", "Suggested packages:", " python2.7-doc binutils binfmt-support", "The following NEW packages will be installed:", " python2.7 python2.7-minimal", "0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.", "Need to get 1,381 kB of archives.", "After this operation, 3,835 kB of additional disk space will be used.", "Get:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python2.7-minimal amd64 2.7.6-8ubuntu0.2 [1,185 kB]", "Get:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python2.7 amd64 2.7.6-8ubuntu0.2 [196 kB]", "Fetched 1,381 kB in 1s (919 kB/s)", "Selecting previously unselected package python2.7-minimal.", "(Reading database ... 14718 files and directories currently installed.)", "Preparing to unpack .../python2.7-minimal_2.7.6-8ubuntu0.2_amd64.deb ...", "Unpacking python2.7-minimal (2.7.6-8ubuntu0.2) ...", "Selecting previously unselected package python2.7.", "Preparing to unpack .../python2.7_2.7.6-8ubuntu0.2_amd64.deb ...", "Unpacking python2.7 (2.7.6-8ubuntu0.2) ...", "Processing triggers for mime-support (3.54ubuntu1.1) ...", "Setting up python2.7-minimal (2.7.6-8ubuntu0.2) ...", "Setting up python2.7 (2.7.6-8ubuntu0.2) ..."], "warnings": []}
2016-07-17 14:23:50,280 p=14261 u=root | changed: [container4 -> 23.253.244.110] => {"changed": true, "cmd": ["chroot", "/var/lib/lxc/container4/rootfs", "/usr/local/bin/cache-prep-commands.sh"], "delta": "0:00:13.629732", "end": "2016-07-17 14:23:50.367406", "invocation": {"module_args": {"_raw_params": "chroot /var/lib/lxc/container4/rootfs /usr/local/bin/cache-prep-commands.sh", "_uses_shell": false, "chdir": null, "creates": null, "executable": null, "removes": null, "warn": true}, "module_name": "command"}, "rc": 0, "start": "2016-07-17 14:23:36.737674", "stderr": "+ export DEBIAN_FRONTEND=noninteractive\n+ DEBIAN_FRONTEND=noninteractive\n+ apt-get update\n+ apt-get install -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold --force-yes python2.7\n+ rm -f /usr/bin/python\n+ ln -s /usr/bin/python2.7 /usr/bin/python\n+ userdel --force --remove ubuntu\nuserdel: ubuntu mail spool (/var/mail/ubuntu) not found\n+ apt-get clean", "stdout": "Hit http://security.ubuntu.com trusty-security InRelease\nHit http://security.ubuntu.com trusty-security/main amd64 Packages\nHit http://security.ubuntu.com trusty-security/restricted amd64 Packages\nIgn http://archive.ubuntu.com trusty InRelease\nHit http://security.ubuntu.com trusty-security/universe amd64 Packages\nHit http://security.ubuntu.com trusty-security/multiverse amd64 Packages\nGet:1 http://archive.ubuntu.com trusty-updates InRelease [65.9 kB]\nHit http://security.ubuntu.com trusty-security/main Translation-en\nHit http://security.ubuntu.com trusty-security/multiverse Translation-en\nHit http://security.ubuntu.com trusty-security/restricted Translation-en\nHit http://security.ubuntu.com trusty-security/universe Translation-en\nHit http://archive.ubuntu.com trusty Release.gpg\nGet:2 http://archive.ubuntu.com trusty-updates/main amd64 Packages [799 kB]\nGet:3 http://archive.ubuntu.com trusty-updates/restricted amd64 Packages [15.9 kB]\nGet:4 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [364 kB]\nGet:5 http://archive.ubuntu.com trusty-updates/multiverse amd64 Packages [13.2 kB]\nHit http://archive.ubuntu.com trusty-updates/main Translation-en\nHit http://archive.ubuntu.com trusty-updates/multiverse Translation-en\nHit http://archive.ubuntu.com trusty-updates/restricted Translation-en\nHit http://archive.ubuntu.com trusty-updates/universe Translation-en\nHit http://archive.ubuntu.com trusty Release\nHit http://archive.ubuntu.com trusty/main amd64 Packages\nHit http://archive.ubuntu.com trusty/restricted amd64 Packages\nHit http://archive.ubuntu.com trusty/universe amd64 Packages\nHit http://archive.ubuntu.com trusty/multiverse amd64 Packages\nHit http://archive.ubuntu.com trusty/main Translation-en\nHit http://archive.ubuntu.com trusty/multiverse Translation-en\nHit http://archive.ubuntu.com trusty/restricted Translation-en\nHit http://archive.ubuntu.com trusty/universe Translation-en\nIgn http://archive.ubuntu.com trusty/main Translation-en_US\nIgn http://archive.ubuntu.com trusty/multiverse Translation-en_US\nIgn http://archive.ubuntu.com trusty/restricted Translation-en_US\nIgn http://archive.ubuntu.com trusty/universe Translation-en_US\nFetched 1,258 kB in 8s (156 kB/s)\nReading package lists...\nReading package lists...\nBuilding dependency tree...\nReading state information...\nThe following extra packages will be installed:\n python2.7-minimal\nSuggested packages:\n python2.7-doc binutils binfmt-support\nThe following NEW packages will be installed:\n python2.7 python2.7-minimal\n0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.\nNeed to get 1,381 kB of archives.\nAfter this operation, 3,835 kB of additional disk space will be used.\nGet:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python2.7-minimal amd64 2.7.6-8ubuntu0.2 [1,185 kB]\nGet:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python2.7 amd64 2.7.6-8ubuntu0.2 [196 kB]\nFetched 1,381 kB in 1s (1,068 kB/s)\nSelecting previously unselected package python2.7-minimal.\n(Reading database ... 14718 files and directories currently installed.)\nPreparing to unpack .../python2.7-minimal_2.7.6-8ubuntu0.2_amd64.deb ...\nUnpacking python2.7-minimal (2.7.6-8ubuntu0.2) ...\nSelecting previously unselected package python2.7.\nPreparing to unpack .../python2.7_2.7.6-8ubuntu0.2_amd64.deb ...\nUnpacking python2.7 (2.7.6-8ubuntu0.2) ...\nProcessing triggers for mime-support (3.54ubuntu1.1) ...\nSetting up python2.7-minimal (2.7.6-8ubuntu0.2) ...\nSetting up python2.7 (2.7.6-8ubuntu0.2) ...", "stdout_lines": ["Hit http://security.ubuntu.com trusty-security InRelease", "Hit http://security.ubuntu.com trusty-security/main amd64 Packages", "Hit http://security.ubuntu.com trusty-security/restricted amd64 Packages", "Ign http://archive.ubuntu.com trusty InRelease", "Hit http://security.ubuntu.com trusty-security/universe amd64 Packages", "Hit http://security.ubuntu.com trusty-security/multiverse amd64 Packages", "Get:1 http://archive.ubuntu.com trusty-updates InRelease [65.9 kB]", "Hit http://security.ubuntu.com trusty-security/main Translation-en", "Hit http://security.ubuntu.com trusty-security/multiverse Translation-en", "Hit http://security.ubuntu.com trusty-security/restricted Translation-en", "Hit http://security.ubuntu.com trusty-security/universe Translation-en", "Hit http://archive.ubuntu.com trusty Release.gpg", "Get:2 http://archive.ubuntu.com trusty-updates/main amd64 Packages [799 kB]", "Get:3 http://archive.ubuntu.com trusty-updates/restricted amd64 Packages [15.9 kB]", "Get:4 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [364 kB]", "Get:5 http://archive.ubuntu.com trusty-updates/multiverse amd64 Packages [13.2 kB]", "Hit http://archive.ubuntu.com trusty-updates/main Translation-en", "Hit http://archive.ubuntu.com trusty-updates/multiverse Translation-en", "Hit http://archive.ubuntu.com trusty-updates/restricted Translation-en", "Hit http://archive.ubuntu.com trusty-updates/universe Translation-en", "Hit http://archive.ubuntu.com trusty Release", "Hit http://archive.ubuntu.com trusty/main amd64 Packages", "Hit http://archive.ubuntu.com trusty/restricted amd64 Packages", "Hit http://archive.ubuntu.com trusty/universe amd64 Packages", "Hit http://archive.ubuntu.com trusty/multiverse amd64 Packages", "Hit http://archive.ubuntu.com trusty/main Translation-en", "Hit http://archive.ubuntu.com trusty/multiverse Translation-en", "Hit http://archive.ubuntu.com trusty/restricted Translation-en", "Hit http://archive.ubuntu.com trusty/universe Translation-en", "Ign http://archive.ubuntu.com trusty/main Translation-en_US", "Ign http://archive.ubuntu.com trusty/multiverse Translation-en_US", "Ign http://archive.ubuntu.com trusty/restricted Translation-en_US", "Ign http://archive.ubuntu.com trusty/universe Translation-en_US", "Fetched 1,258 kB in 8s (156 kB/s)", "Reading package lists...", "Reading package lists...", "Building dependency tree...", "Reading state information...", "The following extra packages will be installed:", " python2.7-minimal", "Suggested packages:", " python2.7-doc binutils binfmt-support", "The following NEW packages will be installed:", " python2.7 python2.7-minimal", "0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.", "Need to get 1,381 kB of archives.", "After this operation, 3,835 kB of additional disk space will be used.", "Get:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python2.7-minimal amd64 2.7.6-8ubuntu0.2 [1,185 kB]", "Get:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python2.7 amd64 2.7.6-8ubuntu0.2 [196 kB]", "Fetched 1,381 kB in 1s (1,068 kB/s)", "Selecting previously unselected package python2.7-minimal.", "(Reading database ... 14718 files and directories currently installed.)", "Preparing to unpack .../python2.7-minimal_2.7.6-8ubuntu0.2_amd64.deb ...", "Unpacking python2.7-minimal (2.7.6-8ubuntu0.2) ...", "Selecting previously unselected package python2.7.", "Preparing to unpack .../python2.7_2.7.6-8ubuntu0.2_amd64.deb ...", "Unpacking python2.7 (2.7.6-8ubuntu0.2) ...", "Processing triggers for mime-support (3.54ubuntu1.1) ...", "Setting up python2.7-minimal (2.7.6-8ubuntu0.2) ...", "Setting up python2.7 (2.7.6-8ubuntu0.2) ..."], "warnings": []}
2016-07-17 14:23:51,074 p=14261 u=root | changed: [container3 -> 23.253.244.110] => {"changed": true, "cmd": ["chroot", "/var/lib/lxc/container3/rootfs", "/usr/local/bin/cache-prep-commands.sh"], "delta": "0:00:14.433990", "end": "2016-07-17 14:23:51.162553", "invocation": {"module_args": {"_raw_params": "chroot /var/lib/lxc/container3/rootfs /usr/local/bin/cache-prep-commands.sh", "_uses_shell": false, "chdir": null, "creates": null, "executable": null, "removes": null, "warn": true}, "module_name": "command"}, "rc": 0, "start": "2016-07-17 14:23:36.728563", "stderr": "+ export DEBIAN_FRONTEND=noninteractive\n+ DEBIAN_FRONTEND=noninteractive\n+ apt-get update\n+ apt-get install -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold --force-yes python2.7\n+ rm -f /usr/bin/python\n+ ln -s /usr/bin/python2.7 /usr/bin/python\n+ userdel --force --remove ubuntu\nuserdel: ubuntu mail spool (/var/mail/ubuntu) not found\n+ apt-get clean", "stdout": "Hit http://security.ubuntu.com trusty-security InRelease\nIgn http://archive.ubuntu.com trusty InRelease\nHit http://security.ubuntu.com trusty-security/main amd64 Packages\nGet:1 http://archive.ubuntu.com trusty-updates InRelease [65.9 kB]\nHit http://security.ubuntu.com trusty-security/restricted amd64 Packages\nHit http://security.ubuntu.com trusty-security/universe amd64 Packages\nHit http://security.ubuntu.com trusty-security/multiverse amd64 Packages\nHit http://archive.ubuntu.com trusty Release.gpg\nHit http://security.ubuntu.com trusty-security/main Translation-en\nGet:2 http://archive.ubuntu.com trusty-updates/main amd64 Packages [799 kB]\nHit http://security.ubuntu.com trusty-security/multiverse Translation-en\nHit http://security.ubuntu.com trusty-security/restricted Translation-en\nHit http://security.ubuntu.com trusty-security/universe Translation-en\nGet:3 http://archive.ubuntu.com trusty-updates/restricted amd64 Packages [15.9 kB]\nGet:4 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [364 kB]\nGet:5 http://archive.ubuntu.com trusty-updates/multiverse amd64 Packages [13.2 kB]\nHit http://archive.ubuntu.com trusty-updates/main Translation-en\nHit http://archive.ubuntu.com trusty-updates/multiverse Translation-en\nHit http://archive.ubuntu.com trusty-updates/restricted Translation-en\nHit http://archive.ubuntu.com trusty-updates/universe Translation-en\nHit http://archive.ubuntu.com trusty Release\nHit http://archive.ubuntu.com trusty/main amd64 Packages\nHit http://archive.ubuntu.com trusty/restricted amd64 Packages\nHit http://archive.ubuntu.com trusty/universe amd64 Packages\nHit http://archive.ubuntu.com trusty/multiverse amd64 Packages\nHit http://archive.ubuntu.com trusty/main Translation-en\nHit http://archive.ubuntu.com trusty/multiverse Translation-en\nHit http://archive.ubuntu.com trusty/restricted Translation-en\nHit http://archive.ubuntu.com trusty/universe Translation-en\nIgn http://archive.ubuntu.com trusty/main Translation-en_US\nIgn http://archive.ubuntu.com trusty/multiverse Translation-en_US\nIgn http://archive.ubuntu.com trusty/restricted Translation-en_US\nIgn http://archive.ubuntu.com trusty/universe Translation-en_US\nFetched 1,258 kB in 8s (143 kB/s)\nReading package lists...\nReading package lists...\nBuilding dependency tree...\nReading state information...\nThe following extra packages will be installed:\n python2.7-minimal\nSuggested packages:\n python2.7-doc binutils binfmt-support\nThe following NEW packages will be installed:\n python2.7 python2.7-minimal\n0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.\nNeed to get 1,381 kB of archives.\nAfter this operation, 3,835 kB of additional disk space will be used.\nGet:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python2.7-minimal amd64 2.7.6-8ubuntu0.2 [1,185 kB]\nGet:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python2.7 amd64 2.7.6-8ubuntu0.2 [196 kB]\nFetched 1,381 kB in 1s (944 kB/s)\nSelecting previously unselected package python2.7-minimal.\n(Reading database ... 14718 files and directories currently installed.)\nPreparing to unpack .../python2.7-minimal_2.7.6-8ubuntu0.2_amd64.deb ...\nUnpacking python2.7-minimal (2.7.6-8ubuntu0.2) ...\nSelecting previously unselected package python2.7.\nPreparing to unpack .../python2.7_2.7.6-8ubuntu0.2_amd64.deb ...\nUnpacking python2.7 (2.7.6-8ubuntu0.2) ...\nProcessing triggers for mime-support (3.54ubuntu1.1) ...\nSetting up python2.7-minimal (2.7.6-8ubuntu0.2) ...\nSetting up python2.7 (2.7.6-8ubuntu0.2) ...", "stdout_lines": ["Hit http://security.ubuntu.com trusty-security InRelease", "Ign http://archive.ubuntu.com trusty InRelease", "Hit http://security.ubuntu.com trusty-security/main amd64 Packages", "Get:1 http://archive.ubuntu.com trusty-updates InRelease [65.9 kB]", "Hit http://security.ubuntu.com trusty-security/restricted amd64 Packages", "Hit http://security.ubuntu.com trusty-security/universe amd64 Packages", "Hit http://security.ubuntu.com trusty-security/multiverse amd64 Packages", "Hit http://archive.ubuntu.com trusty Release.gpg", "Hit http://security.ubuntu.com trusty-security/main Translation-en", "Get:2 http://archive.ubuntu.com trusty-updates/main amd64 Packages [799 kB]", "Hit http://security.ubuntu.com trusty-security/multiverse Translation-en", "Hit http://security.ubuntu.com trusty-security/restricted Translation-en", "Hit http://security.ubuntu.com trusty-security/universe Translation-en", "Get:3 http://archive.ubuntu.com trusty-updates/restricted amd64 Packages [15.9 kB]", "Get:4 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [364 kB]", "Get:5 http://archive.ubuntu.com trusty-updates/multiverse amd64 Packages [13.2 kB]", "Hit http://archive.ubuntu.com trusty-updates/main Translation-en", "Hit http://archive.ubuntu.com trusty-updates/multiverse Translation-en", "Hit http://archive.ubuntu.com trusty-updates/restricted Translation-en", "Hit http://archive.ubuntu.com trusty-updates/universe Translation-en", "Hit http://archive.ubuntu.com trusty Release", "Hit http://archive.ubuntu.com trusty/main amd64 Packages", "Hit http://archive.ubuntu.com trusty/restricted amd64 Packages", "Hit http://archive.ubuntu.com trusty/universe amd64 Packages", "Hit http://archive.ubuntu.com trusty/multiverse amd64 Packages", "Hit http://archive.ubuntu.com trusty/main Translation-en", "Hit http://archive.ubuntu.com trusty/multiverse Translation-en", "Hit http://archive.ubuntu.com trusty/restricted Translation-en", "Hit http://archive.ubuntu.com trusty/universe Translation-en", "Ign http://archive.ubuntu.com trusty/main Translation-en_US", "Ign http://archive.ubuntu.com trusty/multiverse Translation-en_US", "Ign http://archive.ubuntu.com trusty/restricted Translation-en_US", "Ign http://archive.ubuntu.com trusty/universe Translation-en_US", "Fetched 1,258 kB in 8s (143 kB/s)", "Reading package lists...", "Reading package lists...", "Building dependency tree...", "Reading state information...", "The following extra packages will be installed:", " python2.7-minimal", "Suggested packages:", " python2.7-doc binutils binfmt-support", "The following NEW packages will be installed:", " python2.7 python2.7-minimal", "0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.", "Need to get 1,381 kB of archives.", "After this operation, 3,835 kB of additional disk space will be used.", "Get:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python2.7-minimal amd64 2.7.6-8ubuntu0.2 [1,185 kB]", "Get:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python2.7 amd64 2.7.6-8ubuntu0.2 [196 kB]", "Fetched 1,381 kB in 1s (944 kB/s)", "Selecting previously unselected package python2.7-minimal.", "(Reading database ... 14718 files and directories currently installed.)", "Preparing to unpack .../python2.7-minimal_2.7.6-8ubuntu0.2_amd64.deb ...", "Unpacking python2.7-minimal (2.7.6-8ubuntu0.2) ...", "Selecting previously unselected package python2.7.", "Preparing to unpack .../python2.7_2.7.6-8ubuntu0.2_amd64.deb ...", "Unpacking python2.7 (2.7.6-8ubuntu0.2) ...", "Processing triggers for mime-support (3.54ubuntu1.1) ...", "Setting up python2.7-minimal (2.7.6-8ubuntu0.2) ...", "Setting up python2.7 (2.7.6-8ubuntu0.2) ..."], "warnings": []}
2016-07-17 14:23:51,082 p=14261 u=root | PLAY [Do things in all containers] *********************************************
2016-07-17 14:23:51,089 p=14261 u=root | TASK [setup] *******************************************************************
2016-07-17 14:23:51,109 p=14261 u=root | XXX exec_command: /bin/sh -c '( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1468765431.11-231604211507864 `" && echo ansible-tmp-1468765431.11-231604211507864="` echo $HOME/.ansible/tmp/ansible-tmp-1468765431.11-231604211507864 `" ) && sleep 0'
2016-07-17 14:23:51,110 p=14261 u=root | XXX connect
2016-07-17 14:23:51,112 p=14261 u=root | XXX exec_command: /bin/sh -c '( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1468765431.11-201602715377188 `" && echo ansible-tmp-1468765431.11-201602715377188="` echo $HOME/.ansible/tmp/ansible-tmp-1468765431.11-201602715377188 `" ) && sleep 0'
2016-07-17 14:23:51,112 p=14261 u=root | XXX connect
2016-07-17 14:23:51,139 p=14261 u=root | XXX put_file /tmp/tmpIK2c1e /root/.ansible/tmp/ansible-tmp-1468765431.11-201602715377188/setup
2016-07-17 14:23:51,139 p=14261 u=root | XXX connect
2016-07-17 14:23:51,139 p=14261 u=root | XXX put_file /tmp/tmpFM4wlW /root/.ansible/tmp/ansible-tmp-1468765431.11-231604211507864/setup
2016-07-17 14:23:51,139 p=14261 u=root | XXX connect
2016-07-17 14:23:51,164 p=14261 u=root | XXX exec_command: /bin/sh -c 'LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /root/.ansible/tmp/ansible-tmp-1468765431.11-201602715377188/setup; rm -rf "/root/.ansible/tmp/ansible-tmp-1468765431.11-201602715377188/" > /dev/null 2>&1 && sleep 0'
2016-07-17 14:23:51,164 p=14261 u=root | XXX connect
2016-07-17 14:23:51,165 p=14261 u=root | XXX exec_command: /bin/sh -c 'LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /root/.ansible/tmp/ansible-tmp-1468765431.11-231604211507864/setup; rm -rf "/root/.ansible/tmp/ansible-tmp-1468765431.11-231604211507864/" > /dev/null 2>&1 && sleep 0'
2016-07-17 14:23:51,165 p=14261 u=root | XXX connect
2016-07-17 14:23:51,579 p=14261 u=root | ok: [container1]
2016-07-17 14:23:51,608 p=14261 u=root | XXX close
2016-07-17 14:23:51,612 p=14261 u=root | ok: [container2]
2016-07-17 14:23:51,616 p=14261 u=root | ok: [container4]
2016-07-17 14:23:51,635 p=14261 u=root | XXX close
2016-07-17 14:23:51,643 p=14261 u=root | ok: [container3]
2016-07-17 14:23:51,646 p=14261 u=root | TASK [Install packages] ********************************************************
2016-07-17 14:23:51,646 p=14261 u=root | task path: /root/test-lxc-connection-plugin.yml:66
2016-07-17 14:23:51,674 p=14261 u=root | XXX exec_command: /bin/sh -c '( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1468765431.67-254966819642675 `" && echo ansible-tmp-1468765431.67-254966819642675="` echo $HOME/.ansible/tmp/ansible-tmp-1468765431.67-254966819642675 `" ) && sleep 0'
2016-07-17 14:23:51,674 p=14261 u=root | XXX connect
2016-07-17 14:23:51,680 p=14261 u=root | XXX exec_command: /bin/sh -c '( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1468765431.68-273381434069369 `" && echo ansible-tmp-1468765431.68-273381434069369="` echo $HOME/.ansible/tmp/ansible-tmp-1468765431.68-273381434069369 `" ) && sleep 0'
2016-07-17 14:23:51,681 p=14261 u=root | XXX connect
2016-07-17 14:23:51,702 p=14261 u=root | XXX put_file /tmp/tmpxJn98f /root/.ansible/tmp/ansible-tmp-1468765431.67-254966819642675/apt
2016-07-17 14:23:51,702 p=14261 u=root | XXX connect
2016-07-17 14:23:51,705 p=14261 u=root | XXX put_file /tmp/tmpuxYxfH /root/.ansible/tmp/ansible-tmp-1468765431.68-273381434069369/apt
2016-07-17 14:23:51,705 p=14261 u=root | XXX connect
2016-07-17 14:23:51,725 p=14261 u=root | XXX exec_command: /bin/sh -c 'LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /root/.ansible/tmp/ansible-tmp-1468765431.67-254966819642675/apt; rm -rf "/root/.ansible/tmp/ansible-tmp-1468765431.67-254966819642675/" > /dev/null 2>&1 && sleep 0'
2016-07-17 14:23:51,725 p=14261 u=root | XXX connect
2016-07-17 14:23:51,727 p=14261 u=root | XXX exec_command: /bin/sh -c 'LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /root/.ansible/tmp/ansible-tmp-1468765431.68-273381434069369/apt; rm -rf "/root/.ansible/tmp/ansible-tmp-1468765431.68-273381434069369/" > /dev/null 2>&1 && sleep 0'
2016-07-17 14:23:51,728 p=14261 u=root | XXX connect
2016-07-17 14:24:06,402 p=14261 u=root | changed: [container1] => (item=[u'ca-certificates', u'iptables']) => {"cache_update_time": 0, "cache_updated": false, "changed": true, "diff": {}, "invocation": {"module_args": {"allow_unauthenticated": false, "autoremove": false, "cache_valid_time": null, "deb": null, "default_release": null, "dpkg_options": "force-confdef,force-confold", "force": false, "install_recommends": null, "name": ["ca-certificates", "iptables"], "only_upgrade": false, "package": ["ca-certificates", "iptables"], "purge": false, "state": "present", "update_cache": false, "upgrade": null}, "module_name": "apt"}, "item": ["ca-certificates", "iptables"], "stderr": "", "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following extra packages will be installed:\n libnfnetlink0 libxtables10 openssl\nThe following NEW packages will be installed:\n ca-certificates iptables libnfnetlink0 libxtables10 openssl\n0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.\nNeed to get 981 kB of archives.\nAfter this operation, 3170 kB of additional disk space will be used.\nGet:1 http://archive.ubuntu.com/ubuntu/ trusty/main libnfnetlink0 amd64 1.0.1-2 [15.0 kB]\nGet:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main openssl amd64 1.0.1f-1ubuntu2.19 [490 kB]\nGet:3 http://archive.ubuntu.com/ubuntu/ trusty-updates/main ca-certificates all 20160104ubuntu0.14.04.1 [190 kB]\nGet:4 http://archive.ubuntu.com/ubuntu/ trusty/main libxtables10 amd64 1.4.21-1ubuntu1 [25.9 kB]\nGet:5 http://archive.ubuntu.com/ubuntu/ trusty/main iptables amd64 1.4.21-1ubuntu1 [261 kB]\nPreconfiguring packages ...\nFetched 981 kB in 1s (785 kB/s)\nSelecting previously unselected package libnfnetlink0:amd64.\n(Reading database ... 15448 files and directories currently installed.)\nPreparing to unpack .../libnfnetlink0_1.0.1-2_amd64.deb ...\nUnpacking libnfnetlink0:amd64 (1.0.1-2) ...\nSelecting previously unselected package openssl.\nPreparing to unpack .../openssl_1.0.1f-1ubuntu2.19_amd64.deb ...\nUnpacking openssl (1.0.1f-1ubuntu2.19) ...\nSelecting previously unselected package ca-certificates.\nPreparing to unpack .../ca-certificates_20160104ubuntu0.14.04.1_all.deb ...\nUnpacking ca-certificates (20160104ubuntu0.14.04.1) ...\nSelecting previously unselected package libxtables10.\nPreparing to unpack .../libxtables10_1.4.21-1ubuntu1_amd64.deb ...\nUnpacking libxtables10 (1.4.21-1ubuntu1) ...\nSelecting previously unselected package iptables.\nPreparing to unpack .../iptables_1.4.21-1ubuntu1_amd64.deb ...\nUnpacking iptables (1.4.21-1ubuntu1) ...\nSetting up libnfnetlink0:amd64 (1.0.1-2) ...\nSetting up openssl (1.0.1f-1ubuntu2.19) ...\nSetting up ca-certificates (20160104ubuntu0.14.04.1) ...\nSetting up libxtables10 (1.4.21-1ubuntu1) ...\nSetting up iptables (1.4.21-1ubuntu1) ...\nProcessing triggers for libc-bin (2.19-0ubuntu6.9) ...\nProcessing triggers for ca-certificates (20160104ubuntu0.14.04.1) ...\nUpdating certificates in /etc/ssl/certs... 173 added, 0 removed; done.\nRunning hooks in /etc/ca-certificates/update.d....done.\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "The following extra packages will be installed:", " libnfnetlink0 libxtables10 openssl", "The following NEW packages will be installed:", " ca-certificates iptables libnfnetlink0 libxtables10 openssl", "0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.", "Need to get 981 kB of archives.", "After this operation, 3170 kB of additional disk space will be used.", "Get:1 http://archive.ubuntu.com/ubuntu/ trusty/main libnfnetlink0 amd64 1.0.1-2 [15.0 kB]", "Get:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main openssl amd64 1.0.1f-1ubuntu2.19 [490 kB]", "Get:3 http://archive.ubuntu.com/ubuntu/ trusty-updates/main ca-certificates all 20160104ubuntu0.14.04.1 [190 kB]", "Get:4 http://archive.ubuntu.com/ubuntu/ trusty/main libxtables10 amd64 1.4.21-1ubuntu1 [25.9 kB]", "Get:5 http://archive.ubuntu.com/ubuntu/ trusty/main iptables amd64 1.4.21-1ubuntu1 [261 kB]", "Preconfiguring packages ...", "Fetched 981 kB in 1s (785 kB/s)", "Selecting previously unselected package libnfnetlink0:amd64.", "(Reading database ... 15448 files and directories currently installed.)", "Preparing to unpack .../libnfnetlink0_1.0.1-2_amd64.deb ...", "Unpacking libnfnetlink0:amd64 (1.0.1-2) ...", "Selecting previously unselected package openssl.", "Preparing to unpack .../openssl_1.0.1f-1ubuntu2.19_amd64.deb ...", "Unpacking openssl (1.0.1f-1ubuntu2.19) ...", "Selecting previously unselected package ca-certificates.", "Preparing to unpack .../ca-certificates_20160104ubuntu0.14.04.1_all.deb ...", "Unpacking ca-certificates (20160104ubuntu0.14.04.1) ...", "Selecting previously unselected package libxtables10.", "Preparing to unpack .../libxtables10_1.4.21-1ubuntu1_amd64.deb ...", "Unpacking libxtables10 (1.4.21-1ubuntu1) ...", "Selecting previously unselected package iptables.", "Preparing to unpack .../iptables_1.4.21-1ubuntu1_amd64.deb ...", "Unpacking iptables (1.4.21-1ubuntu1) ...", "Setting up libnfnetlink0:amd64 (1.0.1-2) ...", "Setting up openssl (1.0.1f-1ubuntu2.19) ...", "Setting up ca-certificates (20160104ubuntu0.14.04.1) ...", "Setting up libxtables10 (1.4.21-1ubuntu1) ...", "Setting up iptables (1.4.21-1ubuntu1) ...", "Processing triggers for libc-bin (2.19-0ubuntu6.9) ...", "Processing triggers for ca-certificates (20160104ubuntu0.14.04.1) ...", "Updating certificates in /etc/ssl/certs... 173 added, 0 removed; done.", "Running hooks in /etc/ca-certificates/update.d....done."]}
2016-07-17 14:24:06,601 p=14261 u=root | changed: [container2] => (item=[u'ca-certificates', u'iptables']) => {"cache_update_time": 0, "cache_updated": false, "changed": true, "diff": {}, "invocation": {"module_args": {"allow_unauthenticated": false, "autoremove": false, "cache_valid_time": null, "deb": null, "default_release": null, "dpkg_options": "force-confdef,force-confold", "force": false, "install_recommends": null, "name": ["ca-certificates", "iptables"], "only_upgrade": false, "package": ["ca-certificates", "iptables"], "purge": false, "state": "present", "update_cache": false, "upgrade": null}, "module_name": "apt"}, "item": ["ca-certificates", "iptables"], "stderr": "", "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following extra packages will be installed:\n libnfnetlink0 libxtables10 openssl\nThe following NEW packages will be installed:\n ca-certificates iptables libnfnetlink0 libxtables10 openssl\n0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.\nNeed to get 981 kB of archives.\nAfter this operation, 3170 kB of additional disk space will be used.\nGet:1 http://archive.ubuntu.com/ubuntu/ trusty/main libnfnetlink0 amd64 1.0.1-2 [15.0 kB]\nGet:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main openssl amd64 1.0.1f-1ubuntu2.19 [490 kB]\nGet:3 http://archive.ubuntu.com/ubuntu/ trusty-updates/main ca-certificates all 20160104ubuntu0.14.04.1 [190 kB]\nGet:4 http://archive.ubuntu.com/ubuntu/ trusty/main libxtables10 amd64 1.4.21-1ubuntu1 [25.9 kB]\nGet:5 http://archive.ubuntu.com/ubuntu/ trusty/main iptables amd64 1.4.21-1ubuntu1 [261 kB]\nPreconfiguring packages ...\nFetched 981 kB in 1s (827 kB/s)\nSelecting previously unselected package libnfnetlink0:amd64.\n(Reading database ... 15448 files and directories currently installed.)\nPreparing to unpack .../libnfnetlink0_1.0.1-2_amd64.deb ...\nUnpacking libnfnetlink0:amd64 (1.0.1-2) ...\nSelecting previously unselected package openssl.\nPreparing to unpack .../openssl_1.0.1f-1ubuntu2.19_amd64.deb ...\nUnpacking openssl (1.0.1f-1ubuntu2.19) ...\nSelecting previously unselected package ca-certificates.\nPreparing to unpack .../ca-certificates_20160104ubuntu0.14.04.1_all.deb ...\nUnpacking ca-certificates (20160104ubuntu0.14.04.1) ...\nSelecting previously unselected package libxtables10.\nPreparing to unpack .../libxtables10_1.4.21-1ubuntu1_amd64.deb ...\nUnpacking libxtables10 (1.4.21-1ubuntu1) ...\nSelecting previously unselected package iptables.\nPreparing to unpack .../iptables_1.4.21-1ubuntu1_amd64.deb ...\nUnpacking iptables (1.4.21-1ubuntu1) ...\nSetting up libnfnetlink0:amd64 (1.0.1-2) ...\nSetting up openssl (1.0.1f-1ubuntu2.19) ...\nSetting up ca-certificates (20160104ubuntu0.14.04.1) ...\nSetting up libxtables10 (1.4.21-1ubuntu1) ...\nSetting up iptables (1.4.21-1ubuntu1) ...\nProcessing triggers for libc-bin (2.19-0ubuntu6.9) ...\nProcessing triggers for ca-certificates (20160104ubuntu0.14.04.1) ...\nUpdating certificates in /etc/ssl/certs... 173 added, 0 removed; done.\nRunning hooks in /etc/ca-certificates/update.d....done.\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "The following extra packages will be installed:", " libnfnetlink0 libxtables10 openssl", "The following NEW packages will be installed:", " ca-certificates iptables libnfnetlink0 libxtables10 openssl", "0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.", "Need to get 981 kB of archives.", "After this operation, 3170 kB of additional disk space will be used.", "Get:1 http://archive.ubuntu.com/ubuntu/ trusty/main libnfnetlink0 amd64 1.0.1-2 [15.0 kB]", "Get:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main openssl amd64 1.0.1f-1ubuntu2.19 [490 kB]", "Get:3 http://archive.ubuntu.com/ubuntu/ trusty-updates/main ca-certificates all 20160104ubuntu0.14.04.1 [190 kB]", "Get:4 http://archive.ubuntu.com/ubuntu/ trusty/main libxtables10 amd64 1.4.21-1ubuntu1 [25.9 kB]", "Get:5 http://archive.ubuntu.com/ubuntu/ trusty/main iptables amd64 1.4.21-1ubuntu1 [261 kB]", "Preconfiguring packages ...", "Fetched 981 kB in 1s (827 kB/s)", "Selecting previously unselected package libnfnetlink0:amd64.", "(Reading database ... 15448 files and directories currently installed.)", "Preparing to unpack .../libnfnetlink0_1.0.1-2_amd64.deb ...", "Unpacking libnfnetlink0:amd64 (1.0.1-2) ...", "Selecting previously unselected package openssl.", "Preparing to unpack .../openssl_1.0.1f-1ubuntu2.19_amd64.deb ...", "Unpacking openssl (1.0.1f-1ubuntu2.19) ...", "Selecting previously unselected package ca-certificates.", "Preparing to unpack .../ca-certificates_20160104ubuntu0.14.04.1_all.deb ...", "Unpacking ca-certificates (20160104ubuntu0.14.04.1) ...", "Selecting previously unselected package libxtables10.", "Preparing to unpack .../libxtables10_1.4.21-1ubuntu1_amd64.deb ...", "Unpacking libxtables10 (1.4.21-1ubuntu1) ...", "Selecting previously unselected package iptables.", "Preparing to unpack .../iptables_1.4.21-1ubuntu1_amd64.deb ...", "Unpacking iptables (1.4.21-1ubuntu1) ...", "Setting up libnfnetlink0:amd64 (1.0.1-2) ...", "Setting up openssl (1.0.1f-1ubuntu2.19) ...", "Setting up ca-certificates (20160104ubuntu0.14.04.1) ...", "Setting up libxtables10 (1.4.21-1ubuntu1) ...", "Setting up iptables (1.4.21-1ubuntu1) ...", "Processing triggers for libc-bin (2.19-0ubuntu6.9) ...", "Processing triggers for ca-certificates (20160104ubuntu0.14.04.1) ...", "Updating certificates in /etc/ssl/certs... 173 added, 0 removed; done.", "Running hooks in /etc/ca-certificates/update.d....done."]}
2016-07-17 14:24:06,820 p=14261 u=root | XXX close
2016-07-17 14:24:06,824 p=14261 u=root | changed: [container3] => (item=[u'ca-certificates', u'iptables']) => {"cache_update_time": 0, "cache_updated": false, "changed": true, "diff": {}, "invocation": {"module_args": {"allow_unauthenticated": false, "autoremove": false, "cache_valid_time": null, "deb": null, "default_release": null, "dpkg_options": "force-confdef,force-confold", "force": false, "install_recommends": null, "name": ["ca-certificates", "iptables"], "only_upgrade": false, "package": ["ca-certificates", "iptables"], "purge": false, "state": "present", "update_cache": false, "upgrade": null}, "module_name": "apt"}, "item": ["ca-certificates", "iptables"], "stderr": "", "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following extra packages will be installed:\n libnfnetlink0 libxtables10 openssl\nThe following NEW packages will be installed:\n ca-certificates iptables libnfnetlink0 libxtables10 openssl\n0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.\nNeed to get 981 kB of archives.\nAfter this operation, 3170 kB of additional disk space will be used.\nGet:1 http://archive.ubuntu.com/ubuntu/ trusty/main libnfnetlink0 amd64 1.0.1-2 [15.0 kB]\nGet:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main openssl amd64 1.0.1f-1ubuntu2.19 [490 kB]\nGet:3 http://archive.ubuntu.com/ubuntu/ trusty-updates/main ca-certificates all 20160104ubuntu0.14.04.1 [190 kB]\nGet:4 http://archive.ubuntu.com/ubuntu/ trusty/main libxtables10 amd64 1.4.21-1ubuntu1 [25.9 kB]\nGet:5 http://archive.ubuntu.com/ubuntu/ trusty/main iptables amd64 1.4.21-1ubuntu1 [261 kB]\nPreconfiguring packages ...\nFetched 981 kB in 1s (829 kB/s)\nSelecting previously unselected package libnfnetlink0:amd64.\n(Reading database ... 15448 files and directories currently installed.)\nPreparing to unpack .../libnfnetlink0_1.0.1-2_amd64.deb ...\nUnpacking libnfnetlink0:amd64 (1.0.1-2) ...\nSelecting previously unselected package openssl.\nPreparing to unpack .../openssl_1.0.1f-1ubuntu2.19_amd64.deb ...\nUnpacking openssl (1.0.1f-1ubuntu2.19) ...\nSelecting previously unselected package ca-certificates.\nPreparing to unpack .../ca-certificates_20160104ubuntu0.14.04.1_all.deb ...\nUnpacking ca-certificates (20160104ubuntu0.14.04.1) ...\nSelecting previously unselected package libxtables10.\nPreparing to unpack .../libxtables10_1.4.21-1ubuntu1_amd64.deb ...\nUnpacking libxtables10 (1.4.21-1ubuntu1) ...\nSelecting previously unselected package iptables.\nPreparing to unpack .../iptables_1.4.21-1ubuntu1_amd64.deb ...\nUnpacking iptables (1.4.21-1ubuntu1) ...\nSetting up libnfnetlink0:amd64 (1.0.1-2) ...\nSetting up openssl (1.0.1f-1ubuntu2.19) ...\nSetting up ca-certificates (20160104ubuntu0.14.04.1) ...\nSetting up libxtables10 (1.4.21-1ubuntu1) ...\nSetting up iptables (1.4.21-1ubuntu1) ...\nProcessing triggers for libc-bin (2.19-0ubuntu6.9) ...\nProcessing triggers for ca-certificates (20160104ubuntu0.14.04.1) ...\nUpdating certificates in /etc/ssl/certs... 173 added, 0 removed; done.\nRunning hooks in /etc/ca-certificates/update.d....done.\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "The following extra packages will be installed:", " libnfnetlink0 libxtables10 openssl", "The following NEW packages will be installed:", " ca-certificates iptables libnfnetlink0 libxtables10 openssl", "0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.", "Need to get 981 kB of archives.", "After this operation, 3170 kB of additional disk space will be used.", "Get:1 http://archive.ubuntu.com/ubuntu/ trusty/main libnfnetlink0 amd64 1.0.1-2 [15.0 kB]", "Get:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main openssl amd64 1.0.1f-1ubuntu2.19 [490 kB]", "Get:3 http://archive.ubuntu.com/ubuntu/ trusty-updates/main ca-certificates all 20160104ubuntu0.14.04.1 [190 kB]", "Get:4 http://archive.ubuntu.com/ubuntu/ trusty/main libxtables10 amd64 1.4.21-1ubuntu1 [25.9 kB]", "Get:5 http://archive.ubuntu.com/ubuntu/ trusty/main iptables amd64 1.4.21-1ubuntu1 [261 kB]", "Preconfiguring packages ...", "Fetched 981 kB in 1s (829 kB/s)", "Selecting previously unselected package libnfnetlink0:amd64.", "(Reading database ... 15448 files and directories currently installed.)", "Preparing to unpack .../libnfnetlink0_1.0.1-2_amd64.deb ...", "Unpacking libnfnetlink0:amd64 (1.0.1-2) ...", "Selecting previously unselected package openssl.", "Preparing to unpack .../openssl_1.0.1f-1ubuntu2.19_amd64.deb ...", "Unpacking openssl (1.0.1f-1ubuntu2.19) ...", "Selecting previously unselected package ca-certificates.", "Preparing to unpack .../ca-certificates_20160104ubuntu0.14.04.1_all.deb ...", "Unpacking ca-certificates (20160104ubuntu0.14.04.1) ...", "Selecting previously unselected package libxtables10.", "Preparing to unpack .../libxtables10_1.4.21-1ubuntu1_amd64.deb ...", "Unpacking libxtables10 (1.4.21-1ubuntu1) ...", "Selecting previously unselected package iptables.", "Preparing to unpack .../iptables_1.4.21-1ubuntu1_amd64.deb ...", "Unpacking iptables (1.4.21-1ubuntu1) ...", "Setting up libnfnetlink0:amd64 (1.0.1-2) ...", "Setting up openssl (1.0.1f-1ubuntu2.19) ...", "Setting up ca-certificates (20160104ubuntu0.14.04.1) ...", "Setting up libxtables10 (1.4.21-1ubuntu1) ...", "Setting up iptables (1.4.21-1ubuntu1) ...", "Processing triggers for libc-bin (2.19-0ubuntu6.9) ...", "Processing triggers for ca-certificates (20160104ubuntu0.14.04.1) ...", "Updating certificates in /etc/ssl/certs... 173 added, 0 removed; done.", "Running hooks in /etc/ca-certificates/update.d....done."]}
2016-07-17 14:24:07,434 p=14261 u=root | XXX close
2016-07-17 14:24:07,441 p=14261 u=root | changed: [container4] => (item=[u'ca-certificates', u'iptables']) => {"cache_update_time": 0, "cache_updated": false, "changed": true, "diff": {}, "invocation": {"module_args": {"allow_unauthenticated": false, "autoremove": false, "cache_valid_time": null, "deb": null, "default_release": null, "dpkg_options": "force-confdef,force-confold", "force": false, "install_recommends": null, "name": ["ca-certificates", "iptables"], "only_upgrade": false, "package": ["ca-certificates", "iptables"], "purge": false, "state": "present", "update_cache": false, "upgrade": null}, "module_name": "apt"}, "item": ["ca-certificates", "iptables"], "stderr": "", "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following extra packages will be installed:\n libnfnetlink0 libxtables10 openssl\nThe following NEW packages will be installed:\n ca-certificates iptables libnfnetlink0 libxtables10 openssl\n0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.\nNeed to get 981 kB of archives.\nAfter this operation, 3170 kB of additional disk space will be used.\nGet:1 http://archive.ubuntu.com/ubuntu/ trusty/main libnfnetlink0 amd64 1.0.1-2 [15.0 kB]\nGet:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main openssl amd64 1.0.1f-1ubuntu2.19 [490 kB]\nGet:3 http://archive.ubuntu.com/ubuntu/ trusty-updates/main ca-certificates all 20160104ubuntu0.14.04.1 [190 kB]\nGet:4 http://archive.ubuntu.com/ubuntu/ trusty/main libxtables10 amd64 1.4.21-1ubuntu1 [25.9 kB]\nGet:5 http://archive.ubuntu.com/ubuntu/ trusty/main iptables amd64 1.4.21-1ubuntu1 [261 kB]\nPreconfiguring packages ...\nFetched 981 kB in 1s (780 kB/s)\nSelecting previously unselected package libnfnetlink0:amd64.\n(Reading database ... 15448 files and directories currently installed.)\nPreparing to unpack .../libnfnetlink0_1.0.1-2_amd64.deb ...\nUnpacking libnfnetlink0:amd64 (1.0.1-2) ...\nSelecting previously unselected package openssl.\nPreparing to unpack .../openssl_1.0.1f-1ubuntu2.19_amd64.deb ...\nUnpacking openssl (1.0.1f-1ubuntu2.19) ...\nSelecting previously unselected package ca-certificates.\nPreparing to unpack .../ca-certificates_20160104ubuntu0.14.04.1_all.deb ...\nUnpacking ca-certificates (20160104ubuntu0.14.04.1) ...\nSelecting previously unselected package libxtables10.\nPreparing to unpack .../libxtables10_1.4.21-1ubuntu1_amd64.deb ...\nUnpacking libxtables10 (1.4.21-1ubuntu1) ...\nSelecting previously unselected package iptables.\nPreparing to unpack .../iptables_1.4.21-1ubuntu1_amd64.deb ...\nUnpacking iptables (1.4.21-1ubuntu1) ...\nSetting up libnfnetlink0:amd64 (1.0.1-2) ...\nSetting up openssl (1.0.1f-1ubuntu2.19) ...\nSetting up ca-certificates (20160104ubuntu0.14.04.1) ...\nSetting up libxtables10 (1.4.21-1ubuntu1) ...\nSetting up iptables (1.4.21-1ubuntu1) ...\nProcessing triggers for libc-bin (2.19-0ubuntu6.9) ...\nProcessing triggers for ca-certificates (20160104ubuntu0.14.04.1) ...\nUpdating certificates in /etc/ssl/certs... 173 added, 0 removed; done.\nRunning hooks in /etc/ca-certificates/update.d....done.\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "The following extra packages will be installed:", " libnfnetlink0 libxtables10 openssl", "The following NEW packages will be installed:", " ca-certificates iptables libnfnetlink0 libxtables10 openssl", "0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.", "Need to get 981 kB of archives.", "After this operation, 3170 kB of additional disk space will be used.", "Get:1 http://archive.ubuntu.com/ubuntu/ trusty/main libnfnetlink0 amd64 1.0.1-2 [15.0 kB]", "Get:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main openssl amd64 1.0.1f-1ubuntu2.19 [490 kB]", "Get:3 http://archive.ubuntu.com/ubuntu/ trusty-updates/main ca-certificates all 20160104ubuntu0.14.04.1 [190 kB]", "Get:4 http://archive.ubuntu.com/ubuntu/ trusty/main libxtables10 amd64 1.4.21-1ubuntu1 [25.9 kB]", "Get:5 http://archive.ubuntu.com/ubuntu/ trusty/main iptables amd64 1.4.21-1ubuntu1 [261 kB]", "Preconfiguring packages ...", "Fetched 981 kB in 1s (780 kB/s)", "Selecting previously unselected package libnfnetlink0:amd64.", "(Reading database ... 15448 files and directories currently installed.)", "Preparing to unpack .../libnfnetlink0_1.0.1-2_amd64.deb ...", "Unpacking libnfnetlink0:amd64 (1.0.1-2) ...", "Selecting previously unselected package openssl.", "Preparing to unpack .../openssl_1.0.1f-1ubuntu2.19_amd64.deb ...", "Unpacking openssl (1.0.1f-1ubuntu2.19) ...", "Selecting previously unselected package ca-certificates.", "Preparing to unpack .../ca-certificates_20160104ubuntu0.14.04.1_all.deb ...", "Unpacking ca-certificates (20160104ubuntu0.14.04.1) ...", "Selecting previously unselected package libxtables10.", "Preparing to unpack .../libxtables10_1.4.21-1ubuntu1_amd64.deb ...", "Unpacking libxtables10 (1.4.21-1ubuntu1) ...", "Selecting previously unselected package iptables.", "Preparing to unpack .../iptables_1.4.21-1ubuntu1_amd64.deb ...", "Unpacking iptables (1.4.21-1ubuntu1) ...", "Setting up libnfnetlink0:amd64 (1.0.1-2) ...", "Setting up openssl (1.0.1f-1ubuntu2.19) ...", "Setting up ca-certificates (20160104ubuntu0.14.04.1) ...", "Setting up libxtables10 (1.4.21-1ubuntu1) ...", "Setting up iptables (1.4.21-1ubuntu1) ...", "Processing triggers for libc-bin (2.19-0ubuntu6.9) ...", "Processing triggers for ca-certificates (20160104ubuntu0.14.04.1) ...", "Updating certificates in /etc/ssl/certs... 173 added, 0 removed; done.", "Running hooks in /etc/ca-certificates/update.d....done."]}
2016-07-17 14:24:07,446 p=14261 u=root | PLAY RECAP *********************************************************************
2016-07-17 14:24:07,446 p=14261 u=root | container1 : ok=6 changed=5 unreachable=0 failed=0
2016-07-17 14:24:07,447 p=14261 u=root | container2 : ok=6 changed=5 unreachable=0 failed=0
2016-07-17 14:24:07,447 p=14261 u=root | container3 : ok=6 changed=5 unreachable=0 failed=0
2016-07-17 14:24:07,447 p=14261 u=root | container4 : ok=6 changed=5 unreachable=0 failed=0
2016-07-17 14:24:07,447 p=14261 u=root | localhost : ok=4 changed=1 unreachable=0 failed=0
2016-07-17 14:24:07,447 p=14261 u=root | lxc-connection2 : ok=4 changed=1 unreachable=0 failed=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment