mirror of
https://github.com/zahodi/ansible-mikrotik.git
synced 2025-08-09 20:35:04 +02:00
28 lines
666 B
YAML
28 lines
666 B
YAML
|
---
|
||
|
- name: add scheduler
|
||
|
mt_system_scheduler:
|
||
|
hostname: "{{ mt_hostname }}"
|
||
|
username: "{{ mt_user }}"
|
||
|
password: "{{ mt_pass }}"
|
||
|
state: present
|
||
|
name: ansible_test
|
||
|
on_event: 'put "test"'
|
||
|
interval: 1s
|
||
|
|
||
|
- name: run command to disable system scheduler task
|
||
|
mt_command:
|
||
|
hostname: "{{ mt_hostname }}"
|
||
|
username: "{{ mt_user }}"
|
||
|
password: "{{ mt_pass }}"
|
||
|
command: /system/scheduler/disable
|
||
|
command_arguments:
|
||
|
numbers: ansible_test
|
||
|
|
||
|
- name: run command
|
||
|
mt_command:
|
||
|
hostname: "{{ mt_hostname }}"
|
||
|
username: "{{ mt_user }}"
|
||
|
password: "{{ mt_pass }}"
|
||
|
command: "/interface/print"
|
||
|
tags: print
|