Start a Conversation

Unsolved

R

1 Rookie

 • 

2 Posts

102

October 7th, 2024 07:05

powerscale filesystem ansible module error

  - name: Get filesystem details
    dellemc.powerscale.filesystem:
      onefs_host: "{{onefs_host}}"
      verify_ssl: "false"
      api_user: "{{api_user}}"
      api_password: "{{api_password}}"
      path: '/ifs/ansible_path1'  
      state: "present"
    register: file_details

  - debug:
      var: file_details

"This module failed because it was unable to accept the path '/ifs/ansible_path1'. 
It always interpreted it as 'ifs/ansible_path1', leading to a permission denied error in Ansible."

can any one help on this 

1 Rookie

 • 

5 Posts

November 14th, 2024 14:23

It seems like you're encountering an issue with the way the path is being interpreted in your Ansible playbook. The problem could be related to the leading slash (/) in the path, which may be causing the Ansible module to incorrectly interpret the path as relative rather than absolute. To resolve this, try modifying the path to remove the leading slash, so it looks like ifs/ansible_path1 instead of /ifs/ansible_path1.

Additionally, ensure that the user you're using has the appropriate permissions on the target directory. You could also verify that the OneFS host is properly configured to accept the API requests you're sending.

No Events found!

Top