|
|
@ -218,9 +218,6 @@ def run_acl(module, cmd, check_rc=True):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def main():
|
|
|
|
def main():
|
|
|
|
if get_platform().lower() != 'linux':
|
|
|
|
|
|
|
|
module.fail_json(msg="The acl module is only available for Linux distributions.")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
module = AnsibleModule(
|
|
|
|
module = AnsibleModule(
|
|
|
|
argument_spec=dict(
|
|
|
|
argument_spec=dict(
|
|
|
|
name=dict(required=True, aliases=['path'], type='path'),
|
|
|
|
name=dict(required=True, aliases=['path'], type='path'),
|
|
|
@ -245,6 +242,9 @@ def main():
|
|
|
|
supports_check_mode=True,
|
|
|
|
supports_check_mode=True,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if get_platform().lower() != 'linux':
|
|
|
|
|
|
|
|
module.fail_json(msg="The acl module is only available for Linux distributions.")
|
|
|
|
|
|
|
|
|
|
|
|
path = module.params.get('name')
|
|
|
|
path = module.params.get('name')
|
|
|
|
entry = module.params.get('entry')
|
|
|
|
entry = module.params.get('entry')
|
|
|
|
entity = module.params.get('entity')
|
|
|
|
entity = module.params.get('entity')
|
|
|
|