Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - hosts: localhost
- gather_facts: no
- become: True
- tasks:
- - name: get
- local_action: command cat ./data.txt
- register: data
- - set_fact: myvar="{{ data.stdout_lines | parse_show_platform(' ', 0, 3) }}"
- - debug: var="{{item}}"
- with_items: myvar
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement