additional course material RH294
Olaf Bohlen
2020-02-19 08669995dd66a7051d2fc222fec02a0bc71c1dff
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