ansible/roles/golang/molecule/default/create.yml
Julien Riou e0bd2f80a9
Some checks failed
/ ansible-docsmith (push) Successful in 25s
/ molecule (certbot) (push) Failing after 59s
/ molecule (galene) (push) Failing after 1m7s
/ molecule (golang) (push) Failing after 1m11s
Initial commit
Signed-off-by: Julien Riou <julien@riou.xyz>
2026-02-17 09:46:08 +01:00

18 lines
509 B
YAML

---
- name: Create containers
hosts: localhost
gather_facts: false
tasks:
- name: Create containers
containers.podman.podman_container:
hostname: "{{ item }}"
name: "{{ item }}"
image: "{{ hostvars[item]['container_image'] }}"
state: started
loop: "{{ groups['molecule'] }}"
- name: Wait for containers to be ready
ansible.builtin.wait_for_connection:
timeout: 300
delegate_to: "{{ item }}"
loop: "{{ groups['molecule'] }}"