Hello All I am getting unsupported parameter for ios_l2_interfaces error when I am trying to run a simple playbook to change VLAN on an interface . I've attached my playbook , inventory and anssible.cfg plus -vvv result . other gather fact playbooks would run fine but not this one .
it is much appreciate if anyone can help me fix this. ---------------------------------------------------------------------------------- *Inventory-2.yml* --- all: children: switches: children: ios: hosts: sw-1: ansible_host: 10.200.1.1 vars: ansible_become: yes ansible_connection: local ansible_become_method: enable ansible_user: ncm ansible_password: !vault | $ANSIBLE_VAULT;1.2;AES256;userid01 ---------------------------------------------------------------------------------- *Playbook-3.yml:* --- - name: IOS Config Demo hosts: switches tasks: - name: Configure Access ios_l2_interfaces: config: - name: GigabitEthernet2/0/25 access: vlan: 7 state: merged ------------------------------------------------------------ *ansible.cfg* [defaults] export ANSIBLE_PARAMIKO_LOOK_FOR_KEYS=false [persistent_connection] command_timeout = 60 ------------------------------------------------------------ *Result:* [user@ansiblecontroller inventory]# ansible-playbook --vault-id user1@prompt playbook-3.yml -i inventory-2.yml -vvv fatal: [sw-1]: FAILED! => { "changed": false, "invocation": { "module_args": { "config": [ { "access": { "vlan": 7 }, "name": "GigabitEthernet2/0/25" } ], "provider": { "auth_pass": null, "authorize": false, "host": null, "password": null, "port": null, "ssh_keyfile": null, "timeout": null, "username": null }, "state": "merged" } }, "msg": "Unsupported parameters for (ios_l2_interfaces) module: provider Supported parameters include: config, state" ------------------------------------------------------------ Thank you -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/2660a4a2-cb8f-4cee-9252-b9ef3e487ca6n%40googlegroups.com.