# Ansible and Arista

**URL:** <https://forum.ansible.com/t/ansible-and-arista/34570>\
**Category:** Ansible Project\
**Created:** [February 4, 2021, 5:14pm UTC](https://forum.ansible.com/t/ansible-and-arista/34570 "2021-02-04T17:14:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stefan\_Beck](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@Stefan\_Beck](https://forum.ansible.com/u/Stefan_Beck)\
**Post date:** [February 4, 2021, 5:14pm UTC](https://forum.ansible.com/t/ansible-and-arista/34570/1 "2021-02-04T17:14:46Z")

</div>

Hallo to all,

at first I have to commit that I’m a totally beginner - regarding Ansible.  
And due to this I have a question:  
I have a setup with an Ansible-controller and a ssh-connection to a Arista-Switch.  
The Arista switch you can configure with specail eos-commands, i.e. arista.eos.eos\_logging - but also with global commands:

here the official example:

- name: configure top level settings

arista.eos.eos\_config:

lines: hostname {{ inventory\_hostname }}

If I try exactly this command above it works.

But if I change the command like this:

- name: configure top level settings

arista.eos.eos\_config:

lines: logging trap informational

→ it doesn’t work.  
I don’t get an error message but I don’t see the command in my configuration-file.

Has anyone an idea what is going wrong?

Best regards and thanks for the help.

Stefan

---

<div class="post-metadata">

**Author:** ![vinod93pop](https://avatars.discourse-cdn.com/v4/letter/v/ea5d25/32.png) [@vinod93pop](https://forum.ansible.com/u/vinod93pop)\
**Post date:** [February 8, 2021, 5:34pm UTC](https://forum.ansible.com/t/ansible-and-arista/34570/2 "2021-02-08T17:34:52Z")

</div>

Hi Stefan

I haven’t used this module but when I check in document it says it should be the exact command you use in target device . Are you using the correct one .

The ordered set of commands that should be configured in the section. The commands must be the exact same commands as found in the device running-config. Be sure to note the configuration command syntax as some commands are automatically modified by the device config parser.

aliases: commands

//v
