forked from jakub/ansible
Update mikrotikbackup_clean.yml
This commit is contained in:
@@ -24,10 +24,12 @@
|
|||||||
community.routeros.command:
|
community.routeros.command:
|
||||||
commands: /system identity print
|
commands: /system identity print
|
||||||
register: identity_raw
|
register: identity_raw
|
||||||
|
tags: always
|
||||||
|
|
||||||
- name: Parse router name
|
- name: Parse router name
|
||||||
set_fact:
|
set_fact:
|
||||||
router_name: "{{ identity_raw.stdout[0].split(': ')[1] | trim }}"
|
router_name: "{{ identity_raw.stdout[0].split(': ')[1] | trim }}"
|
||||||
|
tags: always
|
||||||
|
|
||||||
# ----------------------------
|
# ----------------------------
|
||||||
# Timestamp
|
# Timestamp
|
||||||
|
|||||||
Reference in New Issue
Block a user