I have the following plays:
-
name: Associate VLAN with interface
asa_config:
lines: -
vlan 610
parents: [‘interface Port-channel1.610’]
context: system
provider: “{{ cli }}” -
name: Add Context
asa_config:
lines: -
allocate-interface Port-channel1.102
-
allocate-interface Port-channel1.610
-
config-url disk0:/rhat.cfg
parents: [‘context rhat’]
context: system
provider: “{{ cli }}”
The play seems to run correctly:
changed: [csn-sjc18-asa1.ciscolabs.net] => {
“changed”: true,
“invocation”: {
“module_args”: {
“after”: null,
“auth_pass”: null,
“authorize”: false,
“backup”: false,
“before”: null,
“config”: null,
“context”: “system”,
“default”: false,
“host”: “csn-sjc18-asa1.ciscolabs.net”,
“lines”: [
“vlan 610”
],
“match”: “line”,
“parents”: [
“interface Port-channel1.610”
],
“password”: “VALUE_SPECIFIED_IN_NO_LOG_PARAMETER”,
“port”: null,
“provider”: {
“host”: “csn-sjc18-asa1.ciscolabs.net”,
“password”: “VALUE_SPECIFIED_IN_NO_LOG_PARAMETER”,
“transport”: “cli”,
“username”: “admin”
},
“replace”: “line”,
“save”: false,
“show_command”: “show running-config”,
“src”: null,
“ssh_keyfile”: null,
“timeout”: 10,
“transport”: “cli”,
“username”: “admin”
}
},
“updates”: [
“interface Port-channel1.610”,
“vlan 610”
]
}
But the changes never show up in the config… not sure why. This is an ASA 5585-40 running Version 9.4(3)11. Anyone have any pointers how I can debug this?
Thanks,
Steven.