diff --git a/ansible/README.md b/ansible/README.md index 17438c5..ecd837d 100644 --- a/ansible/README.md +++ b/ansible/README.md @@ -23,6 +23,7 @@ - `rgw`: A RADOS (object) Gateway, used to expose an S3 API on top of Ceph objects ## Incus + - `incus_cluster_ip_address`: Override for the server's cluster IP address (type: string, default: value of `incus_ip_address`) - `incus_name`: Name identifier for the deployment (**required**, type: string) - `incus_init`: Initial configuration data (type: dict) - `config`: Dict of config keys diff --git a/roles/incus/tasks/installation.yml b/roles/incus/tasks/installation.yml index cad5b6b..55a3693 100644 --- a/roles/incus/tasks/installation.yml +++ b/roles/incus/tasks/installation.yml @@ -124,7 +124,7 @@ changed_when: true - name: Set cluster listen address - ansible.builtin.command: "incus --force-local config set cluster.https_address {{ incus_ip_address_or_default }}" + ansible.builtin.command: "incus --force-local config set cluster.https_address {{ incus_cluster_ip_address | default(incus_ip_address_or_default) }}" when: '(incus_install_deb.changed or incus_install_rpm.changed) and "cluster" in incus_roles and incus_servers[0] == inventory_hostname' changed_when: true