Skip to content

Commit 9060664

Browse files
committed
fix: Enforce service restart
1 parent 244aa64 commit 9060664

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.ansible-lint

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ skip_list:
55
- empty-lines
66
- fqcn-builtins
77
- package-latest
8+
- 'name[template]' # Jinja templates should only be at the end of ‘name’.

tasks/main.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
- name: Install as service
66
include_tasks: service.yml
77

8-
- name: Flush handlers before wait
9-
meta: flush_handlers
10-
118
- name: Wait until appication {{ springboot_application_name }} is available ({{ springboot_application_url }})
129
uri:
1310
url: "{{ springboot_application_url }}/actuator/health"

tasks/service.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,8 @@
1616
group: "{{ springboot_group }}"
1717
notify:
1818
- Restart application
19+
20+
- name: Restart service
21+
ansible.builtin.service:
22+
name: "{{ springboot_application_name }}"
23+
state: restarted

0 commit comments

Comments
 (0)