Skip to content

Instantly share code, notes, and snippets.

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