mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2026-01-02 09:18:36 +01:00
9 lines
312 B
YAML
9 lines
312 B
YAML
- hosts: nas
|
|
name: Sync mailu
|
|
ignore_unreachable: false
|
|
vars:
|
|
app_path: "{{ 'localhost:80' | regex_replace('^(?P<host>.+):(?P<port>\\d+)$', '\\g<host>, \\g<port>') }}"
|
|
tasks:
|
|
- name: Print the gateway for each host when defined
|
|
ansible.builtin.debug:
|
|
msg: var is "{{ app_path }}" |