Help Ansible playbook route /api/cypher

Goodnight,

Could someone help me to create an ansible playbook using the /api/cypher/{cypherPath} API route.
I need to create a tfvars via ansible.

These tasks would probably do the job:

- name: Create user json
  set_fact:
    secret_name: "tftest"
    tfvar_json:
      value: "\"var1=value1\"\\n\"var2=value2\""

- name: Create tfvars secret
    uri:
      url: "{{ morph_url }}/api/cypher/tfvars/{{ secret_name }}?type=string"
      method: post
      headers:
        authorization: "BEARER {{ morpheus_token }}"
      body_format: json
      body: "{{ tfvar_json }}"
      validate_certs: false