Friends:

Thank you in advance for your time and attention.

Here is the playbook

---

- hosts: all
  gather_facts: no
  tasks:

  - name: "Testing if I can list the home folder"
    find:
      paths: $HOME
    register: files_matched

  - name: "Output data"
    debug:
      msg: "Testing {{ item.path }}"
    with_items: "{{ files_matched.files }}"
    #loop:
      #- "{{ files_matched.files|flatten(levels=1) }}"


Here is the output
.....
......
ok: [cdl-z4-01.es.ad.adp.com] => (item={'uid': 1000, 'woth': False, 
'mtime': 1450139013.0, 'inode': 1351746, 'isgid': False, 'size': 11814683, 
'roth': False, 'isuid': False, 'isreg': True, 'pw_name': 'virtual', 'gid': 
10, 'ischr': False, 'wusr': True, 'xoth': False, 'rusr': True, 'nlink': 1, 
'issock': False, 'rgrp': True, 'gr_name': 'wheel', 'path': 
'/home/virtual/buzz.war', 'xusr': False, 'atime': 1542161791.0, 'isdir': 
False, 'ctime': 1450139013.0, 'isblk': False, 'xgrp': False, 'dev': 2049, 
'wgrp': False, 'isfifo': False, 'mode': '0640', 'islnk': False}) => {
    "msg": "Testing /home/virtual/buzz.war"
}

......
....

===============

The output above shows the msg correctly.

However I see the ok line with hostname and extra information.

Am I doing something differently ?

Please help.

Thank you in advance for your time and attention.
-N

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/1f77e77a-1b52-4e14-a13f-aaead0ba5157%40googlegroups.com.

Reply via email to