diff --git a/tasks/lxc_install_zypper.yml b/tasks/lxc_install_zypper.yml index 2010760c..22d46bc2 100644 --- a/tasks/lxc_install_zypper.yml +++ b/tasks/lxc_install_zypper.yml @@ -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 }}" diff --git a/vars/suse-42.yml b/vars/suse-42.yml index f2284b3a..9de9d7a0 100644 --- a/vars/suse-42.yml +++ b/vars/suse-42.yml @@ -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