mirror of
https://github.com/dev-sec/ansible-collection-hardening
synced 2024-11-10 09:14:18 +00:00
27d091e871
Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com>
23 lines
758 B
YAML
23 lines
758 B
YAML
---
|
|
- name: wrapper playbook for kitchen testing "ansible-os-hardening" with custom vars for testing
|
|
hosts: all
|
|
become: true
|
|
environment:
|
|
http_proxy: "{{ lookup('env', 'http_proxy') | default(omit) }}"
|
|
https_proxy: "{{ lookup('env', 'https_proxy') | default(omit) }}"
|
|
no_proxy: "{{ lookup('env', 'no_proxy') | default(omit) }}"
|
|
collections:
|
|
- devsec.hardening
|
|
tasks:
|
|
- name: override for arch
|
|
set_fact:
|
|
os_mnt_boot_enabled: false
|
|
when: ansible_facts.os_family == 'Archlinux'
|
|
- include_role:
|
|
name: os_hardening
|
|
vars:
|
|
os_auth_pam_passwdqc_enable: false
|
|
os_auth_lockout_time: 15
|
|
os_yum_repo_file_whitelist: ['foo.repo']
|
|
os_mnt_boot_enabled: true
|
|
os_mnt_boot_src: "/dev/vda1"
|