Hello i want to use playbook to config router in towerm but i have error message unable to set parameter. In my router you must go to privilege exec mode and do ssh for remote
---- hosts: ‘{{ host }}’
connection: network_cli
gather_facts: false
vars:
ansible_ssh_user: ‘{{ ssh_user }}’
ansible_ssh_pass: ‘{{ ssh_pass }}’
ansible_network_os: ios
ansible_become: yes
ansible_become_method: enable
ansible_become_password: xxx
tasks: - name: load new acl into device
ios_config:
lines: - permit 10.x.x.x 0.0.0.255
parents: ip access-list extended 99