From c5bdb422eae27a8269180474988d957922a0ea9c Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Wed, 29 Jun 2016 17:15:36 +0200 Subject: [PATCH] library/roles/nginx/tasks/nginx.yml: The PPA is ubuntu specific. --- nginx/tasks/nginx.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nginx/tasks/nginx.yml b/nginx/tasks/nginx.yml index f42e46ec..8bc72b3a 100644 --- a/nginx/tasks/nginx.yml +++ b/nginx/tasks/nginx.yml @@ -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