Skip to content

Commit 7bd6b4d

Browse files
committed
Fixed Molecule tests, mentioned Nginx default vhost configuration on Debian based systems
1 parent 117f30c commit 7bd6b4d

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ The role will not modify this file if it exists.
4343
Additionally you can define other virtual hosts in `/etc/nginx/sites-enabled/` directory.
4444
They will be loaded as well.
4545

46+
> ℹ️ You may want to disable Nginx default vhost on Debian based systems by removing the
47+
`/etc/nginx/sites-enabled/default` symlink.
48+
4649

4750
Example Playbook
4851
----------------

molecule/default/verify.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
tasks:
77
- name: Test that nginx redirects to https
88
ansible.builtin.uri:
9-
url: http://127.0.0.1/
9+
url: http://{{ inventory_hostname }}/
1010
follow_redirects: none
1111
status_code: 301
1212

1313
- name: Test that nginx acts as proxy on https
1414
ansible.builtin.uri:
15-
url: https://127.0.0.1/
15+
url: https://{{ inventory_hostname }}/
1616
validate_certs: false
1717
follow_redirects: none
1818
status_code: 502
@@ -30,7 +30,7 @@
3030

3131
- name: Test extra configuration
3232
ansible.builtin.uri:
33-
url: https://127.0.0.1/test
33+
url: https://{{ inventory_hostname }}/test
3434
validate_certs: false
3535
follow_redirects: none
3636
status_code: 204

0 commit comments

Comments
 (0)