diff --git a/defaults/main.yml b/defaults/main.yml index c72c2168..0be4eae4 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -55,7 +55,9 @@ lxc_container_template_options: > lxc_container_template_main_apt_repo: "https://mirror.rackspace.com/ubuntu" lxc_container_template_security_apt_repo: "https://mirror.rackspace.com/ubuntu" - +lxc_container_template_apt_components: + - main + - universe # Required apt packages. lxc_apt_packages: diff --git a/templates/sources.list.j2 b/templates/sources.list.j2 index 3190b2b6..fa9a336b 100644 --- a/templates/sources.list.j2 +++ b/templates/sources.list.j2 @@ -1,5 +1,5 @@ -# Sources created by the ansible -deb {{ lxc_container_template_main_apt_repo }} {{ lxc_container_release }} main restricted universe multiverse -deb {{ lxc_container_template_main_apt_repo }} {{ lxc_container_release }}-updates main restricted universe multiverse -deb {{ lxc_container_template_main_apt_repo }} {{ lxc_container_release }}-backports main restricted universe multiverse -deb {{ lxc_container_template_security_apt_repo }} {{ lxc_container_release }}-security main restricted universe multiverse +# {{ ansible_managed }} +deb {{ lxc_container_template_main_apt_repo }} {{ lxc_container_release }} {{ lxc_container_template_apt_components | join(" ") }} +deb {{ lxc_container_template_main_apt_repo }} {{ lxc_container_release }}-updates {{ lxc_container_template_apt_components | join(" ") }} +deb {{ lxc_container_template_main_apt_repo }} {{ lxc_container_release }}-backports {{ lxc_container_template_apt_components | join(" ") }} +deb {{ lxc_container_template_security_apt_repo }} {{ lxc_container_release }}-security {{ lxc_container_template_apt_components | join(" ") }}