diff --git a/tests/test.yml b/tests/test.yml index ce47ace..6077de0 100644 --- a/tests/test.yml +++ b/tests/test.yml @@ -8,6 +8,9 @@ - lineinfile: > dest=/etc/hosts line="127.0.2.2 {% for name in nginx_vhosts|map(attribute='name') %}{{ name | join(' ') }} {% endfor %}" + - lineinfile: > + dest=/etc/hosts + line="127.0.3.3 {% for n in nginx_vhosts %}{% if n.redirect_from is defined %}{% for r in n.redirect_from %}{{ r }} {% endfor %}{% endif %}{% endfor %}" vars: nginx_php: true nginx_php_sockets: @@ -20,6 +23,8 @@ template: '_base' - name: - 'test-php.local' + redirect_from: + - 'www.test-php.local' template: '_php' roles: - ../../