[jenkins-ci PATCH] guests: Don't use templates in conditionals

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We're not supposed to use Jinja2 templates in this
context, as recent versions of Ansible very helpfully
point out.

Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx>
---
 guests/tasks/base.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/guests/tasks/base.yml b/guests/tasks/base.yml
index c69c701..3793153 100644
--- a/guests/tasks/base.yml
+++ b/guests/tasks/base.yml
@@ -21,14 +21,14 @@
     os_version: Sid
   when:
     - os_name == 'Debian'
-    - '{{ ansible_distribution_major_version|match("^.*/sid$") }}'
+    - ansible_distribution_major_version|match("^.*/sid$")
 
 - name: Set additional facts (OS)
   set_fact:
     os_version: Current
   when:
     - ansible_distribution == 'FreeBSD'
-    - '{{ ansible_distribution_release|match("^.*-CURRENT$") }}'
+    - ansible_distribution_release|match("^.*-CURRENT$")
 
 - name: Set additional facts (package format)
   set_fact:
-- 
2.17.1

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux