Ansible Avocent Switch

I am trying to work on a scenario in which I want to access Cisco and Juniper network devices and run my ansible network modules like get facts, get config, push config commands on them through ansible. The network devices are connected via console ports to an Avocent AS6000 server. So from a CentOS machine which is my ansible host machine, I want to login to the Avocent Server and then access the network devices using ansible playbooks. I am not sure how to go about it. Can anyone please guide me. I am new to this