2020-04-27 14:47:40 +00:00
|
|
|
---
|
|
|
|
# Requires: 'want_cgroups' variable set to 1 or 2
|
|
|
|
- include_role:
|
|
|
|
name: set_cgroups
|
|
|
|
- include_role:
|
|
|
|
name: run_bats_tests
|
|
|
|
vars:
|
|
|
|
tests:
|
|
|
|
# Yes, this is horrible duplication, but trying to refactor in ansible
|
|
|
|
# yields even more horrible unreadable code. This is the lesser evil.
|
|
|
|
- name: podman root cgroupsv{{ want_cgroups }}
|
|
|
|
package: podman
|
|
|
|
environment:
|
|
|
|
PODMAN: /usr/bin/podman
|
2023-02-02 11:54:35 +00:00
|
|
|
QUADLET: /usr/libexec/podman/quadlet
|
2020-04-27 14:47:40 +00:00
|
|
|
- name: podman rootless cgroupsv{{ want_cgroups }}
|
|
|
|
package: podman
|
|
|
|
environment:
|
|
|
|
PODMAN: /usr/bin/podman
|
2023-02-02 11:54:35 +00:00
|
|
|
QUADLET: /usr/libexec/podman/quadlet
|
2020-04-27 14:47:40 +00:00
|
|
|
become: true
|