Bug 1301225 - ansible missing find module
Summary: ansible missing find module
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: ansible
Version: 23
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Kevin Fenzi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-22 22:20 UTC by Aleksandar Kostadinov
Modified: 2016-01-23 00:10 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-01-23 00:10:21 UTC
Type: Bug


Attachments (Terms of Use)

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


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