Chaining connection plugins

okapi
Tue, 22 Jul 2025 15:51:13 +0000
Get Help

Is it possible to chain multiple connection plugins together. Specifically, I would want ansible to:

Connect to my jail host with ssh

Use the jail connection plugin to attach to a jail

Following an example intended for lxc, I set ansible_host to the form host:jail. However, I just get a message saying “jail connection requires running as root”. Passing -kuroot, it will prompt for an SSH password. Is this not working an error on my part, an ansible limitation or perhaps a bug/limitation in the jail connection plugin.

6 posts - 4 participants