Initial commit
This commit is contained in:
16
ansible/roles/mikrotik-common/tasks/main.yml
Normal file
16
ansible/roles/mikrotik-common/tasks/main.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
- name: Check RouterOS version
|
||||
community.routeros.command:
|
||||
commands:
|
||||
- /system resource print
|
||||
register: ros_version
|
||||
|
||||
- name: Set system identity
|
||||
community.routeros.command:
|
||||
commands:
|
||||
- /system identity set name={{ inventory_hostname }}
|
||||
|
||||
- name: Configure NTP client
|
||||
community.routeros.command:
|
||||
commands:
|
||||
- /system ntp client set enabled=yes servers=pool.ntp.org
|
||||
Reference in New Issue
Block a user