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

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/613661aa-5789-4243-a427-6d99a1f0ac4bn%40googlegroups.com.

Reply via email to