Created
March 25, 2017 17:48
-
-
Save ram5019/b0e6b709c12936e820bda30ce4795f7e to your computer and use it in GitHub Desktop.
httpd-install.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- host : webservers | |
tasks : | |
name : Install Httpd packages | |
yum : pkg=httpd state=installed | |
notify : | |
- start httpd | |
handlers : | |
- name : start httpd | |
service : name=httpd state=started |
Tab intend
set ai
set tabstop=2
set expandtab
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Once you have executed above playbook, you should see below output.
PLAY [testservers] *************************************************************
TASK [setup] *******************************************************************
ok: [192.168.122.43]
TASK [install httpd] ***********************************************************
changed: [192.168.122.43]
RUNNING HANDLER [start httpd] **************************************************
changed: [192.168.122.43]
PLAY RECAP *********************************************************************
192.168.122.43 : ok=3 changed=2 unreachable=0 failed=0