The scenario now starts its containers with community.docker instead of containers.podman, because docker is the container runtime available on the CI runner. The connection plugin, the login command and the declared collections were adjusted accordingly and the docker SDK for python is installed in the workflow, since the module requires it. Co-authored-by: Copilot <copilot@github.com>
20 lines
446 B
YAML
20 lines
446 B
YAML
---
|
|
|
|
- name: Destroy
|
|
hosts: localhost
|
|
gather_facts: false
|
|
tasks:
|
|
- name: Remove the container of every platform
|
|
community.docker.docker_container:
|
|
name: "{{ item.name }}"
|
|
state: absent
|
|
loop: "{{ molecule_yml.platforms }}"
|
|
loop_control:
|
|
label: "{{ item.name }}"
|
|
|
|
- name: Empty the instance config
|
|
ansible.builtin.copy:
|
|
content: "[]"
|
|
dest: "{{ molecule_instance_config }}"
|
|
mode: "0600"
|