[ansible-project] Re: Unable to access variables from host_vars dir however can access the same variables when specified in roles/defaults/mail.yml

2020-03-06 Thread klingac
Are you using `--limit` param for ansible-playbook?

Dne středa 4. března 2020 14:49:44 UTC+1 Vishal Bobade napsal(a):
>
>
> 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: truelvnames:  - lvname: "{{ 
> config_lv_name }}"size: "{{ config_lv_size }}"create: 
> true  ## Mention "false" in case of lvm removalfilesystem: xfs
> mount: truemntp: "{{ config_mntp }}"  
> - lvname: "LogVol11"size: "{{ data_lv_size }}"create: 
> true  ## Mention "false" in case of lvm removalfilesystem: xfs
> mount: truemntp: "{{ 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/f6e8f0a5-8f17-4c69-9fde-3397cc22df59%40googlegroups.com.


Re: [ansible-project] Re: Unable to access variables from host_vars dir however can access the same variables when specified in roles/defaults/mail.yml

2020-03-05 Thread anil gouranna
i think you will have to provide the path using vars_files in the playbook
and then run.

On Wed, Mar 4, 2020 at 9:09 PM Vishal Bobade 
wrote:

> @sagarmujumale - any idea on this?
>
> On Wednesday, March 4, 2020 at 7:19:44 PM UTC+5:30, Vishal Bobade wrote:
>>
>>
>> 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: truelvnames:  - lvname: "{{ 
>> config_lv_name }}"size: "{{ config_lv_size }}"
>> create: true  ## Mention "false" in case of lvm removal
>> filesystem: xfsmount: truemntp: "{{ config_mntp }}"  
>> - lvname: "LogVol11"size: "{{ data_lv_size 
>> }}"create: true  ## Mention "false" in case of lvm removal   
>>  filesystem: xfsmount: truemntp: "{{ 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/35253e9a-06a1-4392-ba40-4747ae755187%40googlegroups.com
> 
> .
>


-- 
Thanks And Regards
   Anil A Gouranna

-- 
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/CALEfPTWFkim3SZF3NExddf8hK2BQjk%2BUk5JuONpKuRc4Nsw3tw%40mail.gmail.com.


[ansible-project] Re: Unable to access variables from host_vars dir however can access the same variables when specified in roles/defaults/mail.yml

2020-03-04 Thread Vishal Bobade
@sagarmujumale - any idea on this?

On Wednesday, March 4, 2020 at 7:19:44 PM UTC+5:30, Vishal Bobade wrote:
>
>
> 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: truelvnames:  - lvname: "{{ 
> config_lv_name }}"size: "{{ config_lv_size }}"create: 
> true  ## Mention "false" in case of lvm removalfilesystem: xfs
> mount: truemntp: "{{ config_mntp }}"  
> - lvname: "LogVol11"size: "{{ data_lv_size }}"create: 
> true  ## Mention "false" in case of lvm removalfilesystem: xfs
> mount: truemntp: "{{ 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/35253e9a-06a1-4392-ba40-4747ae755187%40googlegroups.com.


[ansible-project] Re: Unable to access variables from host_vars dir however can access the same variables when specified in roles/defaults/mail.yml

2020-03-04 Thread Vishal Bobade


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: truelvnames:  - lvname: "{{ 
config_lv_name }}"size: "{{ config_lv_size }}"create: 
true  ## Mention "false" in case of lvm removalfilesystem: xfs  
  mount: truemntp: "{{ config_mntp }}"  - 
lvname: "LogVol11"size: "{{ data_lv_size }}"create: 
true  ## Mention "false" in case of lvm removalfilesystem: xfs  
  mount: truemntp: "{{ 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.


[ansible-project] Re: Unable to access variables from host_vars dir however can access the same variables when specified in roles/defaults/mail.yml

2020-03-04 Thread Sagar Mujumale
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/cb3ddba8-8a6b-4682-92b2-a8f8c22dcfe1%40googlegroups.com.