Describe the bug
Attempted with a fresh LXD container with maas-test-db installed alongside.
Deploying only a MAAS region as snap works perfectly fine.
Deploying a MAAS region as deb throws a large error relating to missing ipv4/ipv6 addresses of a postgres db.
tl;dr the playbook expects you to have a postgres host attached when writing regiond.conf
Reproducing
Provide the following, limited to relevant sections
TASK [maas_region_controller : Update regiond.conf] ****************************
task path: /home/skiy/GitHub/maas-ansible-playbook/roles/maas_region_controller/tasks/install_maas.yaml:33
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ansible.errors.AnsibleUndefinedVariable: {{ hostvars[groups['maas_postgres'][0]]['ansible_default_ipv6']['address']|d('') }}: list object has no element 0. list object has no element 0. {{ hostvars[groups['maas_postgres'][0]]['ansible_default_ipv6']['address']|d('') }}: list object has no element 0. list object has no element 0
fatal: [10.10.0.20]: FAILED! => {"changed": false, "msg": "AnsibleUndefinedVariable: {{ hostvars[groups['maas_postgres'][0]]['ansible_default_ipv6']['address']|d('') }}: list object has no element 0. list object has no element 0. {{ hostvars[groups['maas_postgres'][0]]['ansible_default_ipv6']['address']|d('') }}: list object has no element 0. list object has no element 0"}
Expected behaviour
Deb should be able to complete install as Snap does.
Describe the bug Attempted with a fresh LXD container with maas-test-db installed alongside. Deploying only a MAAS region as snap works perfectly fine. Deploying a MAAS region as deb throws a large error relating to missing ipv4/ipv6 addresses of a postgres db.
tl;dr the playbook expects you to have a postgres host attached when writing regiond.conf
Reproducing Provide the following, limited to relevant sections
Expected behaviour Deb should be able to complete install as Snap does.