Created
May 9, 2017 17:12
-
-
Save krisleech/2185b02b9438baff7c4c3b19664fee98 to your computer and use it in GitHub Desktop.
mpd_pagespeed task for Ansible
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: Install mod_pagespeed | |
apt: | |
deb: https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_amd64.deb | |
- name: Install Apache and related packages | |
apt: pkg={{ item }} state=installed | |
with_items: | |
- apache2 | |
- name: Enable Apache modules | |
command: a2enmod {{ item }} creates=/etc/apache2/mods-enabled/{{ item }}.load | |
with_items: | |
- deflate | |
- expires | |
- headers | |
- rewrite | |
- ssl | |
- pagespeed | |
notify: restart apache | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment