From 9905246b6205817276f945e3d6191eb26504b803 Mon Sep 17 00:00:00 2001 From: Emil Renner Berthing Date: Sat, 24 Nov 2018 21:55:50 +0100 Subject: jumbotron: autologin: better set difference --- roles/jumbotron/tasks/autologin.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'roles/jumbotron') diff --git a/roles/jumbotron/tasks/autologin.yml b/roles/jumbotron/tasks/autologin.yml index f9052ba..7230f1e 100644 --- a/roles/jumbotron/tasks/autologin.yml +++ b/roles/jumbotron/tasks/autologin.yml @@ -26,7 +26,6 @@ file: path: '{{ item }}' state: absent - with_items: "{{ getty_tty1_existing.files|map(attribute='path')|list }}" - when: "item not in getty_tty1_created.results|map(attribute='dest')" + with_items: "{{ getty_tty1_existing.files|map(attribute='path')|difference(getty_tty1_created.results|map(attribute='dest'))|list }}" # vim: set ts=2 sw=2 et: -- cgit v1.2.1