mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-06-10 18:55:53 +00:00
This patch add support for adding external members to ipagroup which have the `external` attribute set. It adds another attribute to the module, `external_members`, which is a list of users or groups from an external trust, to be added to the group. This patch requires server-trust-ad to be tested, as such, the tests have been guarded by a test block, for when such tests are available in ansible-freeipa CI. Fixes issue #418
20 lines
615 B
YAML
20 lines
615 B
YAML
# This playbook should be included with `include_tasks` as the first task
|
|
# of a test playbook that requires FreeIPA information.
|
|
#
|
|
# Available Facts:
|
|
#
|
|
# ipa_version: The installed FreeIPA version.
|
|
# ipa_api_version: The installed FreeIPA API version.
|
|
#
|
|
---
|
|
- name: Retrieving FreeIPA version.
|
|
shell:
|
|
cmd: 'ipa --version | sed -n "s/VERSION: \([^,]*\).*API_VERSION: \([^,]*\).*/\1\\n\2/p"'
|
|
register: ipa_cmd_version
|
|
|
|
- name: Set FreeIPA facts.
|
|
set_fact:
|
|
ipa_version: "{{ ipa_cmd_version.stdout_lines[0] }}"
|
|
ipa_api_version: "{{ ipa_cmd_version.stdout_lines[1] }}"
|
|
trust_test_is_supported: no
|