Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fatal: [shapi-app-staging]: FAILED! => {
- "msg": "'item' is undefined"
- }
- # roles/win_iis/tasks/main.yml
- - name: allow custom user to access dotnet framework
- include: dotnet_acl.yml
- with_dict: "{{ iis_pool_id }}"
- loop_control:
- loop_var: item.path
- when:
- - iis_pool_id is defined
- - (item.value.type == 3) or
- (item.value.connect_as)
- # roles/win_iis/tasks/dotnet_acl.yml
- ---
- - name: find dotnet framework paths
- win_find:
- paths: C:\Windows\Microsoft.NET\Framework\
- file_type: directory
- recurse: false
- use_regex: true
- patterns:
- - ^v([0-9]{1}\.[0-9]{1})$
- - ^v([0-9]{1}\.[0-9]{1}(\.[0-9]{0,5})?)$
- register: dotnet_framework
- - name: set acl for dotnet framework paths
- win_acl:
- path: "{{ item.path }}"
- user: "{{ item.value.user | mandatory }}"
- rights: ListDirectory,Modify,Read,ReadAndExecute,Write
- type: allow
- state: present
- inherit: ContainerInherit, ObjectInherit
- propagation: None
- with_items: "{{ dotnet_framework.files }}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement