# Ansible Arista EoS Gather Facts about LACP

**URL:** <https://forum.ansible.com/t/ansible-arista-eos-gather-facts-about-lacp/45088>\
**Category:** Get Help\
**Tags:** arista\
**Created:** [January 12, 2026, 5:50pm UTC](https://forum.ansible.com/t/ansible-arista-eos-gather-facts-about-lacp/45088 "2026-01-12T17:50:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![netmart](https://avatars.discourse-cdn.com/v4/letter/n/9e8a1a/32.png) [@netmart](https://forum.ansible.com/u/netmart)\
**Post date:** [January 12, 2026, 5:50pm UTC](https://forum.ansible.com/t/ansible-arista-eos-gather-facts-about-lacp/45088/1 "2026-01-12T17:50:26Z")

</div>

Hello,  
when running the playbook gat fact about status of lacp interface on Arista switch I receive:  
fatal: [switch]: FAILED! =\> {“changed”: false, “msg”: “Subset must be one of [config, default, hardware, interfaces], got all”}

I appreciate any help.

```auto
- my code!
---
- name: Gather Arista EOS LACP facts
  hosts: eos_devices
  gather_facts: no # Disable default facts
  connection: network_cli

  tasks:
    - name: Gather specific LACP facts using eos_facts
      arista.eos.eos_facts:
        gather_subset:
          - '! all' # Exclude all generic facts
          - '! min' # Exclude minimal generic facts
        gather_network_resources:
          - lacp_interfaces # Request LACP interface facts specifically
      register: lacp_facts_output

    - name: Debug the gathered LACP facts
      debug:
        var: lacp_facts_output.ansible_facts.lacp_interfaces
```

---

<div class="post-metadata">

**Author:** ![U880D](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/u880d/32/10032_2.png) [@U880D](https://forum.ansible.com/u/U880D)\
**Post date:** [January 13, 2026, 12:04pm UTC](https://forum.ansible.com/t/ansible-arista-eos-gather-facts-about-lacp/45088/2 "2026-01-13T12:04:51Z")

</div>

> [@netmart](#):
>
> `fatal: [switch]: FAILED! => {“changed”: false, “msg”: “Subset must be one of [config, default, hardware, interfaces], got all”}`

According the error message and documentation [`eos_facts` module – Collect facts from remote devices running Arista EOS](https://docs.ansible.com/projects/ansible/latest/collections/arista/eos/eos_facts_module.html), [Parameters](https://docs.ansible.com/projects/ansible/latest/collections/arista/eos/eos_facts_module.html#parameters) and [Examples](https://docs.ansible.com/projects/ansible/latest/collections/arista/eos/eos_facts_module.html#examples), shouldn’t it be just

```yaml
    - name: Gather specific LACP facts using eos_facts
      arista.eos.eos_facts:
        gather_subset:
          - '!all' # Exclude all generic facts
          - '!min' # Exclude minimal generic facts
        gather_network_resources:
          - lacp_interfaces # Request LACP interface facts specifically

```

specifically `!all` and `!min` without the space in between?

There is also no need to `register`.

```yaml
    - name: Debug the gathered LACP facts
      debug:
        var: ansible_facts.lacp_interfaces

```
