Extra output in find module, am I doing something wrong

11 views
Skip to first unread message

Narahari 'n' Savitha

unread,
Aug 10, 2019, 1:49:24 PM8/10/19
to Ansible Project
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

Narahari 'n' Savitha

unread,
Aug 11, 2019, 4:11:57 PM8/11/19
to Ansible Project
Hello All:

Any one else seeing this or is it just me ?

-Narahari

Kai Stian Olstad

unread,
Aug 11, 2019, 4:59:10 PM8/11/19
to ansible...@googlegroups.com
On 11.08.2019 22:11, Narahari 'n' Savitha wrote:
> Hello All:
>
> Any one else seeing this or is it just me ?

That is the normal output for the debug module.


--
Kai Stian Olstad
Reply all
Reply to author
Forward
0 new messages