Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
---
- 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
You can’t perform that action at this time.