diff --git a/roles/k3s/tasks/config-neutron.yml b/roles/k3s/tasks/config-neutron.yml index a76f41c9..21de8182 100644 --- a/roles/k3s/tasks/config-neutron.yml +++ b/roles/k3s/tasks/config-neutron.yml @@ -4,9 +4,10 @@ module_name: os_network module_args: auth: "{{ openstack_auth }}" + project: "{{ keystone_admin_project }}" name: caliconet provider_network_type: flat - provider_physical_network: calico + provider_physical_network: {{ physical_network_calico }} shared: yes state: present run_once: true @@ -17,6 +18,7 @@ module_name: os_subnet module_args: auth: "{{ openstack_auth }}" + project: "{{ keystone_admin_project }}" network_name: caliconet name: caliconet-subnet cidr: "{{ k3s_cluster_cidr }}" @@ -28,9 +30,10 @@ module_name: os_network module_args: auth: "{{ openstack_auth }}" + project: "{{ keystone_admin_project }}" name: tunelo-calico provider_network_type: flat - provider_physical_network: tunelo + provider_physical_network: {{ physical_network_tunelo }} shared: false become: yes @@ -39,6 +42,7 @@ module_name: os_subnet module_args: auth: "{{ openstack_auth }}" + project: "{{ keystone_admin_project }}" network_name: tunelo-calico name: tunelo-calico-subnet cidr: "{{ k3s_tunelo_cidr }}" @@ -53,6 +57,7 @@ module_name: os_router module_args: auth: "{{ openstack_auth }}" + project: "{{ keystone_admin_project }}" name: sharednet-router # interfaces: # - caliconet-subnet @@ -71,3 +76,4 @@ neutron_router_id: "{{ calico_router.router.id }}" when: - k3s_enable_calico | bool + become: yes