openstack-ansible-lxc_hosts/tasks
Jesse Pretorius a5e5567369 Improve LXC cache preparation process
Without this patch, any errors that happen during the
'apt-get update' execution will cause the 'apt-get install'
execution to never happen.

This patch implements the following:

- It sets the cache prep script to exit on error to ensure
  that the task fails if there is an error.

- It splits the upgrade and install command on to different
  lines to ensure that each command's success can be
  determined individually.

- It removes the clearing of the archive metadata introduced
  in https://review.openstack.org/310091 as this also removes
  apt lock files and other things which should not be removed.
  Removing all this is unnecessary with the new cache prep
  process and the 'apt-get clean' execution later clears the
  cache before it is packaged.

- It removes the copy of /etc/apt/sources.list.d/ from the host
  to prevent a situation where a host apt source requires
  additional packages to be installed (for example curl) and
  those packages can't be installed due to the 'apt-get update'
  command failing because the package to update the index is
  missing.

Change-Id: I07a864e4125a7fc076cbf5bf7380a8e34e6d2d7c
2016-06-23 11:43:34 -05:00
..
lxc_cache_create.yml Merge "Fix generation of LXC hostnames" 2016-05-05 05:14:25 +00:00
lxc_cache_preparation.yml Improve LXC cache preparation process 2016-06-23 11:43:34 -05:00
lxc_cache.yml Fix generation of LXC hostnames 2016-05-04 14:14:59 -07:00
lxc_dnsmasq_cleanup.yml IRR for lxc_host 2015-11-03 04:22:57 -06:00
lxc_install_apt.yml Address Ansible bare variable usage 2016-06-14 18:34:04 +01:00
lxc_install_yum.yml Address Ansible bare variable usage 2016-06-14 18:34:04 +01:00
lxc_install.yml Address Ansible bare variable usage 2016-06-14 18:34:04 +01:00
lxc_kernel_tuning.yml Address Ansible bare variable usage 2016-06-14 18:34:04 +01:00
lxc_net.yml Changed for lxc-host setup/build for multi-distro 2016-05-03 08:49:54 -05:00
lxc_post_install.yml Changed for lxc-host setup/build for multi-distro 2016-05-03 08:49:54 -05:00
lxc_pre_install.yml Changed for lxc-host setup/build for multi-distro 2016-05-03 08:49:54 -05:00
main.yml Consistency for multi-os in the includes 2016-06-02 14:19:12 +01:00