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