Linux Containers or LXC provide a way to partition existing Linux hosts into separate environments using Linux cgroups, namespace isolation, POSIX capabilities and chrooted filesystems.

LXD, or a Linux Container Daemon, is a service written in Go which provides a REST API and CLI interface for Linux Container management.

The debops.lxd Ansible role can be used to install and configure the LXD service on a Debian or Ubuntu hosts. The role will use the debops.golang role to install the lxd and lxc binaries from upstream on Debian hosts.