Ansible, lxd error when installing XRoad: Attribute Error: NoneType has no attribute "items" lead to lxd_container.py
I was trying to install XRoad using Ansible and LXD with these steps:
sudo snap install lxd
lxd init
sudo apt update
sudo apt install software-properties-common
sudo add-apt-repository --yes --update ppa:ansible/ansible
sudo apt install ansible
ansible-playbook hosts -i hosts/lxd_hosts.txt xroad_init.yml
I got this error:
Attribute Error: NoneType has no attribute "items" leading to lxd_container.py
ansible-loop-var item: xroad-lxd-cs
Localhost ok=1 failed=1
The first time I was doing nearly exact same steps I didn't get any error. Now when I tried installing Xroad on a different VM (Ubuntu), I got this error.
I tried:
- Reinstalling LXD, Ansible (different versions)
- Installing python 3.12
- apt update + upgrade
- Change from bridged networking to NAT
- Reinstalling Ubuntu, Installing different versions of Xroad
Images of error: