Created
February 22, 2015 07:36
-
-
Save adammaddox/ded601e3bb11d551906b to your computer and use it in GitHub Desktop.
ansible-nginx-passenger
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
#no package for utopic avail so will use puma | |
--- | |
- name: nginx | apt update | |
apt: update_cache=yes upgrade=yes | |
- name: nginx | add key | |
apt_key: keyserver=keyserver.ubuntu.com id=561F9B9CAC40B2F7 | |
- name: nginx | install depends | |
apt: pkg={{item}} state=latest | |
with_items: | |
- apt-transport-https | |
- ca-certificates | |
- name: nginx | add passenger.list | |
template: | |
src=templates/passenger.list.j2 | |
dest=/etc/apt/sources.list.d/passenger.list | |
owner=root | |
group=root | |
mode=600 | |
- name: nginx | apt update | |
apt: update_cache=yes upgrade=yes | |
- name: nginx | install | |
apt: pkg={{item}} state=latest | |
with_items: | |
- nginx-extras | |
- passenger | |
notify: | |
- restart nginx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment