From 8b862483000e30613e2079356141ed730015d306 Mon Sep 17 00:00:00 2001 From: Student User <student@workstation.lab.example.com> Date: Wed, 19 Feb 2020 09:31:36 +0100 Subject: [PATCH] course Bern 2020-02-19 --- hash-or-dict-loop.yml | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/hash-or-dict-loop.yml b/hash-or-dict-loop.yml index 76cb38b..8eb72f1 100644 --- a/hash-or-dict-loop.yml +++ b/hash-or-dict-loop.yml @@ -20,11 +20,15 @@ shell: "{{ item['shell'] }}" state: "{{ installstate }}" loop: "{{ users }}" + register: userregister when: run_my_task + - name: 'show created users' shell: getent passwd register: geout - debug: - msg: "{{ geout.stdout }}" - + msg: "{{ geout.stdout_lines }}" + + - debug: + var: userregister -- Gitblit v1.9.3