From e4420f6a6610beb1fbbd1fc8e35b19f2e608c4c6 Mon Sep 17 00:00:00 2001
From: Andrea Dell'Amico <andrea.dellamico@isti.cnr.it>
Date: Wed, 7 Jul 2021 14:19:44 +0200
Subject: [PATCH] Wrong variable name.

---
 tasks/robots-txt.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tasks/robots-txt.yml b/tasks/robots-txt.yml
index 130c3cf..0405bef 100644
--- a/tasks/robots-txt.yml
+++ b/tasks/robots-txt.yml
@@ -4,12 +4,12 @@
     - name: Install a robots.txt into the global webroot
       template:
         src: robots.txt.j2
-        dest: '{{ nginx_web_root }}/robots.txt'
+        dest: '{{ nginx_webroot }}/robots.txt'
         owner: root
         group: root
         mode: 0444
 
-  when: nginx_install_robots_txt | bool
+  when: nginx_install_robots_txt
   tags: [ 'nginx', 'robots_txt' ]
 
 - name: Install a virtualhost specific robots.txt