https://github.com/ansible/ansible/issues/71371

Here is also a similiar problem but could not find a solution out of it

On Saturday, October 1, 2022 at 2:21:56 AM UTC+5:30 Vichu wrote:

>
> Hi Brain,
>
> Can you elloborate the 3rd paragraph, so i can understand. Thanks in 
> advance.
> On Saturday, October 1, 2022 at 1:19:08 AM UTC+5:30 Brian Coca wrote:
>
>> A few things,
>>
>> The connection: keyword just changes the connection, while delegation
>> changes the target host.
>>
>> When using connection: local you end up executing on the controller
>> (your connection is a local fork instead), not delegating to
>> localhost, there is another step on that. Use delegate_to: localhost
>> is what you normally want to do.
>>
>> if you delegate_to: vm_name but set connection to local, you are not
>> really connecting to vm_name (unless you are overriding the connection
>> in other ways, like via connection variable). So they work together
>> and did what you asked them to, it is just that what you asked them to
>> do makes little sense.
>>
>> -- 
>> ----------
>> Brian Coca
>>
>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/ec80da9f-2d9a-4014-89f8-d89f4d0bfa3bn%40googlegroups.com.

Reply via email to