diff --git a/tasks/lookup_tables.yml b/tasks/lookup_tables.yml index 5c6834a..313c6c6 100644 --- a/tasks/lookup_tables.yml +++ b/tasks/lookup_tables.yml @@ -31,7 +31,7 @@ {% endif %}{% endfor %} dest: "{{ postfix_mail_domains[domain].user_lookup.file | default('/etc/postfix/'+domain+'_users') | - replace_regexp('^/etc/postfix',postfix_mountpoint) }}" + regex_replace('^/etc/postfix',postfix_mountpoint) }}" marker: "# {mark} ANSIBLE-MANAGED USERS" create: yes when: @@ -46,7 +46,7 @@ {% endfor %} dest: "{{ postfix_mail_domains[domain].user_lookup.file | default('/etc/postfix/'+domain+'_aliases') | - replace_regexp('^/etc/postfix',postfix_mountpoint) }}" + regex_replace('^/etc/postfix',postfix_mountpoint) }}" marker: "# {mark} ANSIBLE-MANAGED ALIASES" create: yes when: @@ -61,5 +61,5 @@ {% endfor %} dest: "{{ postfix_mail_domains[domain].noreply_file | default('/etc/postfix/'+domain+'_noreply') | - replace_regexp('^/etc/postfix',postfix_mountpoint) }}" + regex_replace('^/etc/postfix',postfix_mountpoint) }}" notify: postmap no reply aliases