-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix failed Ubuntu 24.04 tests (#630)
Signed-off-by: Sebastian Neumann <[email protected]>
- Loading branch information
Showing
11 changed files
with
103 additions
and
64 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
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
network_interface_required_packages: | ||
- bridge-utils | ||
- ifenslave | ||
|
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
network_interface_required_packages: | ||
- bridge-utils | ||
- teamd | ||
|
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 |
---|---|---|
@@ -1,45 +1,50 @@ | ||
--- | ||
- name: Remove old architecture-dependent repository | ||
become: true | ||
ansible.builtin.apt_repository: | ||
repo: "deb [ arch=amd64 ] https://aquasecurity.github.io/trivy-repo/deb {{ ansible_distribution_release }} main" | ||
state: absent | ||
filename: trivy | ||
when: trivy_configure_repository|bool | ||
# Installation on Ubuntu 24.04 skipped, because the repository | ||
# 'https://aquasecurity.github.io/trivy-repo/deb noble Release' | ||
# does not have a release file yet. | ||
- name: Trivy installation | ||
when: not ansible_distribution_version == '24.04' | ||
block: # noqa osism-fqcn | ||
- name: Remove old architecture-dependent repository | ||
become: true | ||
ansible.builtin.apt_repository: | ||
repo: "deb [ arch=amd64 ] https://aquasecurity.github.io/trivy-repo/deb {{ ansible_distribution_release }} main" | ||
state: absent | ||
filename: trivy | ||
when: trivy_configure_repository|bool | ||
|
||
- name: Install apt-transport-https package | ||
become: true | ||
ansible.builtin.apt: | ||
name: apt-transport-https | ||
state: present | ||
lock_timeout: "{{ apt_lock_timeout | default(300) }}" | ||
when: trivy_configure_repository | bool | ||
changed_when: false | ||
- name: Install apt-transport-https package | ||
become: true | ||
ansible.builtin.apt: | ||
name: apt-transport-https | ||
state: present | ||
lock_timeout: "{{ apt_lock_timeout | default(300) }}" | ||
when: trivy_configure_repository | bool | ||
changed_when: false | ||
|
||
- name: Add repository gpg key | ||
become: true | ||
ansible.builtin.get_url: | ||
url: "{{ trivy_debian_repository_key }}" | ||
dest: /etc/apt/trusted.gpg.d/trivy.asc | ||
mode: 0644 | ||
owner: root | ||
group: root | ||
when: | ||
- trivy_configure_repository | bool | ||
- name: Add repository gpg key | ||
become: true | ||
ansible.builtin.get_url: | ||
url: "{{ trivy_debian_repository_key }}" | ||
dest: /etc/apt/trusted.gpg.d/trivy.asc | ||
mode: 0644 | ||
owner: root | ||
group: root | ||
when: trivy_configure_repository | bool | ||
|
||
- name: Add repository | ||
become: true | ||
ansible.builtin.apt_repository: | ||
repo: "{{ trivy_debian_repository }}" | ||
state: present | ||
filename: trivy | ||
update_cache: true | ||
mode: 0600 | ||
when: trivy_configure_repository | bool | ||
- name: Add repository | ||
become: true | ||
ansible.builtin.apt_repository: | ||
repo: "{{ trivy_debian_repository }}" | ||
state: present | ||
filename: trivy | ||
update_cache: true | ||
mode: 0600 | ||
when: trivy_configure_repository | bool | ||
|
||
- name: Install trivy package | ||
become: true | ||
ansible.builtin.apt: | ||
name: "{{ trivy_package_name }}" | ||
state: present | ||
lock_timeout: "{{ apt_lock_timeout | default(300) }}" | ||
- name: Install trivy package | ||
become: true | ||
ansible.builtin.apt: | ||
name: "{{ trivy_package_name }}" | ||
state: present | ||
lock_timeout: "{{ apt_lock_timeout | default(300) }}" |