Skip to content

Deleting hdfs ranger policy #4

@nawalalaa

Description

@nawalalaa

Hello,

i'm facing an issue with deleteing policy from hdfs ranger

Here is my code for deleting...

  • name: Apply ranger Hdfs policy
    ranger_hdfs_policies:
    state: absent.
    admin_url: https://{{ groups['ranger'][0] }}:6182
    admin_username: "admin"
    admin_password: "{{ RANGER_ADMIN_PASSWORD }}"
    validate_certs: no
    policies:
    • name: " User {{ User_Ftid }} Home access "
      paths:
      • "/user/{{ User_Ftid }}"
        permissions:
      • users:
        • "{{ User_Ftid }}"
          accesses:
        • Write
        • read
        • execute
          tags:
    • ranger_policies
      when : User_Ftid[0] is defined

always i receive this error :
ERROR! couldn't resolve module/action 'ranger_hdfs_policies'. This often indicates a misspelling, missing collection, or incorrect module path.

The error appears to be in '/var/www/html/JENKINS/workspace/Delete_user_NA/roles/Delete_user_NA/tasks/main.yml': line 2, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

HDFS ranger rule

  • name: Apply ranger Hdfs policy
    ^ here
    Build step '

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions