Re: [ansible-project] Ansible not accepting When condition

2020-07-04 Thread T. JENISHA
Thankyou it was insightful to learn about other tools Best Regards
Jenisha T
Whatsapp: +91 07598087866





On Thu, 2 Jul 2020 at 20:35, Dick Visser  wrote:

>
> https://docs.ansible.com/ansible/latest/community/other_tools_and_programs.html
>
>
> On Thu, 2 Jul 2020 at 16:35, T. JENISHA  wrote:
>
>> Thankyou I fixed it. Is there any syntax highlighter recommended for
>> Ansible
>>
>>
>> Best Regards
>> Jenisha T
>> Whatsapp: +91 07598087866
>>
>>
>>
>>
>>
>> On Thu, 2 Jul 2020 at 19:27, Srinivas Naram 
>> wrote:
>>
>>> when is indented too much. Put it at the level where module name is
>>> mentioned.
>>>
>>> ---
>>> - name: using multiple conditions
>>>   gather_facts: yes
>>>   hosts: localhost
>>>   connection: local
>>>   tasks:
>>> - package:
>>> name: httpd
>>> state: installed
>>>   when:
>>> - ansible_distribution == "RedHat"
>>> - ansible_memfree_mb > 1512
>>>
>>> On Thu, Jul 2, 2020 at 7:21 PM Jenisha T  wrote:
>>>
 Hi everyone,
 Below is my playbook

 ---
 - name: using multiple conditions
   gather_facts: yes
   hosts: localhost
   connection: local
   tasks:
 - package:
 name: httpd
 state: installed
 when:
   - ansible_distribution == "RedHat"
   - ansible_memfree_mb > 1512

 When I run this playbook I get below error

 https://pastebin.com/embed_iframe/BVRZKc5K;
 style="border:none;width:100%">



 --
 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/47b62adb-87ae-451c-b077-3cfeff5be26en%40googlegroups.com
 
 .

>>> --
>>> 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/CAG-N3P5vRTJsf%2BveHerV5NrxX8%3D0FD0%3DQAFg%2BwAw4pzQbDvuiw%40mail.gmail.com
>>> 
>>> .
>>>
>> --
>> 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/CAAGhZYjXRJHmQd9FX61OKz%3DLRqry9xXGSHXCKm61WgvomTn9cg%40mail.gmail.com
>> 
>> .
>>
> --
> Sent from a mobile device - please excuse the brevity, spelling and
> punctuation.
>
> --
> 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/CAL8fbwPexgbJGLJ%3DQhm3bzP6gmEYCJPdTMbwnSiJ8NpCNumHgQ%40mail.gmail.com
> 
> .
>

-- 
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/CAAGhZYhTTUHGpPh4Jnnm4vmm3e43%2BYsaJf6cjraitp-O5qRFyw%40mail.gmail.com.


Re: [ansible-project] Ansible not accepting When condition

2020-07-02 Thread Vladimir Botka
On Thu, 2 Jul 2020 20:05:17 +0530
"T. JENISHA"  wrote:

> Is there any syntax highlighter recommended for Ansible

There is "YAML mode" available in Emacs (not perfect unfortunately)
https://www.emacswiki.org/emacs/YamlMode

"HighlightIndentation" is useful too
https://www.emacswiki.org/emacs/HighlightIndentation

-- 
Vladimir Botka

-- 
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/20200702174509.162df97a%40gmail.com.


pgp9GkFzWb3DY.pgp
Description: OpenPGP digital signature


Re: [ansible-project] Ansible not accepting When condition

2020-07-02 Thread Dick Visser
https://docs.ansible.com/ansible/latest/community/other_tools_and_programs.html


On Thu, 2 Jul 2020 at 16:35, T. JENISHA  wrote:

> Thankyou I fixed it. Is there any syntax highlighter recommended for
> Ansible
>
>
> Best Regards
> Jenisha T
> Whatsapp: +91 07598087866
>
>
>
>
>
> On Thu, 2 Jul 2020 at 19:27, Srinivas Naram 
> wrote:
>
>> when is indented too much. Put it at the level where module name is
>> mentioned.
>>
>> ---
>> - name: using multiple conditions
>>   gather_facts: yes
>>   hosts: localhost
>>   connection: local
>>   tasks:
>> - package:
>> name: httpd
>> state: installed
>>   when:
>> - ansible_distribution == "RedHat"
>> - ansible_memfree_mb > 1512
>>
>> On Thu, Jul 2, 2020 at 7:21 PM Jenisha T  wrote:
>>
>>> Hi everyone,
>>> Below is my playbook
>>>
>>> ---
>>> - name: using multiple conditions
>>>   gather_facts: yes
>>>   hosts: localhost
>>>   connection: local
>>>   tasks:
>>> - package:
>>> name: httpd
>>> state: installed
>>> when:
>>>   - ansible_distribution == "RedHat"
>>>   - ansible_memfree_mb > 1512
>>>
>>> When I run this playbook I get below error
>>>
>>> https://pastebin.com/embed_iframe/BVRZKc5K;
>>> style="border:none;width:100%">
>>>
>>>
>>>
>>> --
>>> 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/47b62adb-87ae-451c-b077-3cfeff5be26en%40googlegroups.com
>>> 
>>> .
>>>
>> --
>> 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/CAG-N3P5vRTJsf%2BveHerV5NrxX8%3D0FD0%3DQAFg%2BwAw4pzQbDvuiw%40mail.gmail.com
>> 
>> .
>>
> --
> 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/CAAGhZYjXRJHmQd9FX61OKz%3DLRqry9xXGSHXCKm61WgvomTn9cg%40mail.gmail.com
> 
> .
>
-- 
Sent from a mobile device - please excuse the brevity, spelling and
punctuation.

