# Ansible 2.5 with cisco asa\_command enable mode

**URL:** <https://forum.ansible.com/t/ansible-2-5-with-cisco-asa-command-enable-mode/27199>\
**Category:** Ansible Project\
**Created:** [April 5, 2018, 6:02pm UTC](https://forum.ansible.com/t/ansible-2-5-with-cisco-asa-command-enable-mode/27199 "2018-04-05T18:02:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rick\_Williams](https://avatars.discourse-cdn.com/v4/letter/r/f17d59/32.png) [@Rick\_Williams](https://forum.ansible.com/u/Rick_Williams)\
**Post date:** [April 5, 2018, 6:02pm UTC](https://forum.ansible.com/t/ansible-2-5-with-cisco-asa-command-enable-mode/27199/1 "2018-04-05T18:02:16Z")

</div>

Hi,

Can anyone share how to use the provided asa\_command module to get into enable mode with Ansible 2.5 ?

I’m reading this:

[https://docs.ansible.com/ansible/devel/modules/asa\_command\_module.html#asa-command](https://docs.ansible.com/ansible/devel/modules/asa_command_module.html#asa-command)

… and trying many different ways, but no joy.

Regards,

Rick

---

<div class="post-metadata">

**Author:** ![Rick\_Williams](https://avatars.discourse-cdn.com/v4/letter/r/f17d59/32.png) [@Rick\_Williams](https://forum.ansible.com/u/Rick_Williams)\
**Post date:** [April 5, 2018, 7:23pm UTC](https://forum.ansible.com/t/ansible-2-5-with-cisco-asa-command-enable-mode/27199/2 "2018-04-05T19:23:09Z")

</div>

I’m still learning more about this, but I have found that by using the following on the command line I can get the playbook into enable mode:

ansible-playbook -v -u admin -kK -e ansible\_network\_os=asa -e ansible\_become\_method=enable -e ansible\_become=True testfw\_dir.yml

---

<div class="post-metadata">

**Author:** ![Matthew\_Wyant](https://avatars.discourse-cdn.com/v4/letter/m/c0e974/32.png) [@Matthew\_Wyant](https://forum.ansible.com/u/Matthew_Wyant)\
**Post date:** [April 5, 2018, 11:49pm UTC](https://forum.ansible.com/t/ansible-2-5-with-cisco-asa-command-enable-mode/27199/3 "2018-04-05T23:49:26Z")

</div>

Playbook or ad-hoc?
