Hello Team
Am pretty new to Ansible trying , am getting an error while executing yml file .
Here am trying to install httpd services on one of web server i have inventory file below are the details ip details added am able to ping all these IP
inventory file:
mintty screen dump
<br>[webserver] <br>172.31.17.222 <br> <br>[webserver:vars] <br>package_name=httpd <br> <br>[dbserver] <br>172.31.17.101 <br> <br>[local] <br>localhost <br>
|
- |
mintty screen dump
<br>ansible@ip-172-31-18-96:/etc/playbook$ ansible -i inventory -m ping all <br>172.31.17.101 | SUCCESS => { <br> "changed": false, <br> "ping": "pong" <br>} <br>172.31.17.222 | SUCCESS => { <br> "changed": false, <br> "ping": "pong" <br>} <br>localhost | SUCCESS => { <br> "changed": false, <br> "ping": "pong" <br>
|
- |
This is YMl file i have written :