zahodi.ansible-mikrotik/tests/integration/tasks/test-command.yml
2017-06-14 23:29:30 -07:00

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