debug.yml 1019 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. ---
  2. - name: debug | Display compiled user
  3. debug:
  4. var=cuser.users_db
  5. sudo: no
  6. when: usermanage_debug_level >= 2
  7. - name: debug | Display compiled keys
  8. debug:
  9. var=cuser.key_db
  10. sudo: no
  11. when: usermanage_debug_level >= 2
  12. - name: debug | Display lookup_key_db keys
  13. debug:
  14. var=cuser.lookup_key_db
  15. sudo: no
  16. when: usermanage_debug_level >= 3 and cuser.lookup_key_db is defined
  17. - name: debug | Debug directory create
  18. file:
  19. path={{ usermanage_debug_dir }}
  20. state="directory"
  21. mode=0700
  22. owner=root
  23. when: usermanage_debug_level >= 1
  24. - name: debug | Debug Users /tmp/debugUser.{{inventory_hostname}}-{{item.account}}
  25. template:
  26. src=debug_users.j2
  27. dest="{{ usermanage_debug_dir }}/{{ inventory_hostname }}-{{ item.user | default(item.name) }}"
  28. with_items: cuser.users_db
  29. when: usermanage_debug_level >= 1
  30. - name: debug | Debug usermanage_groupsdb
  31. debug:
  32. var=usermanage_groupsdb
  33. sudo: no
  34. when: usermanage_debug_level >= 3 and usermanage_groupsdb is defined