mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-01-12 07:35:31 +01:00
Modify based on feedback
This commit is contained in:
parent
01f599cd7a
commit
d5f7cf0b22
2 changed files with 8 additions and 8 deletions
|
|
@ -636,7 +636,7 @@ def main():
|
|||
result = dict(changed=changed, rc=rc, cmd=cmdstr, stdout_lines=out_lines, msg=out_clean)
|
||||
|
||||
if quiet:
|
||||
changes = len(out_lines) - 1 if len(out_lines) >= 1 else 0
|
||||
changes = out.count(changed_marker) if changed else 0
|
||||
result['msg'] = "%s files/directories have been synchronized" % changes
|
||||
|
||||
if module._diff:
|
||||
|
|
|
|||
|
|
@ -241,7 +241,7 @@
|
|||
file:
|
||||
state: absent
|
||||
path: '{{ output_dir }}/{{ item }}'
|
||||
with_items:
|
||||
loop:
|
||||
- foo.result
|
||||
- bar.result
|
||||
- name: synchronize files without quiet option
|
||||
|
|
|
|||
Loading…
Reference in a new issue