add cont_restart_policy variable

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-08-09 14:41:42 -04:00
parent 8f99abe747
commit d35e1aa301
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
2 changed files with 2 additions and 1 deletions

View File

@ -102,3 +102,4 @@ cont_swap_limit: '{{ (cont_mem_limit|int) + (ansible_swaptotal_mb * cont_mem_rat
cont_state: started cont_state: started
cont_restart: false cont_restart: false
cont_recreate: false cont_recreate: false
cont_restart_policy: always

View File

@ -5,7 +5,7 @@
image: '{{ geth_cont_image }}' image: '{{ geth_cont_image }}'
user: root user: root
pull: true pull: true
restart_policy: always restart_policy: '{{ cont_restart_policy }}'
state: '{{ cont_state }}' state: '{{ cont_state }}'
recreate: '{{ cont_recreate }}' recreate: '{{ cont_recreate }}'
restart: '{{ cont_restart }}' restart: '{{ cont_restart }}'