Skip to content

Commit

Permalink
add test for variable override
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com>
  • Loading branch information
schurzi committed Dec 16, 2020
1 parent beda26a commit 4e4aaad
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions molecule/os_hardening/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,5 @@ scenario:
- converge
- idempotence
- verify
- variable_override
- destroy
16 changes: 16 additions & 0 deletions molecule/os_hardening/variable_override.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
- name: wrapper playbook for kitchen testing "ansible-os-hardening" with custom vars for testing
hosts: all
become: true
collections:
- devsec.hardening
tasks:
- name: workaround for https://github.com/ansible/ansible/issues/66304
set_fact:
ansible_virtualization_type: "docker"
os_env_umask: "027 #override"
- include_role:
name: os_hardening
- name: verify os_env_umask
shell:
cmd: grep "027 #override" /etc/login.defs

0 comments on commit 4e4aaad

Please sign in to comment.