Skip to content

Commit

Permalink
Merge pull request #846 from knoha-rh/disable-iscsi-starter
Browse files Browse the repository at this point in the history
Stop and disable iscsi-starter.service
  • Loading branch information
openshift-merge-bot[bot] authored Dec 14, 2024
2 parents 0874fc3 + 8d723ce commit ef3c633
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions roles/edpm_iscsid/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,15 @@
- name: Gather services facts
ansible.builtin.service_facts:

- name: Stop iscsi.service
- name: Stop and disable iscsi.service and iscsi-starter.service
ansible.builtin.systemd:
name: iscsi.service
name: "{{ item }}"
state: stopped
enabled: false
when:
- ansible_facts.services["iscsi.service"] is defined
- ansible_facts.services["iscsi.service"]["status"] != "not-found"
- ansible_facts.services["iscsi.service"]["status"] == "enabled"
- ansible_facts.services[item] is defined
- ansible_facts.services[item]["status"] != "not-found"
- ansible_facts.services[item]["status"] == "enabled"
loop:
- iscsi.service
- iscsi-starter.service

0 comments on commit ef3c633

Please sign in to comment.