title: ansible output printing unwanted things. how to format and display only specific data's
body: <p>I am using ansible 2.4 in centos, trying to run the below script in remote servers and getting the output. Here the problem is yum info output is showing with json format also. But i need to display only the output. How to remove the json format.</p>
  
  <pre><code>---
  
  - hosts: GeneralServer
  
    tasks:
    - name: Checking the service status
      shell: systemctl status {{ item }}
      with_items:
          - httpd
          - crond
          - postfix
          - sshd
      register: service
    - debug: var=service
    - name: Checking the package info
      shell : yum info {{ item }}
      with_items:
          - httpd
          - postfix
      register: info
    - debug: var=info
    - name: Executing the mysql running scripts in mysql
      shell: mysql -u username --password mysql -Ns -e 'show databases;'
      register: databases
    - debug: var=databases 
  </code></pre>
  
  <p>Also i am new in callback Module. Please help me to resolve this issue.</p>
  
  <h1>Is it possibile to display only stdout_lines values only.</h1>