Split zuul service state into own task
It is possible we want to enable a service on boot, but don't want to ensure it is currently running. This splits our systemd tasks into 2 different checks now. Change-Id: Ic4d9cd8f770f72c262a099dddd6372c155bae133 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
c1d6259f95
commit
9ecd092e43
@ -323,46 +323,96 @@
|
||||
daemon_reload: "{{ zuul_service_zuul_executor_daemon_reload }}"
|
||||
enabled: "{{ zuul_service_zuul_executor_enabled }}"
|
||||
name: "{{ zuul_service_zuul_executor_name }}"
|
||||
state: "{{ zuul_service_zuul_executor_state }}"
|
||||
register: zuul_service_zuul_executor
|
||||
when: zuul_service_zuul_executor_manage
|
||||
|
||||
- name: Set zuul-executor service state
|
||||
become: true
|
||||
systemd:
|
||||
daemon_reload: "{{ zuul_service_zuul_executor_daemon_reload }}"
|
||||
name: "{{ zuul_service_zuul_executor_name }}"
|
||||
state: "{{ zuul_service_zuul_executor_state }}"
|
||||
register: zuul_service_zuul_executor_state_info
|
||||
when:
|
||||
- zuul_service_zuul_executor_manage
|
||||
- zuul_service_zuul_executor_state in ['reloaded', 'restarted', 'started', 'stopped']
|
||||
|
||||
- name: Enable zuul-fingergw service
|
||||
become: true
|
||||
systemd:
|
||||
daemon_reload: "{{ zuul_service_zuul_fingergw_daemon_reload }}"
|
||||
enabled: "{{ zuul_service_zuul_fingergw_enabled }}"
|
||||
name: "{{ zuul_service_zuul_fingergw_name }}"
|
||||
state: "{{ zuul_service_zuul_fingergw_state }}"
|
||||
register: zuul_service_zuul_fingergw
|
||||
when: zuul_service_zuul_fingergw_manage
|
||||
|
||||
- name: Set zuul-fingergw service state
|
||||
become: true
|
||||
systemd:
|
||||
daemon_reload: "{{ zuul_service_zuul_fingergw_daemon_reload }}"
|
||||
name: "{{ zuul_service_zuul_fingergw_name }}"
|
||||
state: "{{ zuul_service_zuul_fingergw_state }}"
|
||||
register: zuul_service_zuul_fingergw_state_info
|
||||
when:
|
||||
- zuul_service_zuul_fingergw_manage
|
||||
- zuul_service_zuul_fingergw_state in ['reloaded', 'restarted', 'started', 'stopped']
|
||||
|
||||
- name: Enable zuul-merger service
|
||||
become: true
|
||||
systemd:
|
||||
daemon_reload: "{{ zuul_service_zuul_merger_daemon_reload }}"
|
||||
enabled: "{{ zuul_service_zuul_merger_enabled }}"
|
||||
name: "{{ zuul_service_zuul_merger_name }}"
|
||||
state: "{{ zuul_service_zuul_merger_state }}"
|
||||
register: zuul_service_zuul_merger
|
||||
when: zuul_service_zuul_merger_manage
|
||||
|
||||
- name: Set zuul-merger service state
|
||||
become: true
|
||||
systemd:
|
||||
daemon_reload: "{{ zuul_service_zuul_merger_daemon_reload }}"
|
||||
name: "{{ zuul_service_zuul_merger_name }}"
|
||||
state: "{{ zuul_service_zuul_merger_state }}"
|
||||
register: zuul_service_zuul_merger_state_info
|
||||
when:
|
||||
- zuul_service_zuul_merger_manage
|
||||
- zuul_service_zuul_merger_state in ['reloaded', 'restarted', 'started', 'stopped']
|
||||
|
||||
- name: Enable zuul-scheduler service
|
||||
become: true
|
||||
systemd:
|
||||
daemon_reload: "{{ zuul_service_zuul_scheduler_daemon_reload }}"
|
||||
enabled: "{{ zuul_service_zuul_scheduler_enabled }}"
|
||||
name: "{{ zuul_service_zuul_scheduler_name }}"
|
||||
state: "{{ zuul_service_zuul_scheduler_state }}"
|
||||
register: zuul_service_zuul_scheduler
|
||||
when: zuul_service_zuul_scheduler_manage
|
||||
|
||||
- name: Set zuul-scheduler service state
|
||||
become: true
|
||||
systemd:
|
||||
daemon_reload: "{{ zuul_service_zuul_scheduler_daemon_reload }}"
|
||||
name: "{{ zuul_service_zuul_scheduler_name }}"
|
||||
state: "{{ zuul_service_zuul_scheduler_state }}"
|
||||
register: zuul_service_zuul_scheduler_state_info
|
||||
when:
|
||||
- zuul_service_zuul_scheduler_manage
|
||||
- zuul_service_zuul_scheduler_state in ['reloaded', 'restarted', 'started', 'stopped']
|
||||
|
||||
- name: Enable zuul-web service
|
||||
become: true
|
||||
systemd:
|
||||
daemon_reload: "{{ zuul_service_zuul_web_daemon_reload }}"
|
||||
enabled: "{{ zuul_service_zuul_web_enabled }}"
|
||||
name: "{{ zuul_service_zuul_web_name }}"
|
||||
state: "{{ zuul_service_zuul_web_state }}"
|
||||
register: zuul_service_zuul_web
|
||||
when: zuul_service_zuul_web_manage
|
||||
|
||||
- name: Set zuul-web service state
|
||||
become: true
|
||||
systemd:
|
||||
daemon_reload: "{{ zuul_service_zuul_web_daemon_reload }}"
|
||||
name: "{{ zuul_service_zuul_web_name }}"
|
||||
state: "{{ zuul_service_zuul_web_state }}"
|
||||
register: zuul_service_zuul_web_state_info
|
||||
when:
|
||||
- zuul_service_zuul_web_manage
|
||||
- zuul_service_zuul_web_state in ['reloaded', 'restarted', 'started', 'stopped']
|
||||
|
Loading…
Reference in New Issue
Block a user