I've encountered a couple of modules where target hosts that are accessed 
an intermediate host don't seem to work in a naive way. I'm wondering if 
this is a known issue and whether there are any workarounds. The latest 
version concerns the `apt` module.  Here's a snippet from my inventory file:

target_host ansible_host=localhost:4321 ansible_user=user host_key_checking=
false

A simple stanza is:

```

- name: Remove CA certificate bundle

  tags:

      - oneoff

  apt:

      name: ca-certificates

      state: absent
```

When I run this playbook, I get this error:
```

TASK [upgrade : Remove CA certificate bundle] 
***********************************************************************************************************************************

*fatal: [target_host]: UNREACHABLE! => {"changed": false, "msg": "SSH 
Error: data could not be sent to remote host \"localhost:4321\". Make sure 
this host can be reached over ssh", "unreachable": true}*
```

The module `rsync` has similar issues. Any thoughts on how to work around 
this, other than just using `shell`?

tc

-- 
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/588bf16d-400b-4fdd-9bbf-2f32a2b5da70%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to