Hi!

On Fri, 26 Feb 2021 22:13:19 +0100
Juerg Ritter <[email protected]> wrote:

> - name: Remote Port Test
>   hosts: localhost
>   tasks:
>   - name: delegate command
>     command: whoami
>     delegate_to: rhel8
>     vars:
>       ansible_ssh_port: 2222

Intuitively, I'd expect `delegate_facts: True` is needed to change the
port of rhel8.
https://docs.ansible.com/ansible/latest/user_guide/playbooks_delegation.html#delegating-facts

-- 
Vladimir Botka

-- 
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/20210226222821.3f455269%40gmail.com.

Attachment: pgpc7XVRYXLFr.pgp
Description: OpenPGP digital signature

Reply via email to