Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

find module documentation faulty #3029

Closed
Yannik opened this issue Feb 12, 2016 · 0 comments
Closed

find module documentation faulty #3029

Yannik opened this issue Feb 12, 2016 · 0 comments

Comments

@Yannik
Copy link

Yannik commented Feb 12, 2016

Issue Type: Bug Report
Ansible Version: 2.0.2
Ansible Configuration: default configuration
Environment: debian jessie
Summary:

The provided example

- find: paths="/var/tmp" patterns="'*.old','*.log.gz'" size="10m"

in the find module documentation is faulty.

Steps To Reproduce:

Run a playbook like this:


---
- hosts: localhost
  tasks:
  - find: paths="/var/tmp" patterns="'*.old','*.log.gz'" size="10m"

ansible-playbook -vvvvv test.yml

Expected Results:
ok: [localhost] => {
"invocation": {
"module_args": {"patterns": ["*.old", "*.log.gz"]}, "module_name": "find"}, "
""}                                                                                                                                            

Matches files ending in *.old or *.log.gz.

Actual Results:
ok: [localhost] => {
"invocation": {
"module_args": {"patterns": ["'*.old'", "'*.log.gz'"]}, "module_name": "find"}, "
""}                                                                                                                                            

No matches if there are files ending in *.old or *.log.gz.

patterns=['*.old','*.log.gz']
does not work either.

@bcoca bcoca added this to the stable-2.0 milestone Feb 12, 2016
@bcoca bcoca closed this as completed in 6a42e54 Feb 12, 2016
bcoca added a commit that referenced this issue Feb 12, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants