Skip to content

Commit 2be44f9

Browse files
Use replace instead of lineinfile
1 parent a941098 commit 2be44f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

etc/kayobe/ansible/build-ofed.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@
4646
mode: 0777
4747

4848
- name: Set build directory
49-
ansible.builtin.lineinfile:
49+
ansible.builtin.replace:
5050
path: /opt/mellanox/doca/tools/doca-kernel-support
51-
search_string: 'TMP_DIR=$1'
52-
line: ' TMP_DIR=/home/cloud-user/ofed'
51+
regexp: 'TMP_DIR=\$1'
52+
replace: 'TMP_DIR=/home/cloud-user/ofed'
5353

5454
- name: Build OFED kernel modules
5555
ansible.builtin.shell:

0 commit comments

Comments
 (0)