diff --git a/roles/nginx/tasks/main.yml b/roles/nginx/tasks/main.yml index 5af5fd1..44d416b 100644 --- a/roles/nginx/tasks/main.yml +++ b/roles/nginx/tasks/main.yml @@ -4,7 +4,11 @@ tags: nginx - name: Add nginx.org mainline repo - apt_repository: repo="deb http://nginx.org/packages/mainline/ubuntu/ {{ ansible_distribution_release }} nginx" state=present + apt_repository: repo="deb http://nginx.org/packages/mainline/ubuntu/ {{ ansible_distribution_release }} nginx" state=absent + tags: nginx + +- name: Add nginx.org stable repo + apt_repository: repo="deb http://nginx.org/packages/ubuntu/ {{ ansible_distribution_release }} nginx" state=present tags: nginx - name: Install nginx