Created
October 22, 2017 08:38
-
-
Save maprangzth/7c1ca2537f0f1396a26c2ac8b5fb7fef to your computer and use it in GitHub Desktop.
Simple Playbooks for Install Apache Web Server
This file contains 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
--- | |
- name: Install Apache Web Server | |
hosts: web-server | |
remote_user: maprangzth | |
tasks: | |
- name: Ensure httpd package is latest | |
yum: | |
name: httpd | |
state: latest | |
notify: Start and enabled httpd service | |
become: True | |
handlers: | |
- name: Start and enabled httpd service | |
service: | |
name: httpd | |
state: started | |
enabled: True | |
become: True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment