mirror of https://github.com/ceph/ceph-ansible.git
ceph-handler: remove iscsigws restart scripts
The iscsigws restart scripts for tcmu-runner and rbd-target-{api,gw}
services only call the systemctl restart command.
We don't really need to copy a shell script to do it when we can use
the ansible service module instead.
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit cbe79428e6
)
pull/5596/head
parent
d408c75d76
commit
cce042c65b
|
@ -3,16 +3,10 @@
|
||||||
set_fact:
|
set_fact:
|
||||||
_rbd_target_api_handler_called: True
|
_rbd_target_api_handler_called: True
|
||||||
|
|
||||||
- name: copy rbd-target-api restart script
|
|
||||||
template:
|
|
||||||
src: restart_rbd_target_api.sh.j2
|
|
||||||
dest: /tmp/restart_rbd_target_api.sh
|
|
||||||
owner: root
|
|
||||||
group: root
|
|
||||||
mode: 0750
|
|
||||||
|
|
||||||
- name: restart rbd-target-api
|
- name: restart rbd-target-api
|
||||||
command: /usr/bin/env bash /tmp/restart_rbd_target_api.sh
|
service:
|
||||||
|
name: rbd-target-api
|
||||||
|
state: restarted
|
||||||
when:
|
when:
|
||||||
- ceph_rbd_target_api_stat.get('rc') == 0
|
- ceph_rbd_target_api_stat.get('rc') == 0
|
||||||
- hostvars[item]['_rbd_target_api_handler_called'] | default(False) | bool
|
- hostvars[item]['_rbd_target_api_handler_called'] | default(False) | bool
|
||||||
|
@ -29,16 +23,10 @@
|
||||||
set_fact:
|
set_fact:
|
||||||
_rbd_target_gw_handler_called: True
|
_rbd_target_gw_handler_called: True
|
||||||
|
|
||||||
- name: copy rbd-target-gw restart script
|
|
||||||
template:
|
|
||||||
src: restart_rbd_target_gw.sh.j2
|
|
||||||
dest: /tmp/restart_rbd_target_gw.sh
|
|
||||||
owner: root
|
|
||||||
group: root
|
|
||||||
mode: 0750
|
|
||||||
|
|
||||||
- name: restart rbd-target-gw
|
- name: restart rbd-target-gw
|
||||||
command: /usr/bin/env bash /tmp/restart_rbd_target_gw.sh
|
service:
|
||||||
|
name: rbd-target-gw
|
||||||
|
state: restarted
|
||||||
when:
|
when:
|
||||||
- ceph_rbd_target_gw_stat.get('rc') == 0
|
- ceph_rbd_target_gw_stat.get('rc') == 0
|
||||||
- hostvars[item]['_rbd_target_gw_handler_called'] | default(False) | bool
|
- hostvars[item]['_rbd_target_gw_handler_called'] | default(False) | bool
|
||||||
|
|
|
@ -3,16 +3,10 @@
|
||||||
set_fact:
|
set_fact:
|
||||||
_tcmu_runner_handler_called: True
|
_tcmu_runner_handler_called: True
|
||||||
|
|
||||||
- name: copy tcmu-runner restart script
|
|
||||||
template:
|
|
||||||
src: restart_tcmu_runner.sh.j2
|
|
||||||
dest: /tmp/restart_tcmu_runner.sh
|
|
||||||
owner: root
|
|
||||||
group: root
|
|
||||||
mode: 0750
|
|
||||||
|
|
||||||
- name: restart tcmu-runner
|
- name: restart tcmu-runner
|
||||||
command: /usr/bin/env bash /tmp/restart_tcmu_runner.sh
|
service:
|
||||||
|
name: tcmu-runner
|
||||||
|
state: restarted
|
||||||
when:
|
when:
|
||||||
- ceph_tcmu_runner_stat.get('rc') == 0
|
- ceph_tcmu_runner_stat.get('rc') == 0
|
||||||
- hostvars[item]['_tcmu_runner_handler_called'] | default(False) | bool
|
- hostvars[item]['_tcmu_runner_handler_called'] | default(False) | bool
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
systemctl restart rbd-target-api
|
|
|
@ -1,3 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
systemctl restart rbd-target-gw
|
|
|
@ -1,3 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
systemctl restart tcmu-runner
|
|
Loading…
Reference in New Issue