title: how to split value in Ansible with delimiter
body: <p>I am setting a fact in Ansible and that variable has a value with hyphens, like this "<strong>dos-e1-south-209334567829102380</strong>". i want to split , so i  only get <strong>"dos-e1-south"</strong></p>
  
  <p>Here is the play</p>
  
  <pre><code>- set_fact:
      config: "{{ asg.results|json_query('[*].launch_configuration_name') }}"
  
  - debug:
      var: config
  </code></pre>