Ansible Module Error: couldn't resolve module/action 'commvault'

Last post 05-19-2020, 12:49 PM by Cocoon. 0 replies.
Sort Posts: Previous Next
  • Ansible Module Error: couldn't resolve module/action 'commvault'
    Posted: 05-19-2020, 12:49 PM


    I'm trying using Commvault Ansible module.

    Ansible: 2.9.3

    python: 2.7.5

    cvpysdk module: 11.19.1


    I've installed Commvault ansible with "pip install" command:

    # pip install cvpysdk
    DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip, can be found at
    Collecting cvpysdk
    Using cached cvpysdk-11.19.1-py2.py3-none-any.whl (711 kB)
    Requirement already satisfied: requests in /usr/lib/python2.7/site-packages (from cvpysdk) (2.23.0)
    Requirement already satisfied: future in /usr/lib/python2.7/site-packages (from cvpysdk) (0.18.2)
    Requirement already satisfied: xmltodict in /usr/lib/python2.7/site-packages (from cvpysdk) (0.12.0)
    Requirement already satisfied: idna<3,>=2.5 in /usr/lib/python2.7/site-packages (from requests->cvpysdk) (2.9)
    Requirement already satisfied: chardet<4,>=3.0.2 in /usr/lib/python2.7/site-packages (from requests->cvpysdk) (3.0.4)
    Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /usr/lib/python2.7/site-packages (from requests->cvpysdk) (1.25.9)
    Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python2.7/site-packages (from requests->cvpysdk) (2020.4.5.1)
    Installing collected packages: cvpysdk
    Successfully installed cvpysdk-11.19.1
    Try to login like explain in the following example:
    - name: Commvault Ansible
      gather_facts: no
      hosts: localhost
      connection: local
      webconsole_hostname: 'webconsole_hostname'
      commcell_username: 'commcell_username'
      commcell_password: 'commcell_password'
        - name: Login
              operation: login
              entity: {
              webconsole_hostname: "{{ webconsole_hostname }}",
              commcell_username: "{{ commcell_username }}",
              commcell_password: "{{ commcell_password }}"
          register: commcell
    But i got the following error message:
    ERROR! couldn't resolve module/action 'commvault'. This often indicates a misspelling, missing collection, or incorrect module path.
The content of the forums, threads and posts reflects the thoughts and opinions of each author, and does not represent the thoughts, opinions, plans or strategies of Commvault Systems, Inc. ("Commvault") and Commvault undertakes no obligation to update, correct or modify any statements made in this forum. Any and all third party links, statements, comments, or feedback posted to, or otherwise provided by this forum, thread or post are not affiliated with, nor endorsed by, Commvault.
Commvault, Commvault and logo, the “CV” logo, Commvault Systems, Solving Forward, SIM, Singular Information Management, Simpana, Commvault Galaxy, Unified Data Management, QiNetix, Quick Recovery, QR, CommNet, GridStor, Vault Tracker, InnerVault, QuickSnap, QSnap, Recovery Director, CommServe, CommCell, SnapProtect, ROMS, and CommValue, are trademarks or registered trademarks of Commvault Systems, Inc. All other third party brands, products, service names, trademarks, or registered service marks are the property of and used to identify the products or services of their respective owners. All specifications are subject to change without notice.
Copyright © 2020 Commvault | All Rights Reserved. | Legal | Privacy Policy