title: Getting a value in a variable from a command output and using using that variable in next command in ansible
body: <pre><code>ok: [localhost] =&gt; {
      &quot;command_output.stdout_lines&quot;: [
          &quot;Enter SYS, SYSTEM and PDB Admin user password: &quot;,
          &quot;Retype SYS, SYSTEM and PDB Admin user password: &quot;,
          &quot;{&quot;,
          &quot;  \&quot;jobId\&quot; : \&quot;17d14f12-4403-48f6-a0fe-00d645af86a9\&quot;,&quot;,
          &quot;  \&quot;status\&quot; : \&quot;Created\&quot;,&quot;,
          &quot;  \&quot;message\&quot; : null,&quot;,
          &quot;  \&quot;reports\&quot; : [ ],&quot;,
          &quot;  \&quot;createTimestamp\&quot; : \&quot;February 02, 2022 12:08:00 PM UTC\&quot;,&quot;,
          &quot;  \&quot;resourceList\&quot; : [ ],&quot;,
          &quot;  \&quot;description\&quot; : \&quot;Database service creation with db name: AkashDB4\&quot;,&quot;,
          &quot;  \&quot;updatedTime\&quot; : \&quot;February 02, 2022 12:08:00 PM UTC\&quot;&quot;,
          &quot;}&quot;
      ]
  }
  </code></pre>
  <p>How do I get the value of jobId into a variable in ansible ?</p>