# create liste from multi servers

**URL:** <https://forum.ansible.com/t/create-liste-from-multi-servers/36350>\
**Category:** Ansible Project\
**Created:** [February 21, 2022, 5:16pm UTC](https://forum.ansible.com/t/create-liste-from-multi-servers/36350 "2022-02-21T17:16:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigfootspi](https://avatars.discourse-cdn.com/v4/letter/b/b2d939/32.png) [@bigfootspi](https://forum.ansible.com/u/bigfootspi)\
**Post date:** [February 21, 2022, 5:16pm UTC](https://forum.ansible.com/t/create-liste-from-multi-servers/36350/1 "2022-02-21T17:16:18Z")

</div>

hi ^^

I want to create an inventory of my park.  
form this exemple, I’m getting the serveur name and linux’s version

in my inventory, there is a group with my servers.

i want to execute this task and finaly, show one complet liste with all of my servers (in only one var)

have you an idea ?

- hosts: listeServers  
gather\_facts: no  
vars:  
bilan: [‘inventry’]  
tasks:
- name: “Unix version”  
shell: “echo Server : `uname -n` - `lsb_release -d -s`”  
register: unix\_version
- name: “add to bilan”  
set\_fact:  
bilan: “{{ bilan + [unix\_version.stdout] }}”
- debug: var=bilan
