Playbook ignores attributes auth_pass\authorize and wont enter privilege mode.

Hi Everyone!

I am new to “Ansible”. I’ve created a playbook that backups cisco running config. My problem is that i get an error Invalid input detector “^” i did some digging and its alerting due to the command not running in privileged mode. I’ve tried using authorize and auth_pass and it gives me an error saying :

[WARNING]: Ignoring invalid attribute: username

[WARNING]: Ignoring invalid attribute: authorize

[WARNING]: Ignoring invalid attribute: auth_pass

[WARNING]: Ignoring invalid attribute: host

here is playbook:

Options like "host" and "username" are part of provider option. You
should check the options and also the indentation.

Just an update.

I figured where authorize: yes and auth_pass: cisco should stand…

Under “ios command:”

tasks:

  • name: show run
    ios_command:
    authorize: yes
    auth_pass: cisco
    commands:

hope this helps if anyone is having same issue.