Created
March 12, 2014 11:49
-
-
Save rogeriopradoj/9505341 to your computer and use it in GitHub Desktop.
phansible - apache test (https://github.com/Phansible/phansible-roles/blob/master/apache/tasks/main.yml)
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
--- | |
- 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