Deploy custom facts with nginx_vhosts

This commit is contained in:
Emilien Mantel
2016-11-29 14:32:27 +01:00
parent 4a3aed6974
commit 8caddedc68
5 changed files with 25 additions and 1 deletions

View File

@@ -235,6 +235,12 @@
- name: -- Add HTML file hello --
copy: dest="{{ nginx_root }}/test-htpasswd.local/public/hello/index.html" content="hello\n"
# --------------------------------
# Test custom facts
# --------------------------------
- name: -- CHECK FACTS --
assert:
that: "'{{ ansible_local.nginx.fact_nginx_vhosts[0].name[0] }}' == 'test.local'"
# --------------------------------
# Simple vhosts tests
# --------------------------------
- name: -- VERIFY VHOSTS --