Hi, if I have a machine running in an Ubuntu lxd container (without a sshd ), I can tell ansible in the inventory something like
someserver ansible_connection=lxd which makes ansible use the lxc exec command instead of ssh. This works if the ansible and the lxd host are running on the same machine. But how would I tell ansible to do that (without annoying delegates in every single task) to access the container if lxd is running on a different machine? e.g. A machine running ansible with ssh access to B B machine running a sshd and lxd someserver a lxd container without sshd running on B without delegate clauses (playbook should run for different targets, not all on lxd) regards :-) -- 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/d364e916-7c6c-4177-b1c5-28cfac844813%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
