Created
January 22, 2015 09:41
-
-
Save r3nya/a48e64f2fa9c89d443fd to your computer and use it in GitHub Desktop.
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
--- | |
- hosts: web | |
user: root | |
vars: | |
http_port: 80 | |
max_clients: 200 | |
tasks: | |
- name: install apache | |
yum: name=httpd state=latest | |
- name: write apache config | |
action: template src=httpd.j2 dest=/etc/httpd.conf | |
notify: | |
- restart apache | |
- name: run apache | |
service: name=httpd state=started | |
handlers: | |
- name: restart apache | |
service: name=httpd state=restarted |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment