3917bfd364
* Tested only on distributed at this check-in * Also **temporarily** installing `patch` on the infra hosts, needed for an os_nova patch that will ultimately be removed. It isn't clear from this patch though, because the file init-nodes.yml which installs packages was renamed to tasks/init-nodes.yml. * There are some drawbacks to doing it this way, but the playbooks are serving a single purpose and don't need to be catch-all infra tooling
18 lines
434 B
YAML
18 lines
434 B
YAML
---
|
|
# Setup the storage host. Install targetcli and make sure any volumes are mounted.
|
|
- name: Loading Variables from OS Common
|
|
import_tasks: tasks/common_vars.yml
|
|
|
|
- name: Install required packages
|
|
become: true
|
|
dnf:
|
|
name: targetcli
|
|
notify: enable_targetd
|
|
|
|
- name: Create volume group for cinder
|
|
lvg:
|
|
pv_options: --metadatasize=2048
|
|
pvs: "{{ cinder_pv_device | default('/dev/vdb') }}"
|
|
vg: cinder-volumes
|
|
...
|