Skip to content

Commit 96b1cd4

Browse files
Add precheck for noexec
1 parent af51ec5 commit 96b1cd4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

etc/kayobe/ansible/build-ofed-rocky.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@
44
hosts: ofed-builder
55
gather_facts: false
66
tasks:
7+
- name: Check whether noexec is enabled for /var/tmp
8+
ansible.builtin.lineinfile:
9+
path: "/etc/fstab"
10+
regexp: "noexec"
11+
state: absent
12+
changed_when: false
13+
check_mode: true
14+
register: result
15+
failed_when: result.found
16+
717
- name: Install package dependencies
818
ansible.builtin.dnf:
919
name:

0 commit comments

Comments
 (0)