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.

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/7a195c93-eaa3-4d3c-946d-0c69d74499df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to