“Invalid credentials Error” in Ansible win_share when we create the File share permission by using our domain account

I create app server and install the software using temp username and password in winrm host file.After setup I run the script userdataapp.ps1 to join the machine to XE domain. After that I create Fileshare and adding XE email account and service account in the Fileshare Permission section. When it executes the win_share script it says invalid credentials error. The reason is after joining to XE domain it does not take the temp user name and password.

We can use only our Windows Login account

 ansible_ssh_user=MY EMAIL ACCOUNT
  ansible_ssh_pass=<pwd> MY NT PWD

Is there any way to change the temp login to Windows login dynamically while excuting the Win_share script?

Note:

Before join to XE domain if I run the win_share script , it says invalid domain as xe.com

Temporary Host login

ansible_connection=winrm
ansible_port=5986
ansible_ssh_port=5986
ansible_ssh_user=administrator
ansible_ssh_pass=myTempPassword123!
ansible_winrm_server_cert_validation=ignore
ansible_winrm_operation_timeout_sec=120
ansible_winrm_read_timeout_sec=150

//Joining to XE domain

- name: Install the userdate ps1
   raw: "Powershell.exe -File  C:\xxxecode\userdataapp.ps1"

//Creating the share

- name: Add secret share
   win_share:
     name: AGITAR_DEVELOPER
     description: top secret share
     path: C:\shares\AGITAR_DEVELOPER
     list: yes
     full: MY EMAIL ACCOUNT, MY SERVICE ACCOUNT
     read: MY EMAIL ACCOUNT

I am attaching the screenshot