mirror of
https://github.com/ansible-collections/community.docker.git
synced 2025-12-16 11:58:43 +00:00
CI: Start using Ubuntu VMs instead of RHEL VMs (#1128)
* Start using Ubuntu VMs instead of RHEL VMs. * Use correct Python executable. * Fix starting podman on non-RHEL systems.
This commit is contained in:
parent
93d165e10b
commit
2b5c06da20
@ -228,6 +228,8 @@ stages:
|
|||||||
targets:
|
targets:
|
||||||
- name: RHEL 9.6 with Docker SDK, urllib3, requests from sources
|
- name: RHEL 9.6 with Docker SDK, urllib3, requests from sources
|
||||||
test: rhel/9.6-dev-latest
|
test: rhel/9.6-dev-latest
|
||||||
|
- name: Ubuntu 24.04
|
||||||
|
test: ubuntu/24.04
|
||||||
groups:
|
groups:
|
||||||
- 1
|
- 1
|
||||||
- 2
|
- 2
|
||||||
@ -244,6 +246,8 @@ stages:
|
|||||||
targets:
|
targets:
|
||||||
- name: RHEL 9.5
|
- name: RHEL 9.5
|
||||||
test: rhel/9.5
|
test: rhel/9.5
|
||||||
|
- name: Ubuntu 22.04
|
||||||
|
test: ubuntu/22.04
|
||||||
groups:
|
groups:
|
||||||
- 1
|
- 1
|
||||||
- 2
|
- 2
|
||||||
@ -290,8 +294,6 @@ stages:
|
|||||||
parameters:
|
parameters:
|
||||||
testFormat: 2.16/{0}
|
testFormat: 2.16/{0}
|
||||||
targets:
|
targets:
|
||||||
- name: RHEL 9.2
|
|
||||||
test: rhel/9.2
|
|
||||||
- name: RHEL 8.8
|
- name: RHEL 8.8
|
||||||
test: rhel/8.8
|
test: rhel/8.8
|
||||||
- name: RHEL 7.9
|
- name: RHEL 7.9
|
||||||
|
|||||||
@ -4,14 +4,14 @@
|
|||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- shell: "docker info --format '{% raw %}{{json .}}{% endraw %}' | python -m json.tool"
|
- shell: "docker info --format '{% raw %}{{json .}}{% endraw %}' | {{ ansible_python_interpreter }} -m json.tool"
|
||||||
|
|
||||||
- name: Make sure we're not already using Docker swarm
|
- name: Make sure we're not already using Docker swarm
|
||||||
docker_swarm:
|
docker_swarm:
|
||||||
state: absent
|
state: absent
|
||||||
force: true
|
force: true
|
||||||
|
|
||||||
- shell: "docker info --format '{% raw %}{{json .}}{% endraw %}' | python -m json.tool"
|
- shell: "docker info --format '{% raw %}{{json .}}{% endraw %}' | {{ ansible_python_interpreter }} -m json.tool"
|
||||||
|
|
||||||
- name: Create a Swarm cluster
|
- name: Create a Swarm cluster
|
||||||
docker_swarm:
|
docker_swarm:
|
||||||
|
|||||||
@ -57,7 +57,7 @@
|
|||||||
systemd_service:
|
systemd_service:
|
||||||
name: "{{ podman_socket_service }}"
|
name: "{{ podman_socket_service }}"
|
||||||
state: started
|
state: started
|
||||||
scope: "{{ 'global' if podman_user_id.stdout == '0' else 'user' }}"
|
scope: "{{ 'global' if podman_user_id.stdout == '0' and ansible_facts.os_family == 'RedHat' else 'user' }}"
|
||||||
environment:
|
environment:
|
||||||
XDG_RUNTIME_DIR: "{{ '/run' if podman_user_id.stdout == '0' else ('/run/user/' ~ podman_user_id.stdout) }}"
|
XDG_RUNTIME_DIR: "{{ '/run' if podman_user_id.stdout == '0' else ('/run/user/' ~ podman_user_id.stdout) }}"
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user