Bug 1200655 - Ansible package does not include all the modules from ansible-modules-extras, notably crypttab
Summary: Ansible package does not include all the modules from ansible-modules-extras,...
Alias: None
Product: Fedora
Classification: Fedora
Component: ansible
Version: 21
Hardware: x86_64
OS: Linux
Target Milestone: ---
Assignee: Kevin Fenzi
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2015-03-11 05:27 UTC by erin.dru
Modified: 2015-03-11 18:05 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2015-03-11 18:05:54 UTC
Type: Bug

Attachments (Terms of Use)

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):

How reproducible:

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.

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