Formatting Data in Ansible

Gini Gini Follow · 1 min read
Formatting Data in Ansible
Share this

Process JSON Data

    - name: Display the JSON file and collect data
      shell: cat 
      register: result
    - name: Save the Json data to a Variable
         jsondata: ""

    - name: setDomainName
          domain_name: ""
          jmesquery: ''

    - name: Server Names
        servernames:  ""
        jmesquery: '*.servers[*].name'


Written by Gini Follow
Backpacker, Foodie, Techie

Latest Stories

How to Pass CKA & CKAD Exams ? 10 Tips for Kubernetes Exams

Here see the best tips for Kubernetes Exams - Certified Kubernetes Administrator (CKA) & Certified Kubernetes Application Developer (CKAD).

In kubernetes, Jul 08, 2020
CKA & CKAD - Kubernetes Exam Tips, Learning Path and Certification

Since kubernetes is getting wide acceptance, Kubernetes Certification is the most trending one in IT circle now. I have completed both recently (March – April 2020) and I started gett...

In kubernetes, May 03, 2020
Start Your OpenShift Journey with these Free Red Hat Training Programs

Red Hat OpenShift Container Platform is one of the best kubernetes platform for enterprises. As we know kubernetes and OpenShift are multi-component stack and not easy to learn withou...

In openshift, Mar 09, 2020
Installing oVirt 4 with Self-Hosted Engine on Enterprise Linux

oVirt is one of the best free and open-source virtualization solution with enterprise level features. Installing oVirt cluster is simple and straight forward and you can refer the ins...

In oVirt, Mar 05, 2020