1
0
mirror of https://github.com/dev-sec/ansible-nginx-hardening.git synced 2024-11-26 11:13:45 +01:00
ansible-nginx-hardening/tests/test.yml

26 lines
857 B
YAML
Raw Normal View History

2018-08-15 18:16:50 +02:00
---
- name: wrapper playbook for kitchen testing "ansible-nginx-hardening" with custom settings
hosts: localhost
2018-09-08 14:59:30 +02:00
vars:
- nginx_ppa_use: true
- nginx_ppa_version: stable
2018-08-15 18:16:50 +02:00
pre_tasks:
2018-09-08 14:59:30 +02:00
- 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'
2018-08-15 18:16:50 +02:00
- package: name="{{item}}" state=installed
with_items:
- "systemd"
ignore_errors: true
- apt: name="{{item}}" state=installed update_cache=true
with_items:
- "systemd"
ignore_errors: true
roles:
2018-09-08 14:59:30 +02:00
- geerlingguy.nginx
2018-08-15 18:16:50 +02:00
- ansible-nginx-hardening