---
- name: MikroTik system resource print
hosts: Host_1
gather_facts: false
tasks:
- name: dhcp-server print
routeros_command:
commands: /ip dhcp-server lease print
register: dhcp_print_result
- name: Debug registered var
debug: var=dhcp_print_result.stdout_lines