xoxys.k3s/tasks/iscsi.yml
Robert Kaussow 5cfc5bc86c
Some checks failed
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/test Pipeline failed
ci/woodpecker/push/docs unknown status
ci/woodpecker/push/notify Pipeline was successful
ci: migrate to woodpecker
2024-02-18 21:09:43 +01:00

24 lines
523 B
YAML

---
- name: Ensure iscsi is installed
ansible.builtin.package:
name: "{{ item }}"
state: present
loop:
- iscsi-initiator-utils
- name: Configure iscsi-initiator
ansible.builtin.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
ansible.builtin.service:
name: iscsid
daemon_reload: True
enabled: True
state: started