Skip to content

Commit 4b40089

Browse files
authored
B #47: Fix OpenNebula repository URL for Debian (#51)
1 parent 210eb3f commit 4b40089

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

roles/repository/tasks/main.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,19 @@
4545
ansible.builtin.copy:
4646
dest: "{{ _dest[ansible_os_family] }}"
4747
mode: u=rw,go=r
48-
content: "{{ _content[ansible_os_family] }}"
48+
content: "{{ _content[ansible_distribution] | d(_content[ansible_os_family]) }}"
4949
vars:
5050
_dest:
5151
Debian: /etc/apt/sources.list.d/opennebula.list
5252
RedHat: /etc/yum.repos.d/opennebula.repo
5353
_content:
5454
Debian: |
55+
{% if one_token is defined and one_token is truthy %}
56+
deb https://{{ one_token }}@enterprise.opennebula.io/repo/{{ one_version }}/{{ ansible_distribution }}/{{ ansible_distribution_major_version }} stable opennebula
57+
{% else %}
58+
deb https://downloads.opennebula.io/repo/{{ one_version }}/{{ ansible_distribution }}/{{ ansible_distribution_major_version }} stable opennebula
59+
{% endif %}
60+
Ubuntu: |
5561
{% if one_token is defined and one_token is truthy %}
5662
deb https://{{ one_token }}@enterprise.opennebula.io/repo/{{ one_version }}/{{ ansible_distribution }}/{{ ansible_distribution_version }} stable opennebula
5763
{% else %}

0 commit comments

Comments
 (0)