The 'register:' meta is not templatable
This commit is contained in:
parent
a484411272
commit
946a03f23b
|
@ -5,4 +5,3 @@
|
||||||
- name: Restart the springboot webservice
|
- name: Restart the springboot webservice
|
||||||
service: name={{ item.name }} state=restarted
|
service: name={{ item.name }} state=restarted
|
||||||
with_items: '{{ springboot_apps }}'
|
with_items: '{{ springboot_apps }}'
|
||||||
when: restart_{{ item.name }} is defined
|
|
||||||
|
|
|
@ -23,7 +23,6 @@
|
||||||
- name: Download the {{ item.name }} artifact from {{ maven_baseurl }}
|
- name: Download the {{ item.name }} artifact from {{ maven_baseurl }}
|
||||||
maven_artifact: artifact_id={{ item.maven_id }} version={{ item.maven_version | default('latest') }} group_id={{ item.maven_group_id }} extension={{ item.maven_extension | default('war') }} repository_url={{ item.maven_repo_url }} dest={{ item.install_dir }}/{{ item.name }}.{{ item.maven_extension | default('war') }} verify_checksum=always mode='0644'
|
maven_artifact: artifact_id={{ item.maven_id }} version={{ item.maven_version | default('latest') }} group_id={{ item.maven_group_id }} extension={{ item.maven_extension | default('war') }} repository_url={{ item.maven_repo_url }} dest={{ item.install_dir }}/{{ item.name }}.{{ item.maven_extension | default('war') }} verify_checksum=always mode='0644'
|
||||||
with_items: '{{ springboot_apps }}'
|
with_items: '{{ springboot_apps }}'
|
||||||
register: 'restart_{{ item.name }}'
|
|
||||||
when: item.maven_repo_url is defined
|
when: item.maven_repo_url is defined
|
||||||
notify: Restart the springboot webservice
|
notify: Restart the springboot webservice
|
||||||
|
|
||||||
|
@ -40,7 +39,6 @@
|
||||||
- name: Install the {{ item.name }} configuration starting from the template
|
- name: Install the {{ item.name }} configuration starting from the template
|
||||||
template: src=/var/tmp/.{{ item.app_conf_file }}.j2 dest={{ item.install_dir }}/{{ item.app_conf_file }} owner=root group={{ item.user }} mode=0440
|
template: src=/var/tmp/.{{ item.app_conf_file }}.j2 dest={{ item.install_dir }}/{{ item.app_conf_file }} owner=root group={{ item.user }} mode=0440
|
||||||
with_items: '{{ springboot_apps }}'
|
with_items: '{{ springboot_apps }}'
|
||||||
register: 'restart_{{ item.name }}'
|
|
||||||
when: item.app_conf_file is defined
|
when: item.app_conf_file is defined
|
||||||
notify: Restart the springboot webservice
|
notify: Restart the springboot webservice
|
||||||
|
|
||||||
|
@ -63,7 +61,6 @@
|
||||||
- name: Install the {{ item.name }} configuration starting from the template
|
- name: Install the {{ item.name }} configuration starting from the template
|
||||||
template: src=/var/tmp/.{{ item.logback_file }}.j2 dest={{ item.install_dir }}/{{ item.logback_file }} owner=root group={{ item.user }} mode=0440
|
template: src=/var/tmp/.{{ item.logback_file }}.j2 dest={{ item.install_dir }}/{{ item.logback_file }} owner=root group={{ item.user }} mode=0440
|
||||||
with_items: '{{ springboot_apps }}'
|
with_items: '{{ springboot_apps }}'
|
||||||
register: 'restart_{{ item.name }}'
|
|
||||||
when: item.logback_file is defined
|
when: item.logback_file is defined
|
||||||
notify: Restart the springboot webservice
|
notify: Restart the springboot webservice
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue