add per instance containers state

This commit is contained in:
Tiago Carrondo 2022-08-03 12:49:34 +01:00
parent c973dce3c9
commit 15b2079d5a

View File

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