mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-02-04 07:51:50 +00:00
[PR #11057/0d8521c7 backport][stable-12] supervisorctl: investigate integration tests (#11062)
supervisorctl: investigate integration tests (#11057)
* supervisorctl: investigate integration tests
* wait for supervisord to complete stop
* adjust in module
(cherry picked from commit 0d8521c718)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
parent
caebf65948
commit
e304709d8e
2 changed files with 9 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ options:
|
|||
signal:
|
||||
type: str
|
||||
description:
|
||||
- The signal to send to the program/group, when combined with the 'signalled' state. Required when l(state=signalled).
|
||||
- The signal to send to the program/group, when combined with the V(signalled) state. Required when l(state=signalled).
|
||||
supervisorctl_path:
|
||||
type: path
|
||||
description:
|
||||
|
|
@ -113,6 +113,7 @@ EXAMPLES = r"""
|
|||
state: restarted
|
||||
"""
|
||||
|
||||
|
||||
import os
|
||||
from ansible.module_utils.basic import AnsibleModule, is_executable
|
||||
|
||||
|
|
|
|||
|
|
@ -5,3 +5,10 @@
|
|||
|
||||
- name: stop supervisord
|
||||
command: "supervisorctl -c {{ remote_dir }}/supervisord.conf {% if credentials.username %}-u {{ credentials.username }} -p {{ credentials.password }}{% endif %} shutdown"
|
||||
|
||||
- name: wait_for supervisord to stop
|
||||
ansible.builtin.wait_for:
|
||||
port: 9001
|
||||
host: 127.0.0.1
|
||||
timeout: 15
|
||||
state: stopped
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue