From 0ef5ba96410427823cf3a2e49f8b61ce8fdb6524 Mon Sep 17 00:00:00 2001 From: Emil Renner Berthing Date: Thu, 6 Dec 2018 21:35:45 +0100 Subject: jumbotron: autologin: fix unneeded calculation --- roles/jumbotron/tasks/autologin.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'roles/jumbotron') diff --git a/roles/jumbotron/tasks/autologin.yml b/roles/jumbotron/tasks/autologin.yml index 7230f1e..0feee87 100644 --- a/roles/jumbotron/tasks/autologin.yml +++ b/roles/jumbotron/tasks/autologin.yml @@ -24,8 +24,8 @@ - name: Delete unneeded tty1 configuration file: - path: '{{ item }}' + path: '/etc/systemd/system/getty@tty1.service.d/{{ item }}' state: absent - with_items: "{{ getty_tty1_existing.files|map(attribute='path')|difference(getty_tty1_created.results|map(attribute='dest'))|list }}" + with_items: "{{ getty_tty1_existing.files|map(attribute='path')|map('basename')|difference(getty_tty1_created.results|map(attribute='dest')|map('basename'))|list }}" # vim: set ts=2 sw=2 et: -- cgit v1.2.1