Hi,
I'm trying to collect output while using aoscx_command, this is my playbook:
- hosts: all
gather_facts: false
roles:
- role: aoscx-ansible-role
tasks:
- name: Execute 'show system', and output results to file in plaintext
aoscx_command:
commands: [
'show system',
]
output_file: /home/talm/output.txt
output_file_format: plain-text
but when I'm run it, the output I receive is only for one device:
[talm@centos01 ansible]$ cat /home/talm/output.txt
command: show system
response: Hostname : AOSCX02
System Description : Virtual.10.05.0020
System Contact :
System Location :
Vendor : Aruba
Product Name : ABC123 ArubaOS-CX_OVA
Chassis Serial Nbr : OVA50BF13
Base MAC Address : 080009-50bf13
ArubaOS-CX Version : Virtual.10.05.0020
Time Zone : UTC
Up Time : 2 hours, 52 minutes
CPU Util (%) : 6
Memory Usage (%) : 33
------------------------------------------
[talm@centos01 ansible]$
How can I append the output for each device in the same file?
Is there anyway to create a file for each device based on their hostname?
Thanks.
------------------------------
Tal Madari
------------------------------