aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmil Renner Berthing <esmil@labitat.dk>2018-12-06 21:35:45 +0100
committerEmil Renner Berthing <esmil@labitat.dk>2018-12-06 21:38:23 +0100
commit0ef5ba96410427823cf3a2e49f8b61ce8fdb6524 (patch)
tree72f2ecf2fc3e909c78d7eb8d9a6c1f7184f84b0c
parent753dc0b756b9963404a17640a625fd826513bee5 (diff)
downloadlabitat-ansible-0ef5ba96410427823cf3a2e49f8b61ce8fdb6524.tar.gz
labitat-ansible-0ef5ba96410427823cf3a2e49f8b61ce8fdb6524.tar.xz
labitat-ansible-0ef5ba96410427823cf3a2e49f8b61ce8fdb6524.zip
jumbotron: autologin: fix unneeded calculation
-rw-r--r--roles/jumbotron/tasks/autologin.yml4
1 files changed, 2 insertions, 2 deletions
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: