-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
repository: make role usable for Ubuntu 24.04 @ ARM (#727)
Signed-off-by: Christian Berendt <[email protected]>
- Loading branch information
Showing
18 changed files
with
133 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
RedHat.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
RedHat.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
RedHat.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
- name: Create /etc/apt/sources.list.d directory | ||
become: true | ||
ansible.builtin.file: | ||
path: /etc/apt/sources.list.d | ||
state: directory | ||
owner: root | ||
group: root | ||
mode: 0755 | ||
|
||
- name: Include tasks for Ubuntu < 24.04 | ||
ansible.builtin.include_tasks: Debian.yml | ||
when: "ansible_distribution_version is version('24.04', '<')" | ||
|
||
- name: Copy 99osism apt configuration | ||
become: true | ||
ansible.builtin.template: | ||
src: 99osism.j2 | ||
dest: /etc/apt/apt.conf.d/99osism | ||
mode: 0644 | ||
when: "ansible_distribution_version is version('24.04', '>=')" | ||
|
||
- name: Remove sources.list file | ||
become: true | ||
ansible.builtin.file: | ||
path: /etc/apt/source.list | ||
state: absent | ||
when: "ansible_distribution_version is version('24.04', '>=')" | ||
|
||
- name: Copy ubuntu.sources file | ||
become: true | ||
ansible.builtin.template: | ||
src: ubuntu.sources.j2 | ||
dest: /etc/apt/sources.list.d/ubuntu.sources | ||
owner: root | ||
group: root | ||
mode: 0644 | ||
backup: true | ||
notify: Force update of package cache | ||
when: "ansible_distribution_version is version('24.04', '>=')" | ||
|
||
- name: Update package cache | ||
become: true | ||
ansible.builtin.apt: | ||
cache_valid_time: "{{ repository_cache_valid_time }}" | ||
lock_timeout: "{{ apt_lock_timeout | default(300) }}" | ||
when: "ansible_distribution_version is version('24.04', '>=')" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN | ||
|
||
{% for item in repositories %} | ||
Types: deb | ||
URIs: {{ item.deb822_uris }} | ||
Suites: {{ item.name }} | ||
Components: {{ item.deb822_components }} | ||
Signed-By: {{ item.deb822_signed_by }} | ||
{{ '' if loop.last else '\n' }} | ||
{% endfor %} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# We only support ARM as of Ubuntu 24.04. Therefore, only the new | ||
# DEB822 format is used here. | ||
--- | ||
__repository_default: | ||
- name: "{{ ansible_distribution_release }}" | ||
deb822_uris: http://ports.ubuntu.com/ubuntu-ports/ | ||
deb822_components: main restricted universe multiverse | ||
deb822_signed_by: /usr/share/keyrings/ubuntu-archive-keyring.gpg | ||
- name: "{{ ansible_distribution_release }}-backports" | ||
deb822_uris: http://ports.ubuntu.com/ubuntu-ports/ | ||
deb822_components: main restricted universe multiverse | ||
deb822_signed_by: /usr/share/keyrings/ubuntu-archive-keyring.gpg | ||
- name: "{{ ansible_distribution_release }}-security" | ||
deb822_uris: http://ports.ubuntu.com/ubuntu-ports/ | ||
deb822_components: main restricted universe multiverse | ||
deb822_signed_by: /usr/share/keyrings/ubuntu-archive-keyring.gpg | ||
- name: "{{ ansible_distribution_release }}-updates" | ||
deb822_uris: http://ports.ubuntu.com/ubuntu-ports/ | ||
deb822_components: main restricted universe multiverse | ||
deb822_signed_by: /usr/share/keyrings/ubuntu-archive-keyring.gpg |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
__repository_default: | ||
- name: "{{ ansible_distribution_release }}" | ||
repository: "deb http://de.archive.ubuntu.com/ubuntu/ {{ ansible_distribution_release }} main restricted universe multiverse" | ||
deb822_uris: http://de.archive.ubuntu.com/ubuntu/ | ||
deb822_components: main restricted universe multiverse | ||
deb822_signed_by: /usr/share/keyrings/ubuntu-archive-keyring.gpg | ||
- name: "{{ ansible_distribution_release }}-backports" | ||
repository: "deb http://de.archive.ubuntu.com/ubuntu/ {{ ansible_distribution_release }}-backports main restricted universe multiverse" | ||
deb822_uris: http://de.archive.ubuntu.com/ubuntu/ | ||
deb822_components: main restricted universe multiverse | ||
deb822_signed_by: /usr/share/keyrings/ubuntu-archive-keyring.gpg | ||
- name: "{{ ansible_distribution_release }}-security" | ||
repository: "deb http://de.archive.ubuntu.com/ubuntu/ {{ ansible_distribution_release }}-security main restricted universe multiverse" | ||
deb822_uris: http://de.archive.ubuntu.com/ubuntu/ | ||
deb822_components: main restricted universe multiverse | ||
deb822_signed_by: /usr/share/keyrings/ubuntu-archive-keyring.gpg | ||
- name: "{{ ansible_distribution_release }}-updates" | ||
repository: "deb http://de.archive.ubuntu.com/ubuntu/ {{ ansible_distribution_release }}-updates main restricted universe multiverse" | ||
deb822_uris: http://de.archive.ubuntu.com/ubuntu/ | ||
deb822_components: main restricted universe multiverse | ||
deb822_signed_by: /usr/share/keyrings/ubuntu-archive-keyring.gpg |