-- 
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/CAL8fbwPexgbJGLJ%3DQhm3bzP6gmEYCJPdTMbwnSiJ8NpCNumHgQ%40mail.gmail.com.


Re: [ansible-project] Ansible not accepting When condition

2020-07-02 Thread T. JENISHA
Thankyou I fixed it. Is there any syntax highlighter recommended for Ansible


Best Regards
Jenisha T
Whatsapp: +91 07598087866





On Thu, 2 Jul 2020 at 19:27, Srinivas Naram 
wrote:

> when is indented too much. Put it at the level where module name is
> mentioned.
>
> ---
> - name: using multiple conditions
>   gather_facts: yes
>   hosts: localhost
>   connection: local
>   tasks:
> - package:
> name: httpd
> state: installed
>   when:
> - ansible_distribution == "RedHat"
> - ansible_memfree_mb > 1512
>
> On Thu, Jul 2, 2020 at 7:21 PM Jenisha T  wrote:
>
>> Hi everyone,
>> Below is my playbook
>>
>> ---
>> - name: using multiple conditions
>>   gather_facts: yes
>>   hosts: localhost
>>   connection: local
>>   tasks:
>> - package:
>> name: httpd
>> state: installed
>> when:
>>   - ansible_distribution == "RedHat"
>>   - ansible_memfree_mb > 1512
>>
>> When I run this playbook I get below error
>>
>> https://pastebin.com/embed_iframe/BVRZKc5K;
>> style="border:none;width:100%">
>>
>>
>>
>> --
>> 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/47b62adb-87ae-451c-b077-3cfeff5be26en%40googlegroups.com
>> 
>> .
>>
> --
> 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/CAG-N3P5vRTJsf%2BveHerV5NrxX8%3D0FD0%3DQAFg%2BwAw4pzQbDvuiw%40mail.gmail.com
> 
> .
>

-- 
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/CAAGhZYjXRJHmQd9FX61OKz%3DLRqry9xXGSHXCKm61WgvomTn9cg%40mail.gmail.com.


Re: [ansible-project] Ansible not accepting When condition

2020-07-02 Thread Srinivas Naram
when is indented too much. Put it at the level where module name is
mentioned.

---
- name: using multiple conditions
  gather_facts: yes
  hosts: localhost
  connection: local
  tasks:
- package:
name: httpd
state: installed
  when:
- ansible_distribution == "RedHat"
- ansible_memfree_mb > 1512

On Thu, Jul 2, 2020 at 7:21 PM Jenisha T  wrote:

> Hi everyone,
> Below is my playbook
>
> ---
> - name: using multiple conditions
>   gather_facts: yes
>   hosts: localhost
>   connection: local
>   tasks:
> - package:
> name: httpd
> state: installed
> when:
>   - ansible_distribution == "RedHat"
>   - ansible_memfree_mb > 1512
>
> When I run this playbook I get below error
>
> https://pastebin.com/embed_iframe/BVRZKc5K;
> style="border:none;width:100%">
>
>
>
> --
> 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/47b62adb-87ae-451c-b077-3cfeff5be26en%40googlegroups.com
> 
> .
>

-- 
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/CAG-N3P5vRTJsf%2BveHerV5NrxX8%3D0FD0%3DQAFg%2BwAw4pzQbDvuiw%40mail.gmail.com.


[ansible-project] Ansible not accepting When condition

2020-07-02 Thread Jenisha T
Hi everyone,
Below is my playbook

---
- name: using multiple conditions
  gather_facts: yes
  hosts: localhost
  connection: local
  tasks:
- package:
name: httpd
state: installed
when:
  - ansible_distribution == "RedHat"
  - ansible_memfree_mb > 1512

When I run this playbook I get below error

https://pastebin.com/embed_iframe/BVRZKc5K; 
style="border:none;width:100%">



-- 
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/47b62adb-87ae-451c-b077-3cfeff5be26en%40googlegroups.com.