Role lxc_hosts for OpenStack-Ansible
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 |
||
---|---|---|
defaults | ||
doc | ||
files | ||
handlers | ||
meta | ||
releasenotes | ||
tasks | ||
templates | ||
tests | ||
vars | ||
.gitignore | ||
.gitreview | ||
CONTRIBUTING.rst | ||
LICENSE | ||
manual-test.rc | ||
other-requirements.txt | ||
README.rst | ||
run_tests.sh | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
tox.ini |
OpenStack-Ansible LXC hosts
Ansible role that configures a host for running LXC containers.
Default Variables
../../defaults/main.yml
Required Variables
None
Example Playbook
- name: Basic lxc host setup
hosts: "hosts"
user: root
roles:
- { role: "lxc_hosts" }