English

Execute Ansible Playbook without NetApp Docker image

Contributors netapp-manishc Download PDF of this page

Steps
  1. Install Python and Ansible.

  2. Install the required Python packages by using pip:

    $ pip install netapp-lib requests
     
    Installing collected packages: netapp-lib, requests
    Successfully installed netapp-lib-2020.3.12 requests-2.23.0 
  3. Install NetApp Ansible collection by using the ansible-galaxy command:

    To install the collection only for the current user
    $ ansible-galaxy collection install netapp.ontap
     
    To do a more universal installation,
    $ ansible-galaxy collection install netapp.ontap -p /usr/share/ansible/collections
    
    $ chmod -R +rw /usr/share/ansible/collections

    For more information about the ansible-galaxy command, refer to Ansible Galaxy Documentation and for more details about the NetApp Ansible Collection, refer to the NetApp Ansible Collection page.

  4. Execute the Ansible Playbook by using ansible-playbook command:

    $ cd <downloaded_playbook_path>
    $ ansible-playbook na_ontap_pb_upgrade_firmware.yml
     
    Enter your ONTAP admin username: ****
    Enter the password for your ONTAP admin user: ****
    Enter the base URL to the firmware package (using HTTP is recommended): http://<web-server>/path/
    PLAY [ONTAP Firmware Upgrade] ****************************************************************

For more information about the ansible-playbook command, refer to the Ansible Playbook Documentation and to execute the Ansible Playbook in check mode (dry run), refer to Ansible: Check mode.

After executing the playbook, refer to the Firmware Installation Validations for post execution instructions.