From c285d013cf60b68ac6bbf1de5739981444c8d160 Mon Sep 17 00:00:00 2001 From: Sebastian Gumprich Date: Sat, 8 Sep 2018 14:59:30 +0200 Subject: [PATCH] use geerlinggux.nginx and fix tests --- requirements.yml | 1 + tests/test.yml | 12 +++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/requirements.yml b/requirements.yml index edf88b0..0560ff5 100644 --- a/requirements.yml +++ b/requirements.yml @@ -1 +1,2 @@ - src: nginxinc.nginx +- src: geerlingguy.nginx diff --git a/tests/test.yml b/tests/test.yml index 8f43b19..e180140 100644 --- a/tests/test.yml +++ b/tests/test.yml @@ -1,7 +1,17 @@ --- - name: wrapper playbook for kitchen testing "ansible-nginx-hardening" with custom settings hosts: localhost + vars: + - nginx_ppa_use: true + - nginx_ppa_version: stable pre_tasks: + - apt_repository: + repo: "deb http://ftp.debian.org/debian jessie-backports main" + state: present + when: ansible_distribution == 'Debian' and ansible_distribution_major_version == '8' + - set_fact: + nginx_default_release: "jessie-backports" + when: ansible_distribution == 'Debian' and ansible_distribution_major_version == '8' - package: name="{{item}}" state=installed with_items: - "systemd" @@ -11,5 +21,5 @@ - "systemd" ignore_errors: true roles: - - nginxinc.nginx + - geerlingguy.nginx - ansible-nginx-hardening