Skip to content

Commit

Permalink
ci: Handle docker installation for Ubuntu 24.04
Browse files Browse the repository at this point in the history
TDX machine is using Ubuntu 24.04, so we need to expand the current
check.

Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
  • Loading branch information
fidencio committed Jun 21, 2024
1 parent 801deb2 commit 0a009d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/e2e/ansible/install_docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
state: present
# TODO: add regular non-root users to docker group
when: docker_exist.rc != 0 and ansible_distribution == "Ubuntu" and ansible_distribution_version == "20.04"
- name: Handle docker installation on Ubuntu 22.04
- name: Handle docker installation on Ubuntu 22.04 and 24.04
block:
- name: Install docker packages
package:
Expand All @@ -70,7 +70,7 @@
state: present
retries: 3
delay: 10
when: docker_exist.rc != 0 and ansible_distribution == "Ubuntu" and ansible_distribution_version == "22.04"
when: docker_exist.rc != 0 and ansible_distribution == "Ubuntu" and ansible_distribution_version in ("22.04", "24.04")
- name: Handle docker installation on CentOS.
block:
- name: Install yum-utils
Expand Down

0 comments on commit 0a009d2

Please sign in to comment.