Skip to content

Commit 51772aa

Browse files
committed
feat: change regex to match full key when removing it
Merge branch 'patch-1' of https://github.com/alcoralcor/ansible-environment into feature/full-key-regex-match
2 parents fa671d4 + ca9eca9 commit 51772aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
- name: Remove previous values
1313
lineinfile:
1414
dest: "{{ environment_file }}"
15-
regexp: '^{{ item.key }}'
15+
regexp: '^{{ item.key }}\ ?='
1616
state: absent
1717
with_dict: "{{ environment_config }}"
1818

0 commit comments

Comments
 (0)