Mustaches don’t nest. Instead of
body: “{{ lookup(‘ansible.builtin.file’, ‘{{ role_path }}/files/quota_details.json’) }}”
use this:
body: “{{ lookup(‘ansible.builtin.file’, role_path ~ ‘/files/quota_details.json’) }}”
Thanks Todd,
i noticed
body: “{{ lookup(‘ansible.builtin.file’, ‘{{ role_path }}/files/quota_details.json’) }}” is working perfectly.
However it is looking for pre-exist path “/ifs/myserver/MA” which is not exist .
it has to be created before running to module using " dellemc.powerscale.filesystem"
- name: Create Filesystem in default (system) access zone, without Quota
dellemc.powerscale.filesystem:
onefs_host: “{{ isilon_ip_address_p }}”
port_no: “8080”
verify_ssl: false
api_user: “{{ isilon_api_user }}”
api_password: “{{ isilon_api_password }}”
path: “/ifs/myserver/MA”
owner:
name: ‘root’
provider_type: ‘ldap’
state: “present”
“msg”: "Failed to get the owner id for root in zone System and provider ldap due to error { errors : [ { code : AEC_BAD_REQUEST , message : Error during lookup of user ‘USER:root’: The authentication provider is invalid } ] } "
}