I am new to Ansible and I am trying to run this playbook. I get an error stating "ansible_network_os is not valid attribute to play". Can you please let me know what could be wrong with my script?
---
- name: configure interfaces setting
hosts: switches
connection: network_cli
ansible_network_os: cisco.ios.ios
tasks:
- name: configure interface
ios_config:
before:
- default interface Gi0/3
lines:
- ip address 10.10.10.1 255.255.255.0
after:
-no shutdown
parents: interface Gi0/3