extra_simple.yml 770 B

1234567891011121314151617181920212223242526
  1. ---
  2. - name : Extra user info Simple Mode (1)
  3. hosts : "{{ kitchen_hosts }}"
  4. gather_facts : no
  5. sudo : True
  6. connection : "{{ kitchen_connection | default('local') }}"
  7. vars :
  8. usermanage_debug : true
  9. vars_files :
  10. - "extra_var_simple_db.yml"
  11. pre_tasks :
  12. - debug: var=kitchen_connection
  13. roles :
  14. - "ansible-usermanage"
  15. post_tasks :
  16. - name: Print the user db in a yaml file
  17. copy:
  18. content="{{ cuser.users_db | to_yaml }}"
  19. dest="/tmp/extra_simple_users_db.yaml"
  20. - name: Print the extra user options in a yaml file
  21. copy:
  22. content="{{ cuser.extra | to_yaml }}"
  23. dest="/tmp/extra_simple_extra_db.yaml"