I want to concat strings and variables imported from a yml file. For 
example:

---
- hosts: localhost
  vars_files:
      - config.yml
  tasks:
     - uri: 
          url: "https://url/to/dest/server";
          method: POST
          body: '{"key1":"value1","key2":"value2" }'
          user: "abc"
          password: "xyz"
          return_content: yes
          HEADER_Content-Type: "application/json"


In the value1 field I want to substitute a variable {{var1}}="12234" which 
is imported from config.yml. So how can I substitute it?

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/2310dd01-37ee-4a27-a494-103e38a2d978%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to