#Used this syntax for creating a new Vservers .

1 messages · Page 1 of 1 (latest)

strange python
#

  • hosts: exec-node
    vars:
    login: &login
    hostname: "{{ host_name }}"
    username: "{{ username }}"
    password: "{{ password }}"
    https: "{{ https_option }}"
    validate_certs: "{{ validate_certs_option }}"
    vars_files:
    • svmvariables.yml
    • secretvars.yaml
      tasks:
    • name: Create SVM
      netapp.ontap.na_ontap_svm:
      state: present
      name: "{{ newsvmname }}"
      root_volume: newsvmname_root
      root_volume_aggregate: ABC_aggr1
      root_volume_security_style: mixed
      hostname: "{{ host_name }}"
      username: "{{ username }}"
      password: "{{ password }}"

While running getting error

TASK [Create SVM] *******************************************************************************************************************************************
fatal: [vmu0414]: FAILED! => {"changed": false, "msg": "Error: the python NetApp-Lib module is required. Import error: No module named 'netapp_lib'"}

PLAY RECAP **************************************************************************************************************************************************
vmu0414 : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

Please assist

sharp kiln
strange python
#

@sharp kiln Hi Chris. Thanks for the input , however its already installed .
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://p-nexus-3.development.nl.eu.abnamro.com:8443/repository/python-group/simple
Requirement already satisfied: netapp-lib in /home/b0XXX/.local/lib/python3.9/site-packages (2021.6.25)
Requirement already satisfied: six in /usr/lib/python3.9/site-packages (from netapp-lib) (1.15.0)
Requirement already satisfied: lxml in /home/b0XXX/.local/lib/python3.9/site-packages (from netapp-lib) (4.9.2)
Requirement already satisfied: xmltodict in /home/b0XXX/.local/lib/python3.9/site-packages (from netapp-lib) (0.13.0)