---
- name         : Extra user info Simple Mode (1)
  hosts        : "{{ kitchen_hosts }}"
  gather_facts : no
  sudo         : True
  connection   : "{{ kitchen_connection | default('local') }}"
  vars         :
                 usermanage_debug : true
  vars_files   :
                 - "extra_var_simple_db.yml"
  pre_tasks    :
     - debug: var=kitchen_connection
  roles        :
                 - "ansible-usermanage"
  post_tasks   :

     - name: Print the user db in a yaml file
       copy:
         content="{{ cuser.users_db | to_yaml }}"
         dest="/tmp/extra_simple_users_db.yaml"

     - name: Print the extra user options in a yaml file
       copy:
         content="{{ cuser.extra | to_yaml }}"
         dest="/tmp/extra_simple_extra_db.yaml"