From 488d0e4fa5375ac84c51f076dd85a498bc5738db Mon Sep 17 00:00:00 2001 From: Jacob Michalskie Date: Oct 17 2022 18:40:29 +0000 Subject: Search with whitespace --- diff --git a/salt/profile/postfix/init.sls b/salt/profile/postfix/init.sls index b0fd7ec..815b463 100644 --- a/salt/profile/postfix/init.sls +++ b/salt/profile/postfix/init.sls @@ -32,7 +32,7 @@ postfix_alias_present_{{ user }}: /etc/postfix/master.cf_{{ option }}: file.replace: - name: /etc/postfix/master.cf - - pattern: '^{{ option }}.*$' + - pattern: '^{{ option }}\s.*$' - repl: '{{ option }} {{ value }}' - append_if_not_found: True - require: