title: How to format Ansible output
body: <p>I want to format Ansible output from:</p>
  
  <pre><code>my_local | SUCCESS | rc=0 &gt;&gt;
  116G
  
  my_local2 | SUCCESS | rc=0 &gt;&gt;
  116G
  </code></pre>
  
  <p>to </p>
  
  <pre><code>my_local &gt;&gt; 116G
  my_local2 &gt;&gt; 116G
  </code></pre>
  
  <p>Is it possible?</p>
  
  <p><strong><code>inventory.ini</code></strong>:</p>
  
  <pre><code>my_local ansible_connection=local
  my_local2 ansible_connection=local
  </code></pre>
  
  <p><strong>Bash command</strong>:</p>
  
  <pre><code>ansible all -i inventory.ini -u root -m shell -a "df -h / | tail -1 | awk '{print \$4}'"
  </code></pre>