Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to one-line display #36

Open
CremaLuca opened this issue Oct 8, 2024 · 1 comment
Open

Unable to one-line display #36

CremaLuca opened this issue Oct 8, 2024 · 1 comment

Comments

@CremaLuca
Copy link

I am unable to obtain one-line display when running a playbook with only one target host.

My configuration:

# hosts.yml
[localhost]
localhost ansible_connection=local
# test.yml

- name: "Test"
  hosts: localhost
  tasks:
    - command: "sleep 1"
    - name: "Secret action"
      command: "sleep 1"
# ansible.cfg

[defaults]
callback_plugins = callbacks
stdout_callback = anstomlog

The output of test.yml is:

$ ansible-playbook -i hosts.yml -c ansible.cfg test1.yml

[12:56:22] Gathering Facts
↳  localhost | SUCCESS | 1.16s
[12:56:23] command
↳  localhost | CHANGED | 2.39s
[12:56:26] Secret action
↳  localhost | CHANGED | 1.26s
[12:56:27] system
-- Play recap --
localhost                  : ok=3    changed=2    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0 

While I was expecting (and I could obtain, in a previous version of the library)

[12:56:22] Gathering Facts | localhost | SUCCESS | 1.16s
[12:56:23] command | localhost | CHANGED | 2.39s
[12:56:26] Secret action | localhost | CHANGED | 1.26s

Can I achieve one-line display (when a single host is used)? Reading the README.md ticked box "one-line display" and screenshot I suppose it could be done but I was not able to.

@wpre
Copy link

wpre commented Feb 13, 2025

I have the same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants