My Playbook:
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 > 1512I 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
indentation for when
is off. It should be aligned to yum
Thankyou it worked.