unsupported parameter

17 views
Skip to first unread message

Jenisha T

unread,
Jun 25, 2020, 5:29:38 AM6/25/20
to Ansible Project
My Playbook:
---
- name: test
  gather_facts: yes
  hosts: localhost
  connection: local
  tasks:
    - name: install httpd
      yum:
        name: httpd
        state: present
        when:
          - ansible_distribution == "RedHat"
          - ansible_memfree_mb > 1512


I get below error
<iframe src="https://pastebin.com/embed_iframe/ZA6TXeE5" style="border:none;width:100%"></iframe>

Stefan Hornburg (Racke)

unread,
Jun 25, 2020, 5:31:56 AM6/25/20
to ansible...@googlegroups.com
On 6/25/20 11:29 AM, Jenisha T wrote:
> My Playbook:
> ---
> - name: test
>   gather_facts: yes
>   hosts: localhost
>   connection: local
>   tasks:
>     - name: install httpd
>       yum:
>         name: httpd
>         state: present
>         when:
>           - ansible_distribution == "RedHat"
>           - ansible_memfree_mb > 1512
>
>
> I get below error
> </><iframe src="https://pastebin.com/embed_iframe/ZA6TXeE5" style="border:none;width:100%"></iframe>

Please post the actual error as *text*

Regards
Racke

>
> --
> 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-proje...@googlegroups.com <mailto:ansible-proje...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/9755b1d6-e340-46f0-97f0-2e2d434ef853n%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/9755b1d6-e340-46f0-97f0-2e2d434ef853n%40googlegroups.com?utm_medium=email&utm_source=footer>.


--
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.

signature.asc

Abhijeet Kasurde

unread,
Jun 25, 2020, 5:32:22 AM6/25/20
to ansible...@googlegroups.com
indentation for `when` is off. It should be aligned to yum

--
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-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/9755b1d6-e340-46f0-97f0-2e2d434ef853n%40googlegroups.com.


--
Thanks,
Abhijeet Kasurde

Jenisha T

unread,
Jun 25, 2020, 5:35:50 AM6/25/20
to Ansible Project
Thankyou it worked.
Reply all
Reply to author
Forward
0 new messages