mirror of https://github.com/ceph/ceph-ansible.git
Load a variable file for devices parrition
load device partition file in directory host_vars 1) if the user define host_vars/hostname.yml load the devices partition on this file. 2) otherwise load host_vars/default.yml for defaultpull/1336/head
parent
421d1a2853
commit
2967772f6a
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
# This playbook will make custom partition layout for your osd hosts.
|
||||
# This playbook will make custom layout for your osd hosts.
|
||||
# You should define `devices` variable for every host.
|
||||
#
|
||||
# For example, in host_vars/hostname1
|
||||
|
@ -30,6 +30,13 @@
|
|||
- "{{ osd_group_name }}"
|
||||
|
||||
tasks:
|
||||
|
||||
- name: Load a variable file for devices partition
|
||||
include_vars: "{{ item }}"
|
||||
with_first_found:
|
||||
- "host_vars/{{ ansible_hostname }}.yml"
|
||||
- "host_vars/default.yml"
|
||||
|
||||
- name: install sgdisk(gdisk)
|
||||
package:
|
||||
name: gdisk
|
||||
|
|
Loading…
Reference in New Issue