fix linter errors
This commit is contained in:
@@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
roles:
|
roles:
|
||||||
# using default NGINX verison
|
# using default NGINX verison
|
||||||
- role: genlab.nginx
|
- role: genlab.common.nginx
|
||||||
site:
|
site:
|
||||||
confname: test-var
|
confname: test-var
|
||||||
content: |
|
content: |
|
||||||
|
|||||||
@@ -43,30 +43,30 @@
|
|||||||
fail_msg: "NGINX service is not enabled."
|
fail_msg: "NGINX service is not enabled."
|
||||||
|
|
||||||
- name: "Get an HTTP response from the test site (single site deployment from a variable)"
|
- name: "Get an HTTP response from the test site (single site deployment from a variable)"
|
||||||
register: response
|
register: nginx_response
|
||||||
ansible.builtin.uri:
|
ansible.builtin.uri:
|
||||||
url: http://localhost:80
|
url: http://localhost:80
|
||||||
status_code: 200
|
status_code: 200
|
||||||
return_content: true
|
return_content: true
|
||||||
|
|
||||||
- name: "Check the response correctness"
|
- name: "Check the response correctness on port 80"
|
||||||
vars:
|
vars:
|
||||||
message: "{{ response.content | trim }}"
|
message: "{{ nginx_response.content | trim }}"
|
||||||
ansible.builtin.assert:
|
ansible.builtin.assert:
|
||||||
that: message == 'Hello from ansible-nginx!'
|
that: message == 'Hello from ansible-nginx!'
|
||||||
success_msg: "{{ message }}"
|
success_msg: "{{ message }}"
|
||||||
fail_msg: "Unexpected response from the test site: '{{ message }}'"
|
fail_msg: "Unexpected response from the test site: '{{ message }}'"
|
||||||
|
|
||||||
- name: "Get an HTTP response from the test site (site deployment from a dictionary)"
|
- name: "Get an HTTP response from the test site (site deployment from a dictionary)"
|
||||||
register: response
|
register: nginx_response
|
||||||
ansible.builtin.uri:
|
ansible.builtin.uri:
|
||||||
url: http://localhost:8080
|
url: http://localhost:8080
|
||||||
status_code: 200
|
status_code: 200
|
||||||
return_content: true
|
return_content: true
|
||||||
|
|
||||||
- name: "Check the response correctness"
|
- name: "Check the response correctness on port 8080"
|
||||||
vars:
|
vars:
|
||||||
message: "{{ response.content | trim }}"
|
message: "{{ nginx_response.content | trim }}"
|
||||||
ansible.builtin.assert:
|
ansible.builtin.assert:
|
||||||
that: message == 'Hello from ansible-nginx!'
|
that: message == 'Hello from ansible-nginx!'
|
||||||
success_msg: "{{ message }}"
|
success_msg: "{{ message }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user