Hii all,
could anyone share ansible script or basic format of script for windows server uninstallation. i couldn’t find any related scripts or modules in official docs.
Hii all,
could anyone share ansible script or basic format of script for windows server uninstallation. i couldn't find any related scripts or modules in official docs.
Would you mind explaining what "windows server uninstallation"
means to you?
Yes, what exactly it mean for example let us consider the case of windows server 2016. Please explain what exactly it mean and also please help me which is the correct windows modules work for this task…
I mean how to remove windows server using ansible and also i am asking how we can do it manually
I don't think you can uninstall or remove an operating system, short
of formatting the machine....
Do you mean decommission the windows machine from the infra??
When I get to a point where I’m asking “How do I do X in Ansible”, my first step is to make a checklist of what I would do if I was doing it manually.
Assuming when you ask “Windows server uninstallation” you mean to remove the host from AD, remove it from DNS, delete files, etc., then start decomposing each of those big steps into individual Ansible plays.
Yes , correct i am asking about windows server decommission.
Could any one please share what is the exact meaning of word server decommission.
Yes, i am asking regarding windows server decommission on infra.
Yes as Dan said, make a list what’s is the current process
For example
- Playbook 1 - keep server in qurantain mode for 30 days (vm machine)
- remove or keep server in maintenance mode in monitoring
- take full backup
- stop backup job
- shutdown vm
- rename vm with current date
- After qurantain
- remove from dns
- remove ad object
- remove from backup job
- remove from monitoring
- delete vm from VMware
- update free ip list
- update cmdb
Thanks, please tell me about delete vm and remove vm from dns
And also about remove from ad object
Thanks, please tell me about delete vm and remove vm from dns
and
And also about remove from ad object
These are not Ansible specific topics, these are tasks that you need to review other sources for (Microsoft.com, Google searches, co-workers, etc) and come up with the check-list of the specific steps your_environment needs to have done. (For instance, there are 100’s of “DNS” servers that could be in use - there is not a single answer for all of them.)
You need to perform additional research. Once you can perform these tasks manually yourself and have those steps written down as a reference, review the “win_XXXX” Ansible modules to look for ones that apply. Once you’re stuck there, come back and we can help you with individual tasks from your list that you are stuck with.
Sorry, but your questions aren’t Ansible related at this point.
I am sorry,
But Firstly thanks for your help, Yes
I started performing some sub tasks manually. Soon i will try to implement them from ansible. If I struck anywhere i will reach you…
Thank you…