Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- - hosts: ora-pp
- user: ansible
- become: yes
- become_method: sudo
- connection: ssh
- tasks:
- - name: check all the updates
- yum:
- list: updates
- register: output
- - debug: var=output
- - name: parseoutput
- set_fact:
- #output1: "{{output |to_json}}"
- #- debug: msg="{{output |to_json}}"
- - debug: msg="{{ output.results | json_query('output.results[0].name') }}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement