Simplify and consolidate scripts

This commit is contained in:
ducoterra
2022-02-05 22:30:44 -05:00
parent 1370897735
commit 8b3002316f
236 changed files with 444 additions and 1970 deletions

View File

@@ -0,0 +1,39 @@
---
# tasks file for ansible/arch_iscsi
# Sync and update Pacman
- name: Sync and update Pacman
community.general.pacman:
update_cache: yes
upgrade: yes
become: yes
tags: update
- name: open-iscsi installed
community.general.pacman:
name: open-iscsi
state: present
become: yes
- 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: true
portal: freenas.dnet
auto_portal_startup: true
target: iqn.2022-02.freenas.dnet:manjaro-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