feat: add init option for services
This commit is contained in:
parent
289da5c1db
commit
e33afe6ae6
2 changed files with 2 additions and 0 deletions
|
@ -48,6 +48,7 @@ wordpress:
|
||||||
WORDPRESS_DB_PASSWORD: wordpress
|
WORDPRESS_DB_PASSWORD: wordpress
|
||||||
container_labels:
|
container_labels:
|
||||||
region: FR
|
region: FR
|
||||||
|
init: false
|
||||||
state: present
|
state: present
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -38,6 +38,7 @@
|
||||||
limits: '{{ item.value.limits | default({}) }}'
|
limits: '{{ item.value.limits | default({}) }}'
|
||||||
env: '{{ item.value.env | default({}) }}'
|
env: '{{ item.value.env | default({}) }}'
|
||||||
container_labels: '{{ item.value.labels | default({}) }}'
|
container_labels: '{{ item.value.labels | default({}) }}'
|
||||||
|
init: '{{ item.value.init | default(omit) }}'
|
||||||
state: '{{ item.value.state | default("present") }}'
|
state: '{{ item.value.state | default("present") }}'
|
||||||
loop: '{{ swarm_services | dict2items }}'
|
loop: '{{ swarm_services | dict2items }}'
|
||||||
loop_control:
|
loop_control:
|
||||||
|
|
Loading…
Reference in a new issue