Skip to content

Commit 86a94af

Browse files
authored
Merge pull request #957 from stackhpc/fix-mounts-creating-directories
Fix mounts role failing to create directories
2 parents ac809d3 + d7413e8 commit 86a94af

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

ansible/roles/mounts/tasks/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
- name: Ensure mount directories exist
22
ansible.builtin.file:
33
path: "{{ item.value.path }}"
4+
state: directory
5+
owner: root
6+
group: root
7+
mode: '0755'
48
loop: "{{ mounts | dict2items }}"
9+
when: item.value.enabled | default(true)
510

611
- name: Ensure tmp.mount mask status is correct
712
# RL8-specific fix; otherwise rootfs comes up read-only after a reboot!

0 commit comments

Comments
 (0)