Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

Commit

Permalink
Merge pull request #37 from humio/grant/handler-adjustment
Browse files Browse the repository at this point in the history
Fix upgrade handlers
  • Loading branch information
schofield authored Dec 29, 2020
2 parents a3438ef + 298a811 commit 47951be
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
listen: Restart Humio
when: humio_upgrade is not defined

- name: Restart Humio service
- name: Restart Humio service - updgrade mode
throttle: "{{ deploy_concurrency | int }}"
service:
name: "humio@{{ item }}"
Expand All @@ -34,17 +34,17 @@
- name: Stop all Humio instances - upgrade mode
service:
name: "humio@{{ item }}"
state: restarted
state: stopped
daemon_reload: yes
loop: "{{ range(0, humio_processes|int)|list }}"
listen: Restart Humio
when: humio_upgrade is defined and humio_shutdown

- name: Started all Humio instances - upgrade mode
- name: Start all Humio instances - upgrade mode
service:
name: "humio@{{ item }}"
state: restarted
state: started
daemon_reload: yes
loop: "{{ range(0, humio_processes|int)|list }}"
listen: Restart Humio
when: humio_upgrade is defined and not humio_shutdown
when: humio_upgrade is defined and humio_shutdown

0 comments on commit 47951be

Please sign in to comment.