Customise and build LXD images using Packer + Ansible
- LXD
- Ansible
- Packer (Installation script provided in repo if needed)
- Ubuntu 22.04
- Mint Una 20.3
To build a new image customised via the Ansible playbook
git clone https://github.com/AdamGoldsmith/packer-lxd.git
cd packer-lxd
./install_packer.sh
cd packer
packer build lxd-ansible-local.json.pkr.hcl
- Referenced material at Blagovest Petrov's great blog site
- Honour Ansible output colouring
- localhost commands will run as root by default