Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1894502

Summary: [RFE] New management module ipatrust
Product: Red Hat Enterprise Linux 8 Reporter: Thomas Woerner <twoerner>
Component: ansible-freeipaAssignee: Thomas Woerner <twoerner>
Status: CLOSED ERRATA QA Contact: ipa-qe <ipa-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.4CC: amore, ksiddiqu, mvarun, ndehadra, pcech, pvoborni
Target Milestone: rcKeywords: FutureFeature, RFE
Target Release: 8.0Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ansible-freeipa-0.3.0-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-18 15:51:41 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:
Bug Depends On:    
Bug Blocks: 1894575    

Description Thomas Woerner 2020-11-04 11:21:11 UTC
New management module ipatrust

There is a new trust management module placed in the plugins folder:
plugins/modules/trust.py
The trust module allows to ensure presence and absence of trusts.

Here is the documentation for the module:
README-trust.md

New example playbooks have been added:
playbooks/trust/add-trust.yml
playbooks/trust/del-trust.yml
New tests added for the module:
tests/hbacrule/test_trust.yml

Upstream PR: https://github.com/freeipa/ansible-freeipa/pull/205

Comment 12 anuja 2020-12-16 06:07:22 UTC
Verified
2020-12-15T13:01:51+0000 ok: [ansible.runner.test] => (item=ansible-freeipa) => 
2020-12-15T13:01:51+0000   msg:
2020-12-15T13:01:51+0000   - arch: noarch
2020-12-15T13:01:51+0000     epoch: null
2020-12-15T13:01:51+0000     name: ansible-freeipa
2020-12-15T13:01:51+0000     release: 1.el8
2020-12-15T13:01:51+0000     source: rpm
2020-12-15T13:01:51+0000     version: 0.3.1
------------------------------------------------------------

2020-12-15T13:13:25+0000 PASSED                                                                   [ 90%]
2020-12-15T13:13:25+0000 ansible_freeipa_tests/trust_module.py::TestTrust::test_trust_with_invalid_range_type 
2020-12-15T13:13:25+0000 -------------------------------- live log call ---------------------------------
2020-12-15T13:13:25+0000 [pytest_multihost.host.Host.ansible.ParamikoTransport] INFO WRITE inventory/trust.hosts
2020-12-15T13:13:25+0000 [pytest_multihost.host.Host.ansible.ParamikoTransport] INFO PUT trust_present.yml
2020-12-15T13:13:25+0000 [pytest_multihost.host.Host.ansible.ParamikoTransport] INFO RUN ['ansible-playbook', '--ssh-extra-args="-o StrictHostKeyChecking=no"', '-vv', '-i', 'inventory/trust.hosts', 'trust_present.yml']
2020-12-15T13:13:28+0000 PASSED                                                                   [100%]
2020-12-15T13:13:28+0000 
2020-12-15T13:13:28+0000 ----------- generated xml file: /home/jenkins/tews/trigger/junit.xml -----------
2020-12-15T13:13:28+0000 ------ generated html file: file:///home/jenkins/tews/trigger/report.html ------
2020-12-15T13:13:28+0000 ========================= 11 passed in 692.83 seconds ==========================

Based on the above observation, marking the bug VERIFIED

Comment 14 errata-xmlrpc 2021-05-18 15:51:41 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/RHEA-2021:1860