Ansible role to pre-copy images and eventually pre-configure some.
It was tested on the following versions:
- 2.0
- 2.2
- 2.5
Tested on Ubuntu 18.04, 20.04 and 22.04.
Just include this role in your list. For example
- host: all
roles:
- juju4.lxdconfigure
Nothing specific for now.
This role has a travis test calling kitchen with lxd (for github), kitchen local with vagrant+virtualbox and also a Vagrantfile (test/vagrant).
Once you ensured all necessary roles are present, You can test with:
$ cd /path/to/roles/juju4.lxdconfigure
## lxd backend
$ kitchen verify
$ kitchen login
## vagrant+virtualbox backend
$ KITCHEN_YAML=".kitchen.vagrant.yml" kitchen verify
or
$ cd /path/to/roles/juju4.lxdconfigure/test/vagrant
$ vagrant up
$ vagrant ssh
- virtualization detection issue with ansible < 2.2.0 lxc might appears as kvm for example. ansible/ansible#17030 ansible/ansible#17151
BSD 2-clause