Updated for using the local mgmt ip address only.
diff --git a/tasks/main.yml b/tasks/main.yml index 3a7c393..aad17a3 100644 --- a/tasks/main.yml +++ b/tasks/main.yml
@@ -39,24 +39,24 @@ uuid: '{{ edge_mp_self.uUID }}' when: edge_mp_self is defined and server_type == 'mp' - - block: - - name: Use public {{ public_mgmt_ip }} to set reachability to {{ reachability }} if set - uri: - user: '{{ opdk_user_email }}' - password: '{{ opdk_user_pass }}' - method: POST - body_format: raw - url: "http://{{ public_mgmt_ip }}:{{ ms_ext_mgmt_port }}/v1/servers/{{ uuid }}" - body: reachable={{ reachability }} - rescue: - - name: Use local {{ local_mgmt_ip }} to set reachability to {{ reachability }} if set - uri: - user: '{{ opdk_user_email }}' - password: '{{ opdk_user_pass }}' - method: POST - body_format: raw - url: "http://{{ local_mgmt_ip }}:{{ ms_ext_mgmt_port }}/v1/servers/{{ uuid }}" - body: reachable={{ reachability }} +# - block: +# - name: Use public {{ public_mgmt_ip }} to set reachability to {{ reachability }} if set +# uri: +# user: '{{ opdk_user_email }}' +# password: '{{ opdk_user_pass }}' +# method: POST +# body_format: raw +# url: "http://{{ public_mgmt_ip }}:{{ ms_ext_mgmt_port }}/v1/servers/{{ uuid }}" +# body: reachable={{ reachability }} +# rescue: + - name: Use local {{ local_mgmt_ip }} to set reachability to {{ reachability }} if set + uri: + user: '{{ opdk_user_email }}' + password: '{{ opdk_user_pass }}' + method: POST + body_format: raw + url: "http://{{ local_mgmt_ip }}:{{ ms_ext_mgmt_port }}/v1/servers/{{ uuid }}" + body: reachable={{ reachability }} when: uuid is defined when: self_status