Ansible & Windows Management

29 views
Skip to first unread message

CHARCHOUF SABRI

unread,
Apr 19, 2019, 5:48:34 AM4/19/19
to Ansible Project
Hi Folks,

I'm a new user for Ansible and I would like to get some help from experts.

Project: Customer would like to use Ansible to switch OFF hosts on a public cloud [the public cloud is OpenStack based]

My issue is that I'm not sure how to set up my inventory file and how I can connect to hosts, especially that we should do it via APIs.

any idea, a suggestion is highly appreciated.

Thanking you in advance. 


Message has been deleted

Tony Chia

unread,
Apr 22, 2019, 9:55:29 PM4/22/19
to Ansible Project
To connect to windows from ansible you can use wintm instead of the default winrm connection type

CHARCHOUF SABRI

unread,
Apr 23, 2019, 7:47:07 AM4/23/19
to Ansible Project
Thank you for your reply
I will check and revert back

Dick Visser

unread,
Apr 23, 2019, 1:14:08 PM4/23/19
to ansible...@googlegroups.com
You should not use ansible to connect to each and every host and try to turn it off. That’s a load of overhead and there is no way to turn them back on again later. 
Instead, use ansible to connect to the openstack cluster and switch off hosts from there, for instance with 

--
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 post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/b44f02f7-bd9a-425b-a670-524511fd9850%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Sent from a mobile device - please excuse the brevity, spelling and punctuation.

CHARCHOUF SABRI

unread,
Apr 23, 2019, 4:18:17 PM4/23/19
to Ansible Project
Thank you very much for your help & advise.
may I ask you if you can help me with just some example or tutoriel, as I'm new and any assistance is highly appreciated.

if possible we can try to discuss further on slack or hangout.. 

Again thank you

---------------------------------------------------


On Tuesday, April 23, 2019 at 7:14:08 PM UTC+2, Dick Visser wrote:
You should not use ansible to connect to each and every host and try to turn it off. That’s a load of overhead and there is no way to turn them back on again later. 
Instead, use ansible to connect to the openstack cluster and switch off hosts from there, for instance with 
On Fri, 19 Apr 2019 at 11:48, CHARCHOUF SABRI <bari...@gmail.com> wrote:
Hi Folks,

I'm a new user for Ansible and I would like to get some help from experts.

Project: Customer would like to use Ansible to switch OFF hosts on a public cloud [the public cloud is OpenStack based]

My issue is that I'm not sure how to set up my inventory file and how I can connect to hosts, especially that we should do it via APIs.

any idea, a suggestion is highly appreciated.

Thanking you in advance. 


--
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...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages