aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmil Renner Berthing <esmil@labitat.dk>2018-11-24 21:55:50 +0100
committerEmil Renner Berthing <esmil@labitat.dk>2018-11-24 22:04:45 +0100
commit9905246b6205817276f945e3d6191eb26504b803 (patch)
tree70a4178bba1f8bcc750e13e5d5ca62086cf9706a
parent7560cc6b35204fa1c34653e39028f5cfe8d4abe4 (diff)
downloadlabitat-ansible-9905246b6205817276f945e3d6191eb26504b803.tar.gz
labitat-ansible-9905246b6205817276f945e3d6191eb26504b803.tar.xz
labitat-ansible-9905246b6205817276f945e3d6191eb26504b803.zip
jumbotron: autologin: better set difference
-rw-r--r--roles/jumbotron/tasks/autologin.yml3
1 files changed, 1 insertions, 2 deletions
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: