* Question*: I have two tasks created, each requires a login credential for
the device. When I run the playbook, it seems like the ansible has to login
twice to the device (logs in, completes first task and logs out, login
again, completes second task and logs out). This is making the operation
Any help is highly appreciated!
On Tue, Sep 18, 2018 at 11:54 AM Krishna N wrote:
> Hi Jason,
> Thanks for replying. That's definitely another way of doing it. However,
> this is what I am trying.
>
> 1. Get the ntp server config from "sh run".
> 2. Store that t
Greetings!
How to compare when items are not in jinja template loop?
with_items: "{{ runconfser.stdout_lines[0] }}"
when: (item not in {src: 'ntprequired.j2'} and (item!=""))
ios_config:
lines:
- "no {{ item }}"
I am using roles.
*/templates/ntprequired.j2*:
{% for
w if you still have issues after trying this.
>
>
>
> On Mon, Sep 17, 2018 at 5:40 PM Krishna N wrote:
>
>> Greetings!
>>
>> How to compare when items are not in jinja template loop?
>>
>> with_items: "{{ runconfser.stdout_lines[0] }}"
>&g