diff --git a/README-trust.md b/README-trust.md index ef04f6cb4930f88de223807b2db376e9e06a9819..efa69c7a7eb7d84dc6894c68f632481214bbfdb8 100644 --- a/README-trust.md +++ b/README-trust.md @@ -105,6 +105,7 @@ Variable | Description | Required `password` | Active Directory domain administrator's password string. | no `server` | Domain controller for the Active Directory domain string. | no `trust_secret` | Shared secret for the trust string. | no +`trust_type` | Trust type. Currently, only 'ad' for Active Directory is supported. | no `base_id` | First posix id for the trusted domain integer. | no `range_size` | Size of the ID range reserved for the trusted domain integer. | no `range_type` | Type of trusted domain ID range, It can be one of `ipa-ad-trust` or `ipa-ad-trust-posix`and defaults to `ipa-ad-trust`. | no diff --git a/plugins/modules/ipatrust.py b/plugins/modules/ipatrust.py index 0c7aac5f8f96ea861bad96e1c4ac8963b398c186..d94ec94d49eca015147ee3bfd56a16f428f6ca8f 100644 --- a/plugins/modules/ipatrust.py +++ b/plugins/modules/ipatrust.py @@ -44,7 +44,8 @@ options: description: - Trust type (ad for Active Directory, default) default: ad - required: true + required: false + choices: ["ad"] admin: description: - Active Directory domain administrator @@ -103,7 +104,7 @@ EXAMPLES = """ realm: ad.example.test trust_type: ad admin: Administrator - password: Welcome2020! + password: SomeW1Npassword state: present # delete ad-trust