Skip to content

Instantly share code, notes, and snippets.

@rogeriopradoj
Created March 12, 2014 11:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rogeriopradoj/9505341 to your computer and use it in GitHub Desktop.
Save rogeriopradoj/9505341 to your computer and use it in GitHub Desktop.
---
- name: Add ppa Repository
sudo: yes
apt_repository: repo=ppa:ondrej/apache2
- name: Update apt
sudo: yes
apt: update_cache=yes
- name: Install Apache
sudo: yes
apt: pkg=apache2 state=latest
- name: Install Apache Modules
shell: a2enmod {{ item }}
notify: restart apache
with_items:
- rewrite
- vhost_alias
- headers
- expires
- filter
- name: Change default apache site
sudo: yes
template: src=vhost.conf.tpl dest=/etc/apache2/sites-available/000-default.conf
notify: restart apache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment