fix linter errors

This commit is contained in:
Sergey Malyuk
2025-12-16 13:58:41 +03:00
parent fb8d538447
commit 3b7694d7e5
3 changed files with 9 additions and 9 deletions

View File

@@ -10,8 +10,8 @@ galaxy_info:
platforms: platforms:
- name: "Ubuntu" - name: "Ubuntu"
versions: [ "focal", "jammy", "noble" ] versions: ["focal", "jammy", "noble"]
galaxy_tags: [ ] galaxy_tags: []
dependencies: [] dependencies: []

View File

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

View File

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