Set wheels-mirror for openSUSE Tumbleweed
Unfortunately ansible_distribution is "openSUSE Tumbleweed" on tumbleweed, and the whitespace in there is harmful. as there isn't a version with tumbleweed, we can just replace distribution/version with "opensuse-tumbleweed". Change-Id: I21da4b5f851ec864dfb3cbf8ea6713bc12cda58f
This commit is contained in:
parent
1d50e386cf
commit
294e9cbe1d
@ -1,12 +1,3 @@
|
||||
- name: Install /etc/pip.conf configuration
|
||||
become: yes
|
||||
template:
|
||||
dest: /etc/pip.conf
|
||||
group: root
|
||||
mode: 0644
|
||||
owner: root
|
||||
src: etc/pip.conf.j2
|
||||
|
||||
- name: Install .pydistutils.cfg configuration in homedir
|
||||
template:
|
||||
dest: ~/.pydistutils.cfg
|
||||
@ -20,6 +11,15 @@
|
||||
- "{{ ansible_os_family }}.yaml"
|
||||
- "default.yaml"
|
||||
|
||||
- name: Install /etc/pip.conf configuration
|
||||
become: yes
|
||||
template:
|
||||
dest: /etc/pip.conf
|
||||
group: root
|
||||
mode: 0644
|
||||
owner: root
|
||||
src: etc/pip.conf.j2
|
||||
|
||||
- name: Setup distribution specific packaging mirrors
|
||||
include: "{{ item }}"
|
||||
static: no
|
||||
|
@ -1 +1,7 @@
|
||||
package_mirror: "http://{{ mirror_fqdn }}/opensuse"
|
||||
wheels_slug: "{%- if ansible_distribution == 'openSUSE Tumbleweed' -%}
|
||||
opensuse-tumbleweed-{{ ansible_architecture | lower }}
|
||||
{%- else -%}
|
||||
{{ ansible_distribution | lower }}-{{ ansible_distribution_version }}-{{ ansible_architecture | lower }}
|
||||
{%- endif -%}"
|
||||
wheel_mirror: "http://{{ mirror_fqdn }}/wheel/{{ wheels_slug }}"
|
||||
|
Loading…
Reference in New Issue
Block a user