Skip to content

Commit

Permalink
change order - first remount, then manage fstab
Browse files Browse the repository at this point in the history
Signed-off-by: Ludwig Bayerlein <bayerlein@bayerlein-networks.com>
  • Loading branch information
ludwigbayerlein committed Mar 3, 2022
1 parent e6a529f commit 1f8ebaa
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions roles/os_hardening/tasks/minimize_access.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,12 @@
owner: 'root'
group: 'root'
mode: '{{ os_tmp_dir_mode }}'

- name: Harden mount options for tmp
mount:
path: /tmp
src: '{{ os_tmp_mnt_src }}'
fstype: '{{ os_tmp_mnt_filesystem }}'
opts: '{{ os_tmp_mnt_options }}'
state: present
when: os_tmp_mnt_enabled | bool

0 comments on commit 1f8ebaa

Please sign in to comment.