User Tools

Site Tools


ansible:routeros

Manage Routeros with Ansible

  • install packages on ansible server
ansible-galaxy collection install community.network
  • create the inventory group /etc/ansible/hosts
routeros:
  hosts:
    192.168.1.160:
  • set group vars /etc/ansible/group_vars/routeros.yaml (same name of the group defined in inventory)
ansible_connection: ansible.netcommon.network_cli
ansible_network_os: community.network.routeros
ansible_user: ansibleusr
ansible_password: !Vault...
ansible_become: yes
ansible_become_method: enable
ansible_become_password: Vault...
This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
ansible/routeros.txt · Last modified: 2024/11/10 08:00 by 127.0.0.1