Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
parent
ad30a8307f
commit
f418990e84
85 changed files with 3520 additions and 2 deletions
18
roles/golang/molecule/default/create.yml
Normal file
18
roles/golang/molecule/default/create.yml
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
---
|
||||
- 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'] }}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue