uri update, fixed syntax
diff --git a/tasks/main.yml b/tasks/main.yml
index 96ee044..e8c4c1d 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -24,8 +24,7 @@
method: POST
body_format: raw
url: "http://{{ public_mgmt_ip }}:{{ ms_ext_mgmt_port }}/v1/servers/{{ uuid }}"
- body:
- reachable: '{{ reachable }}'
+ body: reachable={{ reachable }}
rescue:
- name: Use {{ local_mgmt_ip }} to set reachability to {{ reachable }} if set
uri:
@@ -34,6 +33,5 @@
method: POST
body_format: raw
url: "http://{{ local_mgmt_ip }}:{{ ms_ext_mgmt_port }}/v1/servers/{{ uuid }}"
- body:
- reachable: '{{ reachable }}'
+ body: 'reachable={{ reachable }}'
when: uuid is defined