extra_advanced.yml 847 B

123456789101112131415161718192021222324252627
  1. ---
  2. - name : Extra user info advanced 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_advanced_var_user_db.yml"
  11. - "extra_advanced_var_server_db.yml"
  12. pre_tasks :
  13. - debug: var=kitchen_connection
  14. roles :
  15. - "ansible-usermanage"
  16. post_tasks :
  17. - name: Print the user db in a yaml file
  18. copy:
  19. content="{{ cuser.users_db | to_nice_yaml }}"
  20. dest="/tmp/extra_advanced_users_db.yaml"
  21. - name: Print the extra user options in a yaml file
  22. copy:
  23. content="{{ cuser.extra | to_nice_json }}"
  24. dest="/tmp/extra_advanced_extra_db.yaml"