unistall windows server

83 views
Skip to first unread message

PRAVEEN KATTULAPALLI

unread,
Sep 22, 2020, 10:58:10 AM9/22/20
to Ansible Project
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.

Mauricio Tavares

unread,
Sep 22, 2020, 11:42:26 AM9/22/20
to ansible...@googlegroups.com
Would you mind explaining what "windows server uninstallation"
means to you?
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/3a6f5054-0a76-4b20-96b0-9bcb1d73743an%40googlegroups.com.

PRAVEEN KATTULAPALLI

unread,
Sep 22, 2020, 12:10:36 PM9/22/20
to ansible...@googlegroups.com
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..

PRAVEEN KATTULAPALLI

unread,
Sep 22, 2020, 12:13:42 PM9/22/20
to ansible...@googlegroups.com
I mean how to remove windows server using ansible and also i am asking how we can do it manually

Dick Visser

unread,
Sep 22, 2020, 12:21:28 PM9/22/20
to ansible...@googlegroups.com
I don't think you can uninstall or remove an operating system, short
of formatting the machine....
> To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAByHfFHoQpiOdzFs8gniRzBYtjW0-ogTbZxfq%3D%2Bc3%3Dx%3DcRGTRw%40mail.gmail.com.



--
Dick Visser
Trust & Identity Service Operations Manager
GÉANT

Gajendra Gaikwad

unread,
Sep 22, 2020, 3:16:32 PM9/22/20
to ansible...@googlegroups.com
Do you mean decommission the windows machine from the infra??

On Tue, 22 Sep 2020, 20:28 PRAVEEN KATTULAPALLI, <159y1...@ksrmce.ac.in> wrote:
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.

--

Dan Linder

unread,
Sep 22, 2020, 3:38:02 PM9/22/20
to Ansible Project
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.

PRAVEEN KATTULAPALLI

unread,
Sep 22, 2020, 11:06:01 PM9/22/20
to ansible...@googlegroups.com
Yes , correct i am asking about windows server decommission.
Could any one please share what is the exact meaning of word server decommission.

PRAVEEN KATTULAPALLI

unread,
Sep 22, 2020, 11:08:34 PM9/22/20
to ansible...@googlegroups.com
Yes, i am asking regarding windows server decommission on infra.

Gajendra Gaikwad

unread,
Sep 23, 2020, 12:02:51 AM9/23/20
to ansible...@googlegroups.com
Yes as Dan said, make a list what's is the current process

For example 

1. 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
2. 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
  

PRAVEEN KATTULAPALLI

unread,
Sep 23, 2020, 1:05:41 AM9/23/20
to ansible...@googlegroups.com
Thanks, please tell me about delete vm and remove vm from dns

PRAVEEN KATTULAPALLI

unread,
Sep 23, 2020, 1:06:11 AM9/23/20
to ansible...@googlegroups.com
And also about remove from ad object

Dan Linder

unread,
Sep 23, 2020, 9:58:41 PM9/23/20
to ansible...@googlegroups.com
> 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.

You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/V6v3lt-CUmw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAByHfFHA%2BcAoHav-DQVJK00HAcCdJF6onYtpQz54tii_sqhHSw%40mail.gmail.com.


--
***************** ************* *********** ******* ***** *** **
"If you wish to make an apple pie from scratch, 
  you must first invent the universe."
  -- Carl Sagan

"Quis custodiet ipsos custodes?"
    (Who can watch the watchmen?)
    -- from the Satires of Juvenal

"I do not fear computers, I fear the lack of them."
    -- Isaac Asimov (Author)
** *** ***** ******* *********** ************* *****************

PRAVEEN KATTULAPALLI

unread,
Sep 23, 2020, 10:08:06 PM9/23/20
to ansible...@googlegroups.com
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.....

Reply all
Reply to author
Forward
0 new messages