add per instance containers state

This commit is contained in:
Tiago Carrondo 2022-08-03 12:49:34 +01:00
parent c973dce3c9
commit 15b2079d5a
1 changed files with 6 additions and 6 deletions

View File

@ -5,8 +5,8 @@
tasks: tasks:
- name: Create lxd containers - name: Create lxd containers
community.general.lxd_container: community.general.lxd_container:
name: '{{ item }}' name: '{{ item.name }}'
state: started state: '{{ item.state }}'
source: source:
type: image type: image
mode: pull mode: pull
@ -17,10 +17,10 @@
wait_for_ipv4_addresses: true wait_for_ipv4_addresses: true
timeout: 600 timeout: 600
with_items: with_items:
- haproxy - { name: haproxy, state: started }
- gitea - { name: gitea, state: started }
- freescout - { name: freescout, state: started }
- pretalx - { name: pretalx, state: stopped }
- name: Create haproxy port forwards - name: Create haproxy port forwards
community.general.lxd_container: community.general.lxd_container:
name: haproxy name: haproxy