Skip to content

Instantly share code, notes, and snippets.

@r3nya
Created January 22, 2015 09:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save r3nya/a48e64f2fa9c89d443fd to your computer and use it in GitHub Desktop.
Save r3nya/a48e64f2fa9c89d443fd to your computer and use it in GitHub Desktop.
---
- 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