Merge "Disable iscsi.service to avoid iscsid on host from getting started"

This commit is contained in:
Zuul 2019-06-17 14:13:32 +00:00 committed by Gerrit Code Review
commit b136245f20
1 changed files with 7 additions and 0 deletions

View File

@ -111,6 +111,13 @@ outputs:
- name: Stop and disable iscsid.socket service
service: name=iscsid.socket state=stopped enabled=no
when: stat_iscsid_socket.stat.exists
- name: Check if iscsi.service is enabled
command: systemctl is-enabled --quiet iscsi.service
ignore_errors: True
register: iscsi_service_enabled_result
- name: Stop iscsi.service
service: name=iscsi.service state=stopped enabled=no
when: iscsi_service_enabled_result.rc == 0
upgrade_tasks: []
post_upgrade_tasks:
- when: step|int == 1