ansible/playbooks/test_replace.yml
2024-05-27 23:44:28 +02:00

6 lines
207 B
YAML

- hosts: nas
name: Sync mailu
ignore_unreachable: false
tasks:
- name: Change owner
commalocal: "{{ 'localhost:80' | regex_replace('^(?P<host>.+):(?P<port>\\d+)$', '\\g<host>, \\g<port>') }}"