Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0-fr1] Stop and disable iscsi-starter.service #847

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading