semaphore icon indicating copy to clipboard operation
semaphore copied to clipboard

Unstructured output

Open Noswell opened this issue 1 year ago • 3 comments

Hello everyone. I've been testing some new playbooks via semaphore and noticed a very strange thing with how semaphore output information, which was get from cisco device (i think it does not depend from which device the information was received, but still). Using the playbook below:

---
- name: Cisco command playbook
  hosts: all
  gather_facts: no
  vars:
    ansible_connection: network_cli
    ansible_network_os: ios

  tasks:
    - name: Run user command on Cisco device
      ios_command:
        commands: show vlan
      register: result

    - name: Show command output
      ansible.builtin.debug:
        var: result.stdout_lines
...

i'm getting different types of output, one from native ansible on my ubuntu and one from semaphore. So the output i get from native ansible is pretty good, very similar to what i have on my cisco, in context of structure (comfortable to read and analize): image

But when i play my playbook using semaphore, i get this: image

As you can see (i hope, as i'm using github issues for the first time and may not know some of it's rules and mechanics, btw sorry for that), the semaphore's output is not so structured and uncomfortable to read. The interesting thing for me is when i go to ansible.cfg file and write stdout_callbacks = yaml/debug in the [default] section, the output is changed in both semaphore and native ansible, however in semaphore the structure of an output is keeping "bad". I'd be very grateful to any suggestings of how can i fix this problem! Sorry for my bad english

Noswell avatar Jan 20 '24 20:01 Noswell

Can you verify that the ansible.ini and your log configuration for Ansible is consistent in your semaphore env and your shell?

AFAIR this is an option you should review in your ansible.ini. What comes from STDOUT(which is effectively what's being logged) is Ansible and not Semaphores work.

andreas-marschke avatar Jan 30 '24 00:01 andreas-marschke

AFAIR this is an option you should review in your ansible.ini. What comes from STDOUT(which is effectively what's being logged) is Ansible and not Semaphores work.

It depends... In HTML blanks (being it whitespaces or tabs) could be displayed differently compared to the terminal.

tboerger avatar Jan 31 '24 08:01 tboerger

Heh, yes, it is HTML issue. But it is a bug. Thank you.

fiftin avatar Feb 05 '24 21:02 fiftin

Soved.

fiftin avatar Apr 02 '24 15:04 fiftin