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...
ansible/routeros.txt · Last modified: 2024/11/10 08:00 by 127.0.0.1
