diff --git a/tests/collection-requirements.yml b/tests/collection-requirements.yml index a9c13c4..8264ef1 100644 --- a/tests/collection-requirements.yml +++ b/tests/collection-requirements.yml @@ -1,3 +1,4 @@ --- collections: + - name: containers.podman - name: fedora.linux_system_roles diff --git a/tests/tasks/setup_candlepin.yml b/tests/tasks/setup_candlepin.yml index 57b7b87..368d73d 100644 --- a/tests/tasks/setup_candlepin.yml +++ b/tests/tasks/setup_candlepin.yml @@ -23,22 +23,16 @@ state: present - name: Start Candlepin container - command: - argv: - - podman - - run - - "--rm" - - "--detach" - - "--name" - - candlepin - - "--publish" - - "8443:8443" - - "--publish" - - "8080:8080" - - "--hostname" - - "{{ lsr_rhc_test_data.candlepin_host }}" - - ghcr.io/ptoscano/candlepin-unofficial - changed_when: false + containers.podman.podman_container: + detach: true + hostname: "{{ lsr_rhc_test_data.candlepin_host }}" + image: ghcr.io/ptoscano/candlepin-unofficial + name: candlepin + publish: + - 8443:8443 + - 8080:8080 + rm: true + state: started - name: Ensure directories exist file: