replace NBSP (non-blocking space) character with a regular SPACE char (#3071)

This commit is contained in:
Alexei Znamensky 2021-07-25 23:53:38 +12:00 committed by GitHub
commit 20db4fc560
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 45 additions and 45 deletions

View file

@ -5,6 +5,6 @@
- name: disable supervisord system service
service:
name: '{{ supervisor_service_name }}'
name: '{{ supervisor_service_name }}'
state: stopped
enabled: no

View file

@ -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:

View file

@ -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:

View file

@ -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"

View file

@ -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

View file

@ -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

View file

@ -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:

View file

@ -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