Bug 1301225 - ansible missing find module
ansible missing find module
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: ansible (Show other bugs)
23
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Kevin Fenzi
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-01-22 17:20 EST by Aleksandar Kostadinov
Modified: 2016-01-22 19:10 EST (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-01-22 19:10:21 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Aleksandar Kostadinov 2016-01-22 17:20:15 EST
Description of problem:
]$ ansible-playbook -v -i some-playbook-with-find-task-devenvs.yml 
ERROR: find is not a legal parameter in an Ansible task or handler
]$ ansible-playbook --version
ansible-playbook 1.9.4
  configured module search path = None


example playbook:
---
- name: fix sudo
  sudo: yes
  gather_facts: no
  hosts:
    - OSEv3:children
  tasks:
    - name: Get Node Dir Path
      # dunno why find module not found
      find: paths="/openshift.local.config" patterns="node*"
      register: node_path
Comment 1 Kevin Fenzi 2016-01-22 19:10:21 EST
The find module was added in ansible 2.0. ;) 

https://docs.ansible.com/ansible/find_module.html

"New in version 2.0"

You can get version 2.0.0.x from updates-testing: 

dnf --enablerepo=updates-testing update ansible

Note You need to log in before you can comment on or make changes to this bug.