IBM / ansible-for-i

the tool is to provide several customized modules for Ansible to manage IBM i systems.
GNU General Public License v3.0
55 stars 51 forks source link

Feature request for ibmi_ibm.power_ibmi.ibmi_tcp_server_service #145

Open krka01 opened 1 year ago

krka01 commented 1 year ago

The module ibmi_ibm.power_ibmi.ibmi_tcp_server_service can be used to stop or start TCP servers using the state: 'stopped' or state: 'started'

If you need to restart a TCP server in a playbook, you first need to use the module to stop the TCP server and then use the same module to start it again. The step to stop the servers needs to be completed for all hosts you run the playbook for, before the playbook starts to execute the next step that starts the servers again.

The goal is to would be to minimize the time between the stop and start, so it would be extremely helpful if there was a possibility to specify a restart option in the ibmi_ibm.power_ibmi.ibmi_tcp_server_service module that would take care of both the stop, monitoring that the server have stopped and then start the TCP server again.