---
- name: Create users thru loop
  hosts: localhost
  vars:
   users: [jerry,kramer,eliane]  

  tasks:
- name: Create users
  user:
    name: ‘{{item}}‘
  with_items: ‘{{users}}’
