From f0026619b9fd8198451afbcb36d7fdba461ac177 Mon Sep 17 00:00:00 2001 From: Sebastian Gumprich Date: Tue, 22 Sep 2015 19:04:45 +0200 Subject: [PATCH] Improve Ansible tests This change adds more tests to check for different variable uses. --- playbooks/default.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/playbooks/default.yml b/playbooks/default.yml index 2a520c4..cbdbb18 100644 --- a/playbooks/default.yml +++ b/playbooks/default.yml @@ -1,4 +1,20 @@ --- +- name: wrapper playbook for kitchen testing "ansible-os-hardening" with custom vars for testing + hosts: localhost + roles: + - ansible-os-hardening + vars: + os_security_users_allow: change_user + os_security_kernel_enable_core_dump: true + os_security_suid_sgid_remove_from_unknown: true + os_auth_pam_passwdqc_enable: false + os_desktop_enable: true + os_env_extra_user_paths: ['/home'] + os_auth_allow_homeless: true + os_security_kernel_enable_core_dump: true + os_security_suid_sgid_blacklist: ['/bin/umount'] + os_security_suid_sgid_whitelist: ['/usr/bin/rlogin'] + - name: wrapper playbook for kitchen testing "ansible-os-hardening" hosts: localhost roles: