Stopping and starting of services on RHES servers

8 views
Skip to first unread message

Andrew Robert

unread,
Jan 4, 2023, 12:56:42 PM1/4/23
to Ansible Project
Good afternoon,

I am able to stop/start services on a server with ansible using ssh keys if I specify the services as items. 

Is there a way to modify the hosts file to supply the service names by server and pick up as variables?

Better yet, is there a way to auto detect the service names and plug them in when found?

All of the services start with mq@ so there is a pattern to work off of.

Any help you can provide would be fantastic.  

Dick Visser

unread,
Jan 4, 2023, 1:17:02 PM1/4/23
to ansible...@googlegroups.com
What is your source of truth?


--
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/2bf72a7c-0d07-4263-916e-273b4e24033en%40googlegroups.com.
--
Sent from Gmail Mobile
Reply all
Reply to author
Forward
0 new messages