$ lxc remote list

+-----------------+------------------------------------------+
|      NAME       |                   URL                    |
+-----------------+------------------------------------------+
| images          | https://images.linuxcontainers.org       |
+-----------------+-------------------------+
| local (current) | unix://                 |
+-----------------+-------------------------+
| server          | https://server.lan:8443 |
+-----------------+-------------------------+

I want to create a container on the server remote (server:test) using 
ansible via the community.general.lxd_container plugin. I have looked over 
the documentation and various issues but cannot get anything to work.

I can create remote containers using...

ansible_connection: local

- name: Create container 
  ansible.builtin.command: lxc launch images:archlinux server:test

But I would like to get community.general.lxd_container working without ssh 
or LXD passwords if possible.

If someone could give me a working example with both an inventory file and 
task file it would be much appreciated.

Thank you.

-- 
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/67c9bee1-aea0-4902-be10-de3272bd3d36n%40googlegroups.com.

Reply via email to