ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
## [supervisorctl][1] ~~~ # Manage the state of program to be in 'started' state. - supervisorctl: name: my_app state: started # Manage the state of program group to be in 'started' state. - supervisorctl: name: 'my_apps:' state: started # Restart my_app, reading supervisorctl configuration from a specified file. - supervisorctl: name: my_app state: restarted config: /var/opt/my_project/supervisord.conf # Restart my_app, connecting to supervisord with credentials and server URL. - supervisorctl: name: my_app state: restarted username: test password: testpass server_url: http://localhost:9001 ~~~ ## state When state = present, the module will call supervisorctl reread then supervisorctl add if the program/group does not exist. When state = restarted, the module will call supervisorctl update then call supervisorctl restart. ~~~ present started stopped restarted absent ~~~ [1]:http://docs.ansible.com/ansible/latest/modules/supervisorctl_module.html#supervisorctl-module