Files
Workstation/fedora/ansible/iscsi_freenas/tasks/main.yml
ducoterra 494e91f293 Split fedora and manjaro playbooks
Split playbooks to better accomodate development of both.
2022-04-03 16:48:30 -04:00

29 lines
729 B
YAML

---
# tasks file for ansible/arch_iscsi
# Sync and update Pacman
- name: Perform a discovery on freenas.dnet and show available target nodes
community.general.open_iscsi:
show_nodes: yes
discover: yes
portal: freenas.dnet
become: yes
- name: Enable automatic login for freenas.dnet
community.general.open_iscsi:
login: yes
portal: freenas.dnet
auto_portal_startup: yes
target: iqn.2022-02.freenas.dnet:framework-backup
become: yes
- name: Ensure iscsi service started
ansible.builtin.systemd:
name: iscsi
state: started
enabled: yes
become: yes
- name: Ensure iscsid service started
ansible.builtin.systemd:
name: iscsid
state: started
enabled: yes
become: yes