title: Remove slashes and quotes
body: <p>I've written the following Ansible to access Azure for automation I'm building.</p>
  <p>This is the output, <code>   &quot;msg&quot;: &quot;\&quot;6d23f7f3-b712-421d-a911-ec73cd18ff8b\&quot;, \&quot;ansible\&quot;, \&quot;Wfq5-rdMKpv_5HWvr5SJzkzMVfnExVRpv_\&quot;, \&quot;5f6e5ef8-7687-487b-a682-15830393472b\&quot;&quot;</code>
  I want to  remove the slashes and quotes in order to use the values in the create-for-rbac command.</p>
  <p>Also, I don't know whether I can loop through set_facts instead of having 4-separate commands.</p>
  <pre><code>- hosts: localhost
    connection: local
    gather_facts: yes
  
    tasks:
  
    #{
    #  &quot;appId&quot;: &quot;6d23f7f3-b712-421d-a911-ec73cd18ff8b&quot;,
    #  &quot;displayName&quot;: &quot;ansible&quot;,
    #  &quot;password&quot;: &quot;tsiQh~gR4S-IBHi8VBoPtWlYTS~r~jE8KF&quot;,
    #  &quot;tenant&quot;: &quot;5f6e5ef8-7687-487b-a682-15830393472b&quot;
    #}
  
    - name:
      command: az ad sp create-for-rbac --name ansible --role Contributor
      register: rbac
  
    - name:
      set_fact:
        appId: &quot;{{ rbac.stdout_lines.1.split().1 }}&quot;
    - name:
      set_fact:
        displayName: &quot;{{ rbac.stdout_lines.2.split().1 }}&quot;
    - name:
      set_fact:
        password: &quot;{{ rbac.stdout_lines.3.split().1 }}&quot;
    - name:
      set_fact:
        tenant: &quot;{{ rbac.stdout_lines.4.split().1 }}&quot;
  
    - name:
      debug:
        msg: &quot;{{ appId }} {{ displayName }} {{ password }} {{ tenant }}&quot;
  
  
  #  - name: Create an Azure service principal
  #    command: az login --service-principal -u &quot;{{ myAppID }}&quot; -p &quot;{{ mypasswd }}&quot; --tenant &quot;{{ mytenant }}&quot;
  </code></pre>