This isn't ios_config though. When i log into the device with the username
and password in the ansible script it works fine and the command takes. So
why is it failing?
On Thursday, November 7, 2019 at 5:48:59 PM UTC-6, Steven Williams wrote:
>
> Getting Error:
>
> PLAY [show An
Getting Error:
PLAY [show Anyconnect VPN connections for ASA]
*
TASK [Set terminal page to zero]
***
fatal: [10.53.0.105]: FAILED! =>
root@jmpnet:/etc/ansible# ansible-playbook test-asa.yml
ERROR! 'debug' is not a valid attribute for a Play
The error appears to be in '/etc/ansible/test-asa.yml': line 15, column 3,
but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
-
There is not error. It runs but doesn't remove the "!".
---
>
> - name: show version and other user level commands
>
> hosts: IOL_Routers
>
> gather_facts: false
>
> connection: network_cli
>
> become: yes
>
>
> tasks:
>
> - name: run multiple commands on remote nodes
>
>
Doesn't seem to work.
---
- name: show version and other user level commands
hosts: IOL_Routers
gather_facts: false
connection: network_cli
become: yes
tasks:
- name: run multiple commands on remote nodes
ios_command:
commands:
- show run
register:
Where would this go within the yml file?
On Thursday, August 22, 2019 at 10:49:27 AM UTC-5, Steven Williams wrote:
>
> ---
>
> - name: show version and other user level commands
>
> hosts: IOL_Routers
>
> gather_facts: false
>
> connection: network_cli
&
---
- name: show version and other user level commands
hosts: IOL_Routers
gather_facts: false
connection: network_cli
become: yes
tasks:
- name: run multiple commands on remote nodes
ios_command:
commands:
- show run
- show ip int br