a5e5567369
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 |
||
---|---|---|
.. | ||
lxc_cache_create.yml | ||
lxc_cache_preparation.yml | ||
lxc_cache.yml | ||
lxc_dnsmasq_cleanup.yml | ||
lxc_install_apt.yml | ||
lxc_install_yum.yml | ||
lxc_install.yml | ||
lxc_kernel_tuning.yml | ||
lxc_net.yml | ||
lxc_post_install.yml | ||
lxc_pre_install.yml | ||
main.yml |