- hosts: all become: true remote_user: janos vars_files: - vars.yml tasks: - name: több felhasználó felvétele user: name: "{{ item.name }}" uid: "{{ item.uid }}" groups: "{{ item.groups }}" state: present with_items: "{{ user_details }}"