Re: [ansible-project] Ansible 2.5 with cisco asa_command enable mode

2018-04-05 Thread Matthew Wyant
Playbook or ad-hoc? On Thu, Apr 5, 2018, 11:02 AM Rick Williams wrote: > 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: > > >

Re: [ansible-project] Re: Depreciated `ask_sudo_pass` works while new-hotness `ask_become_pass` fails

2018-03-30 Thread Matthew Wyant
It's always something simple. I've stared at that section of the documentation for hours, not sure how I missed it. Thanks! On Thu, Mar 29, 2018 at 7:23 PM, flowerysong <ezeki...@umich.edu> wrote: > On Thursday, March 29, 2018 at 7:52:44 PM UTC-4, Matthew Wyant wrote: >> >&

[ansible-project] Depreciated `ask_sudo_pass` works while new-hotness `ask_become_pass` fails

2018-03-29 Thread Matthew Wyant
I'm in the middle of migrating our Ansible projects to 2.5. Specifically, moving to the new network_cli connection module. So far, everything is working well, except using the `become` framework. The short of it is, in `ansible.cfg`, `ask_sudo_pass = True` has the desired effect of prompting

Re: [ansible-project] Identify if host being processed is the first in any the groups being processed

2017-10-02 Thread Matthew Wyant
Yes, there is a "groups" variable which is a dictionary with group name keys where the values are a list of hosts in that group. That is, groups[dev_cluster] = ["server1", "server2", "server3"]. So you can do a inventory_hostname == groups[dev_cluster][0] comparison for the first item. Note: I