From 9dc9c5a90bdd07896769d630f07b99bd9d0ce162 Mon Sep 17 00:00:00 2001 From: Bertrand Lanson Date: Fri, 30 Jun 2023 23:46:04 +0200 Subject: [PATCH] doesnt need jinja syntax here --- molecule/default/verify.yml | 2 +- molecule/with_custom_packages/verify.yml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/molecule/default/verify.yml b/molecule/default/verify.yml index 20b37d7..9661d59 100644 --- a/molecule/default/verify.yml +++ b/molecule/default/verify.yml @@ -27,4 +27,4 @@ - name: "Verify package vim" ansible.builtin.assert: that: - - "'{{ ansible_facts.packages['vim'][0]['name'] }}' == 'vim'" + - "ansible_facts.packages['vim'][0]['name'] == 'vim'" diff --git a/molecule/with_custom_packages/verify.yml b/molecule/with_custom_packages/verify.yml index 87c4f3c..2a9a100 100644 --- a/molecule/with_custom_packages/verify.yml +++ b/molecule/with_custom_packages/verify.yml @@ -27,7 +27,7 @@ - name: "Verify packages mariadb-server, apache2, consul:1.13.1-1" ansible.builtin.assert: that: - - "'{{ ansible_facts.packages['mariadb-server'][0]['name'] }}' == 'mariadb-server'" - - "'{{ ansible_facts.packages['apache2'][0]['name'] }}' == 'apache2'" - - "'{{ ansible_facts.packages['consul'][0]['name'] }}' == 'consul'" - - "'{{ ansible_facts.packages['consul'][0]['version'] }}' == '1.13.1-1'" + - "ansible_facts.packages['mariadb-server'][0]['name'] == 'mariadb-server'" + - "ansible_facts.packages['apache2'][0]['name'] == 'apache2'" + - "ansible_facts.packages['consul'][0]['name'] == 'consul'" + - "ansible_facts.packages['consul'][0]['version'] == '1.13.1-1'"