Skip to content

Commit

Permalink
make fewer changes to default test run
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Schurz <[email protected]>
  • Loading branch information
schurzi committed Nov 15, 2023
1 parent be7bd21 commit 2874814
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
9 changes: 6 additions & 3 deletions molecule/os_hardening_vm/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
set_fact:
os_mnt_boot_enabled: false
when: ansible_facts.os_family == 'Archlinux'
- name: overrides for Fedora image
set_fact:
os_mnt_tmp_enabled: true
os_mnt_tmp_src: "tmpfs"
os_mnt_tmp_filesystem: "tmpfs"
when: ansible_facts.os_family == 'Fedora'
- include_role:
name: os_hardening
vars:
Expand All @@ -21,7 +27,4 @@
os_yum_repo_file_whitelist: ['foo.repo']
os_mnt_boot_enabled: true
os_mnt_home_enabled: true
os_mnt_tmp_enabled: true
os_mnt_tmp_src: "tmpfs"
os_mnt_tmp_filesystem: "tmpfs"
os_mnt_boot_src: "/dev/vda1"
8 changes: 1 addition & 7 deletions molecule/os_hardening_vm/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,7 @@
ansible.posix.mount:
path: /boot/efi
state: unmounted

- name: Mount /tmp to have same starting point for all images
ansible.posix.mount:
path: /tmp
src: tmpfs
fstype: tmpfs
state: mounted
when: ansible_facts.distribution == 'Fedora'

- name: include YUM prepare tasks
include_tasks: prepare_tasks/yum.yml
Expand Down

0 comments on commit 2874814

Please sign in to comment.