mirror of
https://github.com/zahodi/ansible-mikrotik.git
synced 2025-08-01 16:44:31 +02:00
27 lines
666 B
YAML
27 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
|