diff --git a/releasenotes/notes/upgrade-lxc-4750ba9aea7b5cd1.yaml b/releasenotes/notes/upgrade-lxc-4750ba9aea7b5cd1.yaml new file mode 100644 index 00000000..3393858f --- /dev/null +++ b/releasenotes/notes/upgrade-lxc-4750ba9aea7b5cd1.yaml @@ -0,0 +1,6 @@ +--- +upgrade: + - Hosts running LXC on Ubuntu 14.04 will now need to enable + the "trusty-backports" repository. The backports repo on + Ubuntu 14.04 is now required to ensure LXC is updated to + the latest stable version. diff --git a/tasks/lxc_install_apt.yml b/tasks/lxc_install_apt.yml index a0bf4c77..c61c1ab8 100644 --- a/tasks/lxc_install_apt.yml +++ b/tasks/lxc_install_apt.yml @@ -33,7 +33,8 @@ - name: Install apt packages apt: pkg: "{{ item }}" - state: present + state: latest + default_release: "{{ lxc_default_release | default(omit) }}" register: install_packages until: install_packages|success retries: 5 diff --git a/vars/ubuntu-14.04.yml b/vars/ubuntu-14.04.yml index 3e25235b..98efdb7f 100644 --- a/vars/ubuntu-14.04.yml +++ b/vars/ubuntu-14.04.yml @@ -122,3 +122,5 @@ lxc_cache_packages: lxc_cached_network_interfaces: - src: "lxc-net-bridge.cfg.j2" dest: "/etc/network/interfaces.d/lxc-net-bridge.cfg" + +lxc_default_release: "trusty-backports"