Added ability to specify destination OU when joining a domain (#22393)

* Added ability to specify destination OU when joining a domain

* Updated win_domain_membership documentation to include OU destination option.

* Updated python to include version

* Additional info in the docs
This commit is contained in:
McBadass 2017-07-20 18:50:54 -06:00 committed by Jordan Borean
parent c9b474cb33
commit 0229476c44
2 changed files with 21 additions and 4 deletions

View file

@ -45,6 +45,11 @@ options:
hostname:
description:
- the desired hostname for the Windows host
domain_ou_path:
description:
- The desired OU path for adding the computer object.
- This is only used when adding the target host to a domain, if it is already a member then it is ignored.
version_added: "2.4"
state:
description:
- whether the target host should be a member of a domain or workgroup
@ -80,6 +85,7 @@ EXAMPLES = '''
hostname: mydomainclient
domain_admin_user: testguy@ansible.vagrant
domain_admin_password: password123!
domain_ou_path: "OU=Windows,OU=Servers,DC=ansible,DC=vagrant"
state: domain
register: domain_state