Hi everyone, I have one doubt in ansible. I Am using ubuntu 16.04 machine. How to create a user ID into MS Office 365 AD using ansible win_domain_user module from my machine ?
HI Mohamed,
If you run “ansible-doc win_domain_user” on a command line it will give you some example.
For example
- name: Ensure user bob is created and use custom credentials to create the user
win_domain_user:
name: bob
firstname: Bob
surname: Smith
password: B0bP4ssw0rd
state: present
domain_username: DOMAIN\admin-account
domain_password: SomePas2w0rd
domain_server: domain@DOMAIN.COM