f9bfb7f0bc
Starting this new role as a copy of the os_cinder role due to the similarities between the two openstack projects. This role will deploy manila api, scheduler and share services on ubuntu with the default local LVM backed NFS scenario. Change-Id: Ibda073e5aaa6df3b254961d4aed3a8d5961f3432
19 lines
468 B
YAML
19 lines
468 B
YAML
---
|
|
- name: Set iSCSI InitiatorName
|
|
hosts: storage1
|
|
remote_user: root
|
|
gather_facts: false
|
|
any_errors_fatal: true
|
|
tasks:
|
|
- name: Get iSCSI InitiatorName
|
|
command: /usr/sbin/iscsi-iname
|
|
register: initiator_name
|
|
tags:
|
|
- skip_ansible_lint
|
|
|
|
- name: Write iSCSI InitiatorName
|
|
lineinfile:
|
|
path: /etc/iscsi/initiatorname.iscsi
|
|
regexp: '^InitiatorName='
|
|
line: "InitiatorName={{ initiator_name.stdout }}"
|