From 0d01ee282bb18d2acbd5ed4108f7e77f325a63ae Mon Sep 17 00:00:00 2001 From: Alexander Grothe Date: Wed, 22 Nov 2017 08:07:29 +0100 Subject: [PATCH] Fix quoting --- Manual.org | 6 +++--- roles/collect-facts/tasks/main.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Manual.org b/Manual.org index 1eb7567..b641cd8 100644 --- a/Manual.org +++ b/Manual.org @@ -560,15 +560,15 @@ APT::Install-Suggests "0"; - name: set variable nvidia_detected set_fact: - nvidia_detected: 'true if {{ gpus | selectattr("VendorName", "nvidia") | list }}' else false + nvidia_detected: 'true if {{ gpus | selectattr("VendorName", "nvidia") | list }} else false' - name: set variable intel_detected set_fact: - intel_detected: 'true if {{ gpus | selectattr("VendorName", "intel") | list }}' else false + intel_detected: 'true if {{ gpus | selectattr("VendorName", "intel") | list }} else false' - name: set variable amd_detected set_fact: - amd_detected: 'true if {{ gpus | selectattr("VendorName", "amd") | list }}' else false + amd_detected: 'true if {{ gpus | selectattr("VendorName", "amd") | list }} else false' - debug: var: '{{ item }}' diff --git a/roles/collect-facts/tasks/main.yml b/roles/collect-facts/tasks/main.yml index 5d695d8..b236b9a 100644 --- a/roles/collect-facts/tasks/main.yml +++ b/roles/collect-facts/tasks/main.yml @@ -8,15 +8,15 @@ - name: set variable nvidia_detected set_fact: - nvidia_detected: 'true if {{ gpus | selectattr("VendorName", "nvidia") | list }}' else false + nvidia_detected: 'true if {{ gpus | selectattr("VendorName", "nvidia") | list }} else false' - name: set variable intel_detected set_fact: - intel_detected: 'true if {{ gpus | selectattr("VendorName", "intel") | list }}' else false + intel_detected: 'true if {{ gpus | selectattr("VendorName", "intel") | list }} else false' - name: set variable amd_detected set_fact: - amd_detected: 'true if {{ gpus | selectattr("VendorName", "amd") | list }}' else false + amd_detected: 'true if {{ gpus | selectattr("VendorName", "amd") | list }} else false' - debug: var: '{{ item }}'