Bug 1301225

Summary: ansible missing find module
Product: [Fedora] Fedora Reporter: Aleksandar Kostadinov <akostadi>
Component: ansibleAssignee: Kevin Fenzi <kevin>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: a.badger, athmanem, kevin, kupo, mark, maxim
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-01-23 00:10:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Aleksandar Kostadinov 2016-01-22 22:20:15 UTC
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-23 00:10:21 UTC
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