Added iSCSI configuration for rift
This commit is contained in:
parent
af34c97ad4
commit
4f574336b7
@ -4,3 +4,4 @@
|
||||
- common
|
||||
- crypto
|
||||
- libvirthost
|
||||
- iscsitarget
|
||||
|
6
roles/iscsitarget/files/etc/tgt/conf.d/forge_iscsi.conf
Normal file
6
roles/iscsitarget/files/etc/tgt/conf.d/forge_iscsi.conf
Normal file
@ -0,0 +1,6 @@
|
||||
<target iqn.2019-11.plantroon.com:lun1>
|
||||
backing-store /dev/haze/forge
|
||||
incominguser rift-in raij8IevMoh8Uiha
|
||||
outgoinguser haze-out Shahpie5iuNg3oor
|
||||
</target>
|
||||
|
27
roles/iscsitarget/tasks/main.yml
Normal file
27
roles/iscsitarget/tasks/main.yml
Normal file
@ -0,0 +1,27 @@
|
||||
---
|
||||
- name: install packages
|
||||
apt:
|
||||
state: latest
|
||||
pkg:
|
||||
- tgt
|
||||
install_recommends: no
|
||||
force_apt_get: yes
|
||||
become: yes
|
||||
|
||||
- name: copy config files, scripts and services
|
||||
copy:
|
||||
src: "{{ item }}"
|
||||
dest: "/{{ item }}"
|
||||
force: yes
|
||||
mode: preserve
|
||||
become: yes
|
||||
with_items:
|
||||
- etc/tgt/conf.d/forge_iscsi.conf
|
||||
|
||||
- name: enable and restart service
|
||||
systemd:
|
||||
name: tgt
|
||||
state: restarted
|
||||
enabled: yes
|
||||
become: yes
|
||||
|
Loading…
Reference in New Issue
Block a user