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 <srinivas.nar...@gmail.com>
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 <joyj...@gmail.com> 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
>>
>> <iframe src="https://pastebin.com/embed_iframe/BVRZKc5K";
>> style="border:none;width:100%"></iframe>
>>
>>
>>
>> --
>> 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
>> <https://groups.google.com/d/msgid/ansible-project/47b62adb-87ae-451c-b077-3cfeff5be26en%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> 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
> <https://groups.google.com/d/msgid/ansible-project/CAG-N3P5vRTJsf%2BveHerV5NrxX8%3D0FD0%3DQAFg%2BwAw4pzQbDvuiw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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.

Reply via email to