xoxys.k3s/tasks/iscsi.yml
Robert Kaussow b8f4148994
All checks were successful
continuous-integration/drone/push Build is passing
feat: add option to prepare iscsid to support storage providers (#2)
2023-01-10 08:42:13 +01:00

27 lines
597 B
YAML

---
- block:
- name: Ensure iscsi is installed
package:
name: "{{ item }}"
state: present
loop:
- iscsi-initiator-utils
- name: Configure iscsi-initiator
copy:
content: "InitiatorName=$(/sbin/iscsi-iname)"
dest: /etc/iscsi/initiatorname.iscsi
owner: root
group: root
mode: 0644
notify: __iscsid_restart
- name: Ensure iscsid service is up and running
service:
name: iscsid
daemon_reload: True
enabled: True
state: started
become: True
become_user: root