Debian Codegraph @

ansible_collections/community/zabbix/molecule/zabbix_agent_tests/common/playbooks/create.yml

raw
1 ---
2 - name: Create
3 hosts: localhost
4 connection: local
5
6 gather_facts: false
7
8 pre_tasks:
9 - name: Create network
10 community.docker.docker_network:
11 name: zabbix
12
13 tasks:
14 - name: "Create OS container"
15 community.docker.docker_container:
16 state: started
17 recreate: true
18 name: "{{ item.name }}"
19 image: "{{ item.image }}"
20 privileged: "{{ item.privileged | default(omit) }}"
21 command: "{{ item.command | default(omit) }}"
22 networks: "{{ item.networks | default(omit) }}"
23 volumes: "{{ item.volumes | default(omit) }}"
24 cgroupns_mode: "{{ item.cgroupns_mode | default(omit) }}"
25 loop: "{{ molecule_yml.platforms }}"
26
27 - name: "Wait for 15 seconds"
28 ansible.builtin.wait_for:
29 timeout: 15