fix variables
This commit is contained in:
parent
155f01a070
commit
ea817dc749
@ -1,11 +1,11 @@
|
|||||||
---
|
---
|
||||||
- block:
|
- block:
|
||||||
- name: Create volume group 'mongodb_lvm_vg'
|
- name: Create volume group '{{ mongodb_lvm_vg }}'
|
||||||
lvg:
|
lvg:
|
||||||
vg: "{{ mongodb_lvm_vg }}"
|
vg: "{{ mongodb_lvm_vg }}"
|
||||||
pvs: "{{ mongodb_lvm_pvs|join(',') }}"
|
pvs: "{{ mongodb_lvm_pvs|join(',') }}"
|
||||||
|
|
||||||
- name: Create logical volume 'mongodb_lvm_lv'
|
- name: Create logical volume '{{ mongodb_lvm_lv }}'
|
||||||
lvol:
|
lvol:
|
||||||
vg: "{{ mongodb_lvm_vg }}"
|
vg: "{{ mongodb_lvm_vg }}"
|
||||||
lv: "{{ mongodb_lvm_lv }}"
|
lv: "{{ mongodb_lvm_lv }}"
|
||||||
@ -16,17 +16,10 @@
|
|||||||
fstype: "{{ mongodb_lvm_fstype }}"
|
fstype: "{{ mongodb_lvm_fstype }}"
|
||||||
dev: "/dev/mapper/{{ mongodb_lvm_vg }}-{{ mongodb_lvm_lv }}"
|
dev: "/dev/mapper/{{ mongodb_lvm_vg }}-{{ mongodb_lvm_lv }}"
|
||||||
|
|
||||||
- name: Mount volume to 'mongodb_storage_dbpath'
|
- name: Mount volume to '{{ mongodb_storage_dbpath }}'
|
||||||
mount:
|
mount:
|
||||||
path: "{{ mongodb_storage_dbpath }}"
|
path: "{{ mongodb_storage_dbpath }}"
|
||||||
src: "/dev/mapper/{{ mongodb_lvm_vg }}-{{ mongodb_lvm_lv }}"
|
src: "/dev/mapper/{{ mongodb_lvm_vg }}-{{ mongodb_lvm_lv }}"
|
||||||
fstype: "{{ mongodb_lvm_fstype }}"
|
fstype: "{{ mongodb_lvm_fstype }}"
|
||||||
state: mounted
|
state: mounted
|
||||||
|
|
||||||
- name: Change permissions for mountpoint
|
|
||||||
file:
|
|
||||||
path: "{{ mongodb_storage_dbpath }}"
|
|
||||||
owner: "{{ mongodb_user }}"
|
|
||||||
group: "{{ mongodb_group }}"
|
|
||||||
mode: 0750
|
|
||||||
become: True
|
become: True
|
||||||
|
Loading…
Reference in New Issue
Block a user