forked from infra/ansible
base / postfix: make lmdb regex not also pull , in when entries are seperated by ,s
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
1ab995c2f0
commit
d81bf5903b
1 changed files with 1 additions and 1 deletions
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
- name: Find all the lmdb files
|
||||
ansible.builtin.set_fact:
|
||||
lmdb_files: "{{ (maincf.content | b64decode) | regex_findall('lmdb:(.*)') }}"
|
||||
lmdb_files: "{{ (maincf.content | b64decode) | regex_findall('lmdb:([^,\\s]+)') }}"
|
||||
|
||||
- name: Convert to lmdb
|
||||
ansible.builtin.command: "{{ (item == '/etc/aliases') | ternary('postalias', 'postmap') }} lmdb:{{ item }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue