mirror of
https://github.com/dev-sec/ansible-nginx-hardening.git
synced 2024-11-22 15:32:01 +01:00
use geerlinggux.nginx and fix tests
This commit is contained in:
parent
3efd10d119
commit
c285d013cf
@ -1 +1,2 @@
|
||||
- src: nginxinc.nginx
|
||||
- src: geerlingguy.nginx
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user