New feature: install nginx from backports

This commit is contained in:
Emilien Mantel
2016-01-11 15:16:24 +01:00
parent d463b690ec
commit f64e1f1106
4 changed files with 14 additions and 5 deletions

View File

@@ -1,10 +1,15 @@
---
- name: APT | Install nginx and dependencies
apt: pkg={{ item }} state=latest update_cache=yes cache_valid_time=3600
with_items:
- "{{ nginx_apt_package }}"
- python-passlib
apt: >
pkg={{ nginx_apt_package }}
state=present
update_cache=yes
cache_valid_time=3600
default_release={{ ansible_distribution_release + '-backports' if nginx_backports else ansible_distribution_release }}
- name: APT | Install python-passlib
apt: pkg=python-passlib state=present
- name: SHELL | Get Nginx version
shell: nginx -v 2>&1 | sed -r 's#.*/##;' | cut -d ' ' -f 1