Commit fff54435 authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

Fix repository task for older version of ansible

ansible.builtin.deb822_repository is only available starting with
ansible-core 2.15. See
https://docs.ansible.com/ansible/latest/collections/ansible/builtin/deb822_repository_module.html
parent 2139afa0
Pipeline #38731 running with stage
- name: Install Ubuntu 24.04 repository
ansible.builtin.deb822_repository:
name: download_opensuse_org_repositories_home_VIFIBnexedi_xUbuntu_24.04
types: [deb]
uris: "{{ base_open_build_url }}/xUbuntu_24.04"
suites: ./
signed_by: "{{ base_open_build_url }}/xUbuntu_24.04/Release.key"
state: present
enabled: true
when: ansible_distribution == "Ubuntu" and ansible_distribution_version == "24.04"
......@@ -104,16 +104,9 @@
apt_repository: repo='deb {{ base_open_build_url }}/xUbuntu_22.04/ ./' state=present
when: (ansible_distribution == "Ubuntu" and ansible_distribution_version == "22.04") or (ansible_distribution == "Linux Mint" and ansible_distribution_major_version == "21")
- name: Install Ubuntu 24.04 repository
ansible.builtin.deb822_repository:
name: download_opensuse_org_repositories_home_VIFIBnexedi_xUbuntu_24.04
types: [deb]
uris: "{{ base_open_build_url }}/xUbuntu_24.04"
suites: ./
signed_by: "{{ base_open_build_url }}/xUbuntu_24.04/Release.key"
state: present
enabled: true
when: ansible_distribution == "Ubuntu" and ansible_distribution_version == "24.04"
- name: Install with DEB822
include_tasks: deb822.yml
when: ansible_distribution == "Ubuntu" and ansible_distribution_version >= "24.04"
- name: Install CentOS 7 Repository
get_url: url={{ base_open_build_url }}/CentOS_7/home:VIFIBnexedi.repo dest=/etc/yum.repos.d/slapos.repo mode=0440
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment