3 Posts
0
922
powerscale ansible 1.1 remove everyone permission
Hi all, i am trying to automatize our powerscale enviroment with ansible and i need to delete default everyone permission. Is there any way to delete this permission?
Thanks.
No Events found!
Indukr
6 Posts
1
May 31st, 2021 04:00
Yes @Mustafa.Yildiz .
We can pass permission_type: "Deny" to revoke access. This can be done using module 'dellemc.powerscale.smb'.
Following is a sample playbook task:
dellemc_powerscale_smb:
onefs_host: "{ {onefs_host}}"
verify_ssl: "{ {verify_ssl}}"
api_user: "{ {api_user}}"
api_password: "{ {api_password}}"
share_name: "{ {name}}"
access_zone: "{ {non_system_access_zone}}"
permissions:
- user_name: '{ {non_system_az_ldap_user}}'
permission: "write"
permission_type: "deny"
provider_type: "ldap"
- group_name: '{ {non_system_az_ldap_group}}'
permission: "read"
permission_type: "deny"
provider_type: "ldap"
- wellknown: "everyone"
permission: "full"
permission_type: "deny"
provider_type: "ldap"
state: "{ {state_present}}"
Indukr
6 Posts
0
May 30th, 2021 23:00
Hi @Mustafa.Yildiz ,
Thanks for initiating this discussion. To take it further, are there any specific components for which you are looking for this requirement like accesszones, smb etc ?
Thanks
Rajendra
Mustafa.Yildiz
3 Posts
0
May 31st, 2021 00:00
Hi @Indukr
Thanks for your response. I am trying to delete default smb share permission, is there a way to do this with ansible?
Mustafa.Yildiz
3 Posts
0
June 3rd, 2021 01:00
Hi @Indukr
It solves our problem, thank yor for response.