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 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 ?
Indukr
6 Posts
761
1
Posted 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}}"