Bug 1200655

Summary: Ansible package does not include all the modules from ansible-modules-extras, notably crypttab
Product: [Fedora] Fedora Reporter: erin.dru
Component: ansibleAssignee: Kevin Fenzi <kevin>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: a.badger, athmanem, kevin, kupo, maxim
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-11 18:05:54 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 erin.dru 2015-03-11 05:27:12 UTC
Description of problem:
Trying to use the 'crypttab' module in a playbook does not work. This module is part of 'ansible-modules-extras' which *is* included with the main distribution. The ansible package in Fedora includes some of the other modules in 'extras', just not crypttab.

Version-Release number of selected component (if applicable):
ansible-1.8.4-1.fc21

How reproducible:
Always

Steps to Reproduce:
1. Create a playbook.yml that uses the 'crypttab' task, eg:

    - name: add to crypttab
      crypttab: name=test password=password state=present
      sudo: true

2. Try to run against a machine.

Actual results:

Ansible fails with:
ERROR: crypttab is not a legal parameter in an Ansible task or handler
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.


Expected results:

Ansible performs the action using the crypttab module. In addition, I would expect running `repoquery -l ansible | grep crypt` to print the python files containing the crypttab module, as opposed to no results.

Additional info:

Comment 1 Toshio Ernie Kuratomi 2015-03-11 18:05:54 UTC
This looks to be an upstream bug.  For some reason the extras modules branch for 1.8.0-1.8.4 didn't include the commit adding crypttab.py: https://github.com/ansible/ansible-modules-extras/tree/release1.8.4/system

It is in the upcoming upstream 1.9rc1 so it will be there.  I'm updating the upstream docs to show that crypttab is added in 1.9 rather than 1.8.