Hi All,
I have started learning ansible, and written a playbook.
— # This is my first playbook to install httpd (apache webserver)
- hosts: test.server.com
sudo: yes
connection: ssh
user: ansibleuser
tasks: - name: Install apache is latest
yum: name=httpd state=latest
notify: - restart apache
- name: Check service is started and enbled
service: name=httpd state=started
handlers: - name: restart apache
action: service name =httpd state=restarted