# Ansible and A10 Networks

**URL:** <https://community.a10networks.com/t/ansible-and-a10-networks/295>\
**Category:** System\
**Created:** [August 2, 2014, 10:17am UTC](https://community.a10networks.com/t/ansible-and-a10-networks/295 "2014-08-02T10:17:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mischa](https://avatars.discourse-cdn.com/v4/letter/m/b9bd4f/32.png) [@mischa](https://community.a10networks.com/u/mischa)\
**Post date:** [August 2, 2014, 10:17am UTC](https://community.a10networks.com/t/ansible-and-a10-networks/295/1 "2014-08-02T10:17:47Z")

</div>

If you are operating an infrastructure with [Ansible](http://www.ansible.com/home) and are looking for A10 Networks modules, have a look at this [Ansible Fork](https://github.com/mischapeters/ansible). It has not been scheduled to be included as it needs some airtime. You can try this out on ACOS 2.7.1 and higher as it needs aXAPI 2.1. When you find anything that is not working please let me know.

---

<div class="post-metadata">

**Author:** ![quirinodina](https://avatars.discourse-cdn.com/v4/letter/q/b5ac83/32.png) [@quirinodina](https://community.a10networks.com/u/quirinodina)\
**Post date:** [March 13, 2018, 7:32am UTC](https://community.a10networks.com/t/ansible-and-a10-networks/295/2 "2018-03-13T07:32:47Z")

</div>

Hello Mischa  
I have started to use Ansible inside our network infrastructure and I have created a very first playbook to manage our A10 like this;

— #include: a10\_virtual\_server

- hosts: a10lb  
&nbsp;&nbsp;gather\_facts: no  
&nbsp;&nbsp;tasks:  
&nbsp;&nbsp;&nbsp;&nbsp;- a10\_virtual\_server:  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;host: a10lb  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;username: ansible  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;password: ansible  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;partition: shared  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;virtual\_server: vserver1

```auto
        virtual\_server\_ip: 1.1.1.1
        virtual\_server\_ports:

```

- port: 80  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;protocol: TCP  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;service\_group: sg-80-tcp  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- port: 443  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;protocol: HTTPS  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;service\_group: sg-443-https  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- port: 8080  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;protocol: http  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;status: disabled  
Version of our LB is 2.7.2-P10(build: 86), aXAPI 2.1 and this is the error that I have always receive;  
“Failed to connect to the host via ssh: /a10/bin/rimacli: invalid option – c\n”  
I read that this is an authorization problem but the Ansible account is allowed to read and write with aXAPI.  
There is a way to check the logs about the aXAPI to see what happens in depth ?  
BR  
Quirino.

---

<div class="post-metadata">

**Author:** ![HelpingHand](https://avatars.discourse-cdn.com/v4/letter/h/8e8cbc/32.png) [@HelpingHand](https://community.a10networks.com/u/HelpingHand)\
**Post date:** [March 13, 2018, 1:13pm UTC](https://community.a10networks.com/t/ansible-and-a10-networks/295/3 "2018-03-13T13:13:13Z")

</div>

Hi Quirino,

Maybe I can help you.

You should be able to see all aXAPI calls made into the ACOS system using the ‘show audit’ command.

The error you see does seems strange, however, because the A10 ansible modules don’t use ssh to connect to the A10 ACOS system. Instead, they’re designed to use the aXAPI (HTTPS).

Another thing you might want to try is to put the following in the playbook:  
validate\_certs: no

Good luck,

FH
