Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- - name : test
- hosts: all
- gather_facts: no
- tasks:
- - name: search ip
- raw : sed -n '/{{ itemย }}/p' /etc/passwd
- register: my_info
- with_items:
- - root
- - ftp
- - debug:
- msg : "{{ my_info.results | map(attribute='stdout_lines') | list}}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement