Python invocation from Ansible

7 views
Skip to first unread message

Heman Malve

unread,
Jan 21, 2021, 3:33:13 AM1/21/21
to Ansible Development
Hi Team,

 One of the file contains list of servers(centralized server) and related to Dev environment .
Requirement is that connect each and every server remotely , execute stop command(s )of respective services and do manipulation of 2 or 3 conf files( add & remove lines)  , start the services accordingly .
Is it something achievable in ansible/python/ansible & python ? if some one already worked on this scenario , please share the details 

Thanks in Advance !!

Db0

unread,
Jan 21, 2021, 5:40:39 AM1/21/21
to Heman Malve, Ansible Development
Not sure what you mean by "one of the file" but connecting to a bunch of servers, changing a few files and restarting their services is the bread & butter of ansible and definitely doable without needing to use python at all.

--
You received this message because you are subscribed to the Google Groups "Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-deve...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-devel/2962ee57-743c-407e-9127-6e24820a9b6dn%40googlegroups.com.

Heman Malve

unread,
Jan 21, 2021, 7:42:09 AM1/21/21
to Ansible Development
Thanks for your anticipation  !! 
mean to say , bunch of servers name maintaining under hosts file.
Do you have any sample implementation/web link or  info related to this topic ; 

Db0

unread,
Jan 21, 2021, 9:02:10 AM1/21/21
to Heman Malve, Ansible Development
Reply all
Reply to author
Forward
0 new messages