From 15b2079d5add11abf21e19203b53289b3f4e1a2f Mon Sep 17 00:00:00 2001 From: Tiago Carrondo Date: Wed, 3 Aug 2022 12:49:34 +0100 Subject: [PATCH] add per instance containers state --- 02_lxc_containers.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/02_lxc_containers.yaml b/02_lxc_containers.yaml index 62e8378..96960d0 100644 --- a/02_lxc_containers.yaml +++ b/02_lxc_containers.yaml @@ -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