From e675b750c4b403c2151187ab4bb284a349fb7a93 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Thu, 23 Apr 2015 14:52:22 +0300 Subject: [PATCH] roles/nginx: Switch to nginx stable branch Remove old mainline repo and add stable repo to get nginx 1.8.0. See: http://nginx.org/en/CHANGES-1.8 Signed-off-by: Alan Orth --- roles/nginx/tasks/main.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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