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:
Kevin Fenzi 2026-03-11 17:54:30 -07:00
commit d81bf5903b

View file

@ -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 }}"