mirror of
https://github.com/dev-sec/ansible-collection-hardening
synced 2024-11-10 09:14:18 +00:00
24 lines
644 B
YAML
24 lines
644 B
YAML
---
|
|
- name: prepare playbook for kitchen testing "ansible-nginx-hardening" with custom settings
|
|
become: true
|
|
hosts: all
|
|
tasks:
|
|
- name: install required tools on SuSE
|
|
zypper:
|
|
name: "python-xml"
|
|
state: present
|
|
when: ansible_facts.os_family == 'Suse'
|
|
|
|
- name: install required packages
|
|
package:
|
|
name: "python3-apt"
|
|
update_cache: true
|
|
ignore_errors: true
|
|
|
|
- name: Set correct distribution Version for Amazon Linux
|
|
set_fact:
|
|
ansible_distribution_major_version: 7
|
|
when: ansible_distribution == 'Amazon'
|
|
|
|
- include_role:
|
|
name: geerlingguy.nginx
|