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