Hi, There:
I have problem to run ansible-playbook for Cisco ASA, and I manage sent user directly to enable mode
by enable following command on ASA.
aaa authorization exec authentication-server auto-enable
The yaml file as following, and show version is working fine.
Appreciate any help.
~Mike
- hosts: testfw
gather_facts: no
connection: local
vars:
cli:
host: “{{ inventory_hostname }}”
username: “xxx”
password: “xxxxxx”
authorize: no
tasks: - name: Retrieve device configuration for ASA
asa_command:
provider: “{{ cli }}”
commands: - show version
timeout: 60
register: output
- name:
debug: var=output
- name: config object
asa_config:
lines: - network-object host 10.80.30.18
- network-object host 10.80.30.19
parents: [‘object-group network dummy-server’]
provider: “{{ cli }}”
Here is the error