add per instance containers state

pull/15/head
Tiago Carrondo 2 months ago
parent c973dce3c9
commit 15b2079d5a
  1. 12
      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

Loading…
Cancel
Save