Fix image urls

The image doesn't contain 15.0.0 before -image nowadays [1].

[1]: https://download.opensuse.org/repositories/Virtualization:/containers:/images:/openSUSE-Leap-15.0/containers/

Change-Id: Ib01d3d5c7183b15d7c527180eb99c04215ca73ed
This commit is contained in:
Jean-Philippe Evrard 2019-03-21 09:31:29 +01:00
parent f1b877ec47
commit 1776570a71
2 changed files with 3 additions and 2 deletions

View File

@ -73,4 +73,4 @@
curl -s {{ _lxc_hosts_container_image_url_base }} | grep -P -o '{{ ansible_architecture }}.*?lxc.*?Build.*?xz' | head -n 1
register: _lxc_opensuse_image_build_info
- set_fact:
opensuse_image_build_info: "{{ _lxc_opensuse_image_build_info.stdout }}"
_lxc_hosts_container_image_url: "{{ _lxc_hosts_container_image_url_base }}opensuse-leap-image.{{ _lxc_opensuse_image_build_info.stdout }}"

View File

@ -15,7 +15,8 @@
# limitations under the License.
_lxc_hosts_container_image_url_base: "https://download.opensuse.org/repositories/Virtualization:/containers:/images:/openSUSE-Leap-{{ ansible_distribution_version }}/containers/"
_lxc_hosts_container_image_url: "{{ _lxc_hosts_container_image_url_base }}/opensuse-leap-{{ ansible_distribution_version }}-image.{{ opensuse_image_build_info }}"
#this gets overriden anyway
_lxc_hosts_container_image_url: ""
_lxc_cache_map:
distro: opensuse