Compare commits
2 Commits
4f62020d89
...
8654f76936
Author | SHA1 | Date |
---|---|---|
Cory Hawkless | 8654f76936 | |
Cory Hawkless | db4c4fbefd |
|
@ -79,6 +79,7 @@
|
||||||
loop_control:
|
loop_control:
|
||||||
loop_var: outer_item
|
loop_var: outer_item
|
||||||
when: templates_Defined ==1 and outer_item.value.generic is not defined
|
when: templates_Defined ==1 and outer_item.value.generic is not defined
|
||||||
|
register: fileChanged
|
||||||
tags: always
|
tags: always
|
||||||
|
|
||||||
#Copy templates form a generic dir, allow ansible to search
|
#Copy templates form a generic dir, allow ansible to search
|
||||||
|
@ -90,6 +91,7 @@
|
||||||
loop_control:
|
loop_control:
|
||||||
loop_var: outer_item
|
loop_var: outer_item
|
||||||
when: templates_Defined ==1 and outer_item.value.generic is defined
|
when: templates_Defined ==1 and outer_item.value.generic is defined
|
||||||
|
register: fileChanged
|
||||||
tags: always
|
tags: always
|
||||||
|
|
||||||
- name: Append templated files to the mapping list
|
- name: Append templated files to the mapping list
|
||||||
|
@ -131,6 +133,7 @@
|
||||||
loop_control:
|
loop_control:
|
||||||
loop_var: outer_item
|
loop_var: outer_item
|
||||||
when: files_Defined == 1 and outer_item.value.generic is not defined and outer_item.value.src_text is not defined
|
when: files_Defined == 1 and outer_item.value.generic is not defined and outer_item.value.src_text is not defined
|
||||||
|
register: fileChanged
|
||||||
tags: always
|
tags: always
|
||||||
#Copy files from a generic dir, allow ansible to search
|
#Copy files from a generic dir, allow ansible to search
|
||||||
- name: "Generic File mappings for {{ container_Name }}"
|
- name: "Generic File mappings for {{ container_Name }}"
|
||||||
|
@ -141,6 +144,7 @@
|
||||||
loop_control:
|
loop_control:
|
||||||
loop_var: outer_item
|
loop_var: outer_item
|
||||||
when: files_Defined == 1 and outer_item.value.generic is defined and outer_item.value.src_text is not defined
|
when: files_Defined == 1 and outer_item.value.generic is defined and outer_item.value.src_text is not defined
|
||||||
|
register: fileChanged
|
||||||
tags: always
|
tags: always
|
||||||
#Create files based on the suplied src_text param
|
#Create files based on the suplied src_text param
|
||||||
- name: "Text based file creation for {{ container_Name }}"
|
- name: "Text based file creation for {{ container_Name }}"
|
||||||
|
@ -151,6 +155,7 @@
|
||||||
loop_control:
|
loop_control:
|
||||||
loop_var: outer_item
|
loop_var: outer_item
|
||||||
when: files_Defined == 1 and outer_item.value.src_text is defined
|
when: files_Defined == 1 and outer_item.value.src_text is defined
|
||||||
|
register: fileChanged
|
||||||
tags: always
|
tags: always
|
||||||
|
|
||||||
- name: Append static remote files to the mapping list
|
- name: Append static remote files to the mapping list
|
||||||
|
@ -192,6 +197,7 @@
|
||||||
loop_control:
|
loop_control:
|
||||||
loop_var: outer_item
|
loop_var: outer_item
|
||||||
when: local_Defined == 1
|
when: local_Defined == 1
|
||||||
|
register: fileChanged
|
||||||
tags: always
|
tags: always
|
||||||
#----------------------------------/LOCAL----------------------------------
|
#----------------------------------/LOCAL----------------------------------
|
||||||
|
|
||||||
|
@ -208,8 +214,15 @@
|
||||||
tags: always
|
tags: always
|
||||||
#----------------------------------/Check ENV----------------------------------
|
#----------------------------------/Check ENV----------------------------------
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
|
- name: Restart the container if fileChanged is defined
|
||||||
|
set_fact: item.value.restart='yes'
|
||||||
|
when: fileChanged is defined
|
||||||
|
|
||||||
|
=======
|
||||||
|
|
||||||
#TODO - If a confile file or volume is changed, trestart the container
|
#TODO - If a confile file or volume is changed, trestart the container
|
||||||
|
>>>>>>> 4f62020d89990a6ff0b6ec67f986f613e77f308f
|
||||||
|
|
||||||
- name: "Container {{ container_Name }}"
|
- name: "Container {{ container_Name }}"
|
||||||
become: yes
|
become: yes
|
||||||
|
|
Loading…
Reference in New Issue