ipatrust: Allow execution of plugin in client host.

Update trust README file and add tests for executing plugin with
`ipaapi_context` set to `client`.

A new test playbook can be found at:

    tests/trust/test_trust_client_context.yml

The new test file can be executed in a FreeIPA client host that is
not a server. In this case, it should be defined in the `ipaclients`
group, in the inventory file.
This commit is contained in:
Rafael Guterres Jeffman
2021-09-03 13:28:53 -03:00
parent 829f10568a
commit 577d8f7893
3 changed files with 42 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
---
- name: find trust
hosts: ipaserver
hosts: "{{ ipa_test_host | default('ipaserver') }}"
become: true
gather_facts: false
@@ -11,6 +11,7 @@
- name: delete trust
ipatrust:
ipaadmin_password: SomeADMINpassword
ipaapi_context: "{{ ipa_context | default(omit) }}"
realm: windows.local
state: absent
register: del_trust
@@ -38,6 +39,7 @@
- name: add trust
ipatrust:
ipaadmin_password: SomeADMINpassword
ipaapi_context: "{{ ipa_context | default(omit) }}"
realm: windows.local
admin: Administrator
password: secret_ad_pw