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 1922060 - Sample playbook included for selfservice module is incorrect
Summary: Sample playbook included for selfservice module is incorrect
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: 1973166
TreeView+ depends on / blocked
 
Reported: 2021-01-29 06:54 UTC by Sudhir Menon
Modified: 2021-11-10 01:09 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:
: 1973166 (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-7290 0 None None None 2021-11-09 18:51:20 UTC
Red Hat Product Errata RHBA-2021:4268 0 None None None 2021-11-09 18:45:49 UTC

Description Sudhir Menon 2021-01-29 06:54:07 UTC
Description of problem: Sample playbook included for selfservice module is incorrect.

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

How reproducible:Always

Steps to Reproduce:
#ansible-playbook -i inventory/testday.hosts -vv /usr/share/doc/ansible-freeipa/ /playbooks/selfservice/selfservice-present.yml 

Actual results:
1. Playbook included in /usr/share/doc/ansible-freeipa/playbooks/selfservice/selfservice-present.yml is that of delegation

---
- name: Delegation present
  hosts: ipaserver
  become: true

  tasks:
  - name: Ensure delegation "basic manager attributes" is present
    ipadelegation:
      ipaadmin_password: SomeADMINpassword
      name: "basic manager attributes"
      permission: read
      attribute:
      - businesscategory


2. https://github.com/freeipa/ansible-freeipa/blob/master/playbooks/selfservice/selfservice-present.yml
fatal: [master.ipadomain.test]: FAILED! => {"changed": false, "msg": "delegation_add: basic manager attributes: 'memberof' is required"}

Expected results:
The sample playbook selfservice-present.yml is basically a delegation module playbook which needs to be corrected.

Additional info:

Comment 1 Rafael Jeffman 2021-02-01 21:28:11 UTC
There is an upstream PR to fix this issue: https://github.com/freeipa/ansible-freeipa/pull/505

Comment 2 Rafael Jeffman 2021-03-24 15:18:40 UTC
Upstream PR has been merged.

Comment 8 Varun Mylaraiah 2021-06-21 08:02:19 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)

[root@ansible ~]# cat /usr/share/doc/ansible-freeipa/playbooks/selfservice/selfservice-present.yml 
---
- name: Selfservice present
  hosts: ipaserver
  become: true

  tasks:
  - name: Ensure selfservice "basic manager attributes" is present
    ipaselfservice:
      ipaadmin_password: SomeADMINpassword
      name: "basic manager attributes"
      permission: read
      attribute:
      - businesscategory

[root@ansible ~]# cat /usr/share/doc/ansible-freeipa/playbooks/selfservice/selfservice-member-present.yml 
---
- name: Selfservice member present
  hosts: ipaserver
  become: true

  tasks:
  - name: Ensure selfservice "basic manager attributes" member attribute departmentnumber is present
    ipaselfservice:
      ipaadmin_password: SomeADMINpassword
      name: "basic manager attributes"
      attribute:
      - departmentnumber
      action: member

Comment 10 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.