library/roles/nginx/tasks/nginx.yml: The PPA is ubuntu specific.

This commit is contained in:
Andrea Dell'Amico 2016-06-29 17:15:36 +02:00
parent 88e26ff0f4
commit c5bdb422ea
1 changed files with 3 additions and 1 deletions

View File

@ -1,7 +1,9 @@
---
- name: Install the Ubuntu PPA for nginx
apt_repository: repo='{{ nginx_ppa_repo }}'
when: nginx_use_ppa
when:
- nginx_use_ppa
- '{{ ansible_distribution }}' == 'Ubuntu'
tags: [ 'nginx', 'nginx_ppa' ]
- name: Install the nginx web server