mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 13:20:23 -07:00
replace NBSP (non-blocking space) character with a regular SPACE char (#3071)
This commit is contained in:
parent
d54d2fa4a6
commit
20db4fc560
19 changed files with 45 additions and 45 deletions
|
@ -5,6 +5,6 @@
|
|||
|
||||
- name: disable supervisord system service
|
||||
service:
|
||||
name: '{{ supervisor_service_name }}'
|
||||
name: '{{ supervisor_service_name }}'
|
||||
state: stopped
|
||||
enabled: no
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
- '{{ ansible_os_family }}.yml'
|
||||
- 'defaults.yml'
|
||||
|
||||
- include_tasks: '{{ item }}'
|
||||
- include_tasks: '{{ item }}'
|
||||
with_first_found:
|
||||
- files:
|
||||
- 'install_{{ ansible_distribution }}.yml' # CentOS
|
||||
|
@ -39,7 +39,7 @@
|
|||
when: ansible_os_family != 'RedHat' or ansible_distribution_major_version|int > 6
|
||||
|
||||
always:
|
||||
- include_tasks: '{{ item }}'
|
||||
- include_tasks: '{{ item }}'
|
||||
when: ansible_os_family != 'RedHat' or ansible_distribution_major_version|int > 6
|
||||
with_first_found:
|
||||
- files:
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
- name: start supervisord
|
||||
command: 'supervisord -c {{ remote_dir }}/supervisord.conf'
|
||||
command: 'supervisord -c {{ remote_dir }}/supervisord.conf'
|
||||
|
||||
- name: wait_for supervisord
|
||||
ansible.builtin.wait_for:
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
- name: stop supervisord
|
||||
command: "supervisorctl -c {{ remote_dir }}/supervisord.conf {% if credentials.username %}-u {{ credentials.username }} -p {{ credentials.password }}{% endif %} shutdown"
|
||||
command: "supervisorctl -c {{ remote_dir }}/supervisord.conf {% if credentials.username %}-u {{ credentials.username }} -p {{ credentials.password }}{% endif %} shutdown"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
- name: generate supervisor configuration
|
||||
template:
|
||||
src: supervisord.conf
|
||||
dest: '{{ remote_dir }}/supervisord.conf'
|
||||
dest: '{{ remote_dir }}/supervisord.conf'
|
||||
|
||||
- block:
|
||||
- import_tasks: start_supervisord.yml
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
supervisorctl:
|
||||
name: 'pys:py1'
|
||||
state: started
|
||||
config: '{{ remote_dir }}/supervisord.conf'
|
||||
config: '{{ remote_dir }}/supervisord.conf'
|
||||
register: result
|
||||
when: credentials.username == ''
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
|||
register: result_with_auth
|
||||
when: credentials.username != ''
|
||||
|
||||
- command: "supervisorctl -c {{ remote_dir }}/supervisord.conf {% if credentials.username %}-u {{ credentials.username }} -p {{ credentials.password }}{% endif %} status"
|
||||
- command: "supervisorctl -c {{ remote_dir }}/supervisord.conf {% if credentials.username %}-u {{ credentials.username }} -p {{ credentials.password }}{% endif %} status"
|
||||
|
||||
- name: check that service is started
|
||||
assert:
|
||||
|
@ -32,7 +32,7 @@
|
|||
supervisorctl:
|
||||
name: pys:py1
|
||||
state: started
|
||||
config: '{{ remote_dir }}/supervisord.conf'
|
||||
config: '{{ remote_dir }}/supervisord.conf'
|
||||
register: result
|
||||
when: credentials.username == ''
|
||||
|
||||
|
@ -65,7 +65,7 @@
|
|||
supervisorctl:
|
||||
name: 'pys:py1'
|
||||
state: started
|
||||
config: '{{ remote_dir }}/supervisord.conf'
|
||||
config: '{{ remote_dir }}/supervisord.conf'
|
||||
register: result
|
||||
when: credentials.username == ''
|
||||
|
||||
|
@ -110,7 +110,7 @@
|
|||
supervisorctl:
|
||||
name: 'pys:py1'
|
||||
state: started
|
||||
config: '{{ remote_dir }}/supervisord_not_here.conf'
|
||||
config: '{{ remote_dir }}/supervisord_not_here.conf'
|
||||
register: result
|
||||
failed_when: result is success or result is not failed
|
||||
|
||||
|
@ -118,7 +118,7 @@
|
|||
supervisorctl:
|
||||
name: 'invalid'
|
||||
state: started
|
||||
config: '{{ remote_dir }}/supervisord.conf'
|
||||
config: '{{ remote_dir }}/supervisord.conf'
|
||||
register: result
|
||||
failed_when: result is skip or (result is success or result is not failed)
|
||||
when: credentials.username == ''
|
||||
|
@ -127,7 +127,7 @@
|
|||
supervisorctl:
|
||||
name: 'invalid'
|
||||
state: started
|
||||
config: '{{ remote_dir }}/supervisord.conf'
|
||||
config: '{{ remote_dir }}/supervisord.conf'
|
||||
username: '{{ credentials.username }}wrong_creds'
|
||||
password: '{{ credentials.password }}same_here'
|
||||
register: result
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
register: result_with_auth
|
||||
when: credentials.username != ''
|
||||
|
||||
- command: "supervisorctl -c {{ remote_dir }}/supervisord.conf {% if credentials.username %}-u {{ credentials.username }} -p {{ credentials.password }}{% endif %} status"
|
||||
- command: "supervisorctl -c {{ remote_dir }}/supervisord.conf {% if credentials.username %}-u {{ credentials.username }} -p {{ credentials.password }}{% endif %} status"
|
||||
|
||||
- name: check that service is stopped
|
||||
assert:
|
||||
|
|
|
@ -36,7 +36,7 @@ password = {{ credentials.password }}
|
|||
{% endif %}
|
||||
|
||||
[supervisorctl]
|
||||
serverurl=unix://{{ supervisord_sock_path.path }}/supervisord.sock
|
||||
serverurl=unix://{{ supervisord_sock_path.path }}/supervisord.sock
|
||||
|
||||
[rpcinterface:supervisor]
|
||||
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue