24 lines
864 B
YAML
24 lines
864 B
YAML
---
|
|
## --------------------------------------------------------------- ##
|
|
## Automates the installation and setup of LXD hosts and instances ##
|
|
## --------------------------------------------------------------- ##
|
|
|
|
# XXX: https://github.com/lxc/lxd/tree/master/doc
|
|
|
|
- name: install LXD to the host
|
|
when: lxd.host is defined
|
|
ansible.builtin.include_tasks: host.yml
|
|
|
|
# XXX: externally add user to 'lxd' group
|
|
# TODO: where is the default backing storage located? ZFS dataset?
|
|
# TODO: permissions supporting running docker in LXC
|
|
|
|
- name: setup target as lxd instance
|
|
when: lxd.instance is defined
|
|
ansible.builtin.include_tasks: instance.yml
|
|
|
|
# TODO: https://lxd.readthedocs.io/en/latest/backup/#container-backup-and-restore
|
|
|
|
# XXX: adding the user to the user group 'lxd' enables root-like access to LXD
|
|
# this is similar in behavior with the `docker` group
|