diff --git a/plugins/modules/supervisorctl.py b/plugins/modules/supervisorctl.py index 0ce17171ca..eeacb5a881 100644 --- a/plugins/modules/supervisorctl.py +++ b/plugins/modules/supervisorctl.py @@ -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 diff --git a/tests/integration/targets/supervisorctl/tasks/stop_supervisord.yml b/tests/integration/targets/supervisorctl/tasks/stop_supervisord.yml index 52e064d153..0464fcd0c3 100644 --- a/tests/integration/targets/supervisorctl/tasks/stop_supervisord.yml +++ b/tests/integration/targets/supervisorctl/tasks/stop_supervisord.yml @@ -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