TASK [ansible-manage-lvm : manage_lvm | creating new LVM volume group(s)] ******
 [0;31mfatal: [grafana]: FAILED! => {"msg": "'config_lv_name' is undefined"} [0m
 [0;31m [0m





I am gettin the above error when I am trying to create and procure lvm 
stuff on my new environment. I want to mention all the variables as a part 
of host_vars like below:

# lvm variablesvg_name: "VolGroup01"config_lv_name: "LogVol10"data_lv_name: 
"LogVol11"lvm_disk_name: "/dev/nvme2n1"config_mntp: "/opt/tools"data_mntp: 
"/data"config_lv_size: "50G"data_lv_size: "100G"



I am trying to use them as below :


lvm_groups:      - vgname: "{{ vg_name }}"        disks:           - "{{ 
lvm_disk_name }}"        create: true        lvnames:          - lvname: "{{ 
config_lv_name }}"            size: "{{ config_lv_size }}"            create: 
true  ## Mention "false" in case of lvm removal            filesystem: xfs      
      mount: true            mntp: "{{ config_mntp }}"                      - 
lvname: "LogVol11"            size: "{{ data_lv_size }}"            create: 
true  ## Mention "false" in case of lvm removal            filesystem: xfs      
      mount: true            mntp: "{{ data_mntp }}"    manage_lvm: true













On Wednesday, March 4, 2020 at 7:10:36 PM UTC+5:30, Sagar Mujumale wrote:
>
> Whats the problem? where do you stuck. Please post more information.
>
> On Wednesday, 4 March 2020 18:54:29 UTC+5:30, Vishal Bobade wrote:
>>
>> I have created multiple inventory files specific to dev , qa etc env. 
>> under inventory dir.
>>
>> inventory/dev.domain.net.yml 
>>
>> Any suggestions, would help as I am stucked here..
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/6de80b67-00ce-484b-847d-99c8d850eea3%40googlegroups.com.

Reply via email to