RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1921654 - Remove unsupported parameter for (ipapermission) module: perm_rights from permission-present.yml
Summary: Remove unsupported parameter for (ipapermission) module: perm_rights from per...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: ansible-freeipa
Version: 8.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: Rafael Jeffman
QA Contact: ipa-qe
URL:
Whiteboard:
Depends On:
Blocks: 1973167
TreeView+ depends on / blocked
 
Reported: 2021-01-28 11:53 UTC by Sudhir Menon
Modified: 2021-11-10 01:08 UTC (History)
4 users (show)

Fixed In Version: ansible-freeipa-0.3.6-1.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1973167 (view as bug list)
Environment:
Last Closed: 2021-11-09 18:45:36 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FREEIPA-7288 0 None None None 2021-11-09 18:51:11 UTC
Red Hat Product Errata RHBA-2021:4268 0 None None None 2021-11-09 18:45:49 UTC

Description Sudhir Menon 2021-01-28 11:53:03 UTC
Description of problem: Remove unsupported parameter for (ipapermission) module: perm_rights from permission-present.yml


Version-Release number of selected component (if applicable):
ansible-freeipa-0.3.2-1.el8.noarch

How reproducible:
Always

Steps to Reproduce:
#[root@ansible ~]# ansible-playbook -i inventory/master.hosts -vv /usr/share/doc/ansible-freeipa/playbooks/permission/permission-present.yml


Actual results:
fatal: [master.ipadomain.test]: FAILED! => {"changed": false, "msg": "Unsupported parameters for (ipapermission) module: perm_rights Supported parameters include: action, attrs, bindtype, extra_target_filter, ipaadmin_password, ipaadmin_principal, memberof, name, no_members, object_type, rawfilter, rename, right, state, subtree, target, targetfrom, targetgroup, targetto"}

Expected results:
Need to include supported parameters in the sample playbook i.e 'ipapermright', otherwise the permission-present.yml will always fail.

Additional info:

Comment 1 Sudhir Menon 2021-01-28 12:01:07 UTC
---
- name: Permission present example
  hosts: ipaserver
  become: true

  tasks:
  - name: Ensure permission TestPerm1 is present
    ipapermission:
      name: TestPerm1
      object_type: host
      perm_rights: all

Comment 2 Rafael Jeffman 2021-02-01 21:08:40 UTC
There is an upstream PR to fix this issue: https://github.com/freeipa/ansible-freeipa/pull/504

Comment 3 Rafael Jeffman 2021-03-24 15:22:41 UTC
The upstream PR has been merged.

Comment 10 Varun Mylaraiah 2021-06-21 08:05:16 UTC
Verified:

ansible-freeipa-0.3.6-3.el8.noarch
ipa-server-4.9.3-1.module+el8.5.0+10565+ae980a94.x86_64

# cat /etc/redhat-release
Red Hat Enterprise Linux release 8.5 Beta (Ootpa)

The correct sample playbook is available for permission-present.yml.
ipapermright|right is added in permission-present.yml

# cat /usr/share/doc/ansible-freeipa/playbooks/permission/permission-present.yml 
---
- name: Permission present example
  hosts: ipaserver
  become: true

  tasks:
  - name: Ensure permission is present
    ipapermission:
      ipaadmin_password: SomeADMINpassword
      name: TestPerm1
      object_type: host
      right: all

Comment 12 errata-xmlrpc 2021-11-09 18:45:36 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (ansible-freeipa bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:4268


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