Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. fatal: [shapi-app-staging]: FAILED! => {
  2. "msg": "'item' is undefined"
  3. }
  4.  
  5.  
  6. # roles/win_iis/tasks/main.yml
  7. - name: allow custom user to access dotnet framework
  8. include: dotnet_acl.yml
  9. with_dict: "{{ iis_pool_id }}"
  10. loop_control:
  11. loop_var: item.path
  12. when:
  13. - iis_pool_id is defined
  14. - (item.value.type == 3) or
  15. (item.value.connect_as)
  16.  
  17. # roles/win_iis/tasks/dotnet_acl.yml
  18. ---
  19. - name: find dotnet framework paths
  20. win_find:
  21. paths: C:\Windows\Microsoft.NET\Framework\
  22. file_type: directory
  23. recurse: false
  24. use_regex: true
  25. patterns:
  26. - ^v([0-9]{1}\.[0-9]{1})$
  27. - ^v([0-9]{1}\.[0-9]{1}(\.[0-9]{0,5})?)$
  28. register: dotnet_framework
  29.  
  30. - name: set acl for dotnet framework paths
  31. win_acl:
  32. path: "{{ item.path }}"
  33. user: "{{ item.value.user | mandatory }}"
  34. rights: ListDirectory,Modify,Read,ReadAndExecute,Write
  35. type: allow
  36. state: present
  37. inherit: ContainerInherit, ObjectInherit
  38. propagation: None
  39. with_items: "{{ dotnet_framework.files }}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement