From 0a2c5112663950d90f91b2dce3fe1cfb9f2f8e96 Mon Sep 17 00:00:00 2001 From: Philippe Pepiot Date: Fri, 21 Aug 2015 10:34:01 +0200 Subject: [PATCH] Upgrade to nginx 1.8 --- playbook.yml | 3 +++ test_nginx.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/playbook.yml b/playbook.yml index f3e7ddd..32c3d67 100644 --- a/playbook.yml +++ b/playbook.yml @@ -2,6 +2,9 @@ - hosts: all gather_facts: no tasks: + - name: Add ppa:nginx/stable repo + apt_repository: repo='ppa:nginx/stable' + - name: Install nginx, curl and tree apt: pkg={{ item }} state=present with_items: diff --git a/test_nginx.py b/test_nginx.py index 52c358e..9ebc585 100644 --- a/test_nginx.py +++ b/test_nginx.py @@ -4,7 +4,7 @@ def test_package(Package): nginx = Package("nginx") assert nginx.is_installed - assert nginx.version.startswith("1.4") + assert nginx.version.startswith("1.8") def test_service(Service):