SUSE: Use the OBS Virtualization repository for lxc-2.X.X

openSUSE Leap ships lxc-1.1.5 which is rather old and unmaintained.
It's best to use the OBS development repository to get the latest
lxc-2.X.X which is the one maintained upstream.

Change-Id: I5a7baa3374bad67dcafc5c78f16b0dd4cae49ee4
(cherry picked from commit 1284067625)
This commit is contained in:
Markos Chandras 2017-08-31 10:39:51 +01:00 committed by Jesse Pretorius (odyssey4me)
parent 3f951d8cf7
commit 8a35cc1da8
2 changed files with 16 additions and 1 deletions

View File

@ -13,6 +13,17 @@
# See the License for the specific language governing permissions and
# limitations under the License.
- name: Add zypper containers repository
zypper_repository:
auto_import_keys: yes
autorefresh: yes
name: "{{ item.name }}"
repo: "{{ item.uri }}"
runrefresh: yes
with_items: "{{ lxc_hosts_external_repo }}"
tags:
- lxc_hosts-config
- name: Install zypper packages
zypper:
name: "{{ lxc_hosts_distro_packages }}"

View File

@ -14,6 +14,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
lxc_hosts_external_repo:
- name: "OBS:Virtualization:containers"
uri: "http://download.opensuse.org/repositories/Virtualization:/containers/openSUSE_Leap_{{ ansible_distribution_version }}/"
system_config_dir: "/etc/sysconfig"
systemd_utils_prefix: "/usr/lib/systemd"
@ -29,7 +33,7 @@ lxc_hosts_distro_packages:
- git-core
- libseccomp2
- lxc
- lxc-devel
- liblxc-devel
- xz
lxc_xz_bin: xz