list and update lxc containers with ansible?

77 views
Skip to first unread message

Robert Kruck

unread,
May 24, 2021, 12:32:16 PM5/24/21
to Ansible Project
I see a lot of modules that will create, start, stop lxc containers, but none seem to be able to  provide a solution to list containers on a host or update them.  Has anyone found a module to do this other than  using the command or shell module?

Thanks
Robert

Brian Coca

unread,
May 24, 2021, 12:50:30 PM5/24/21
to Ansible Project
There are several inventory plugins and scripts that allow you to
'list' the lxc containers. As for updating, you can look into the
lxc/lxd connection plugins that allow most modules to operate inside
the containers.


-----------
Brian Coca

Robert

unread,
May 24, 2021, 1:00:01 PM5/24/21
to ansible...@googlegroups.com
Thanks Brian,

I was almost positive there was a solution, I just didn't know what to  look for.

Robert

--
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 ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CACVha7cGOKXGEfXUdFG9xpzvPdqnUoRvRhJ0Fhx29Es0g_dsuQ%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages