Gineesh
Flight Engineer
Flight Engineer
  • 4,497 Views

Ansible Modules for HP Switches (Comware 7)

I was developing some latest playbooks for HP Switches (HP 5130 - CMW710) and noticed the 3rd party modules (refer link below) are not working any more with latest Ansible version (ansible 2.9.9). Also I found the repository is not maintained anymore (or last update was few years ago).

Could anyone advise if there are Ansible modules for HP switches ? (eg: HP 5130)

Or any other best practice to implement Ansible for HP Network Automation ?

Notes:

  • I have tried raw, cli_commands like modules to achieve the dirty way of executing commands, but failed with those.

  • Already enabled netconf on devices but still fail with ansible_connection=network_cli or ansible_connection=netconf

Thanks in advance.

0 Kudos
6 Replies
hal2069
Cadet
Cadet
  • 3,702 Views

Re: Ansible Modules for HP Switches (Comware 7)

I am also interested in the topic :)

0 Kudos
Reply
Loading...
  • 3,604 Views

Re: Ansible Modules for HP Switches (Comware 7)

we have already dropped that plan to use those and used direct "raw" commands instead

0 Kudos
Reply
Loading...
MaximeA
Cadet
Cadet
  • 3,619 Views

Re: Ansible Modules for HP Switches (Comware 7)

I also think it's not maintained anymore. Getting errors while trying simple comware_ping & comware_facts command. I'm using Ansible 2.9.16.

0 Kudos
Reply
Loading...
  • 3,605 Views

Re: Ansible Modules for HP Switches (Comware 7)

Yeah. 
we have already dropped that plan to use those and used direct "raw" commands instead

0 Kudos
Reply
Loading...
Markolo95
Cadet
Cadet
  • 2,398 Views

Re: Ansible Modules for HP Switches (Comware 7)

Hy!

How did you achieve to use the "cli_command"? I mean what did you use at "ansible_network_os", and "connection"?

Thanks.

0 Kudos
Reply
Loading...
Gineesh
Flight Engineer
Flight Engineer
  • 1,398 Views

Re: Ansible Modules for HP Switches (Comware 7)

my apologies as I have overlooked this question.

Hope you have already found a solution for the same.

Anyway, sharing from my side (as per my old records as it was done in middle of 2020) 

[labds:vars]
ansible_network_os=auto
ansible_connection=netconf
ansible_password=password
ansible_username=hpuser
ansible_user=hpuser
ansible_ssh_user=hpuser
0 Kudos
Reply
Loading...
Join the discussion
You must log in to join this conversation.