Skip to content

Instantly share code, notes, and snippets.

@krisleech
Created May 9, 2017 17:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krisleech/2185b02b9438baff7c4c3b19664fee98 to your computer and use it in GitHub Desktop.
Save krisleech/2185b02b9438baff7c4c3b19664fee98 to your computer and use it in GitHub Desktop.
mpd_pagespeed task for Ansible
- 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