Skip to content

Commit

Permalink
test: fix ostree support
Browse files Browse the repository at this point in the history
Add ostree support to package use in tests

Signed-off-by: Rich Megginson <[email protected]>
  • Loading branch information
richm committed Aug 21, 2024
1 parent e418027 commit c616cdd
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/tasks/setup_registry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,24 @@
dest: "{{ __podman_registry_authdir ~ '/ca.crt' }}"
mode: "0600"

- name: Determine if system is ostree and set flag
when: not __podman_is_ostree is defined
block:
- name: Check if system is ostree
stat:
path: /run/ostree-booted
register: __ostree_booted_stat

- name: Set flag to indicate system is ostree
set_fact:
__podman_is_ostree: "{{ __ostree_booted_stat.stat.exists }}"

- name: Ensure test packages
package:
name: [httpd-tools, skopeo]
state: present
use: "{{ (__podman_is_ostree | d(false)) |
ternary('ansible.posix.rhel_rpm_ostree', omit) }}"

- name: Write user and password
shell: >-
Expand Down

0 comments on commit c616cdd

Please sign in to comment.