# ansible output not shown

**URL:** <https://forum.ansible.com/t/ansible-output-not-shown/36752>\
**Category:** Ansible Project\
**Created:** [June 18, 2022, 3:44pm UTC](https://forum.ansible.com/t/ansible-output-not-shown/36752 "2022-06-18T15:44:47Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![szelga](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/szelga/32/4698_2.png) [@szelga](https://forum.ansible.com/u/szelga)\
**Post date:** [June 18, 2022, 3:44pm UTC](https://forum.ansible.com/t/ansible-output-not-shown/36752/1 "2022-06-18T15:44:47Z")

</div>

an extremely simple playbook:

```---
- hosts:
- test-host
tasks:
- name: AAA
ansible.builtin.debug:
msg: AAA

```

shows results like this:

```auto
[WARNING]: Invalid characters were found in group names but not replaced, use -vvvv to see details

PLAY [test-host] **********************************************************************************************************************************************************

PLAY RECAP ***************************************************************************************************************************************************************
test-host : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0

```

so the debug task is either ignored, or had its output suppressed. please, help me make sense of ansible’s behavior and try to figure out which settings could have influenced it.

---

<div class="post-metadata">

**Author:** ![dnmvisser](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Post date:** [June 18, 2022, 9:48pm UTC](https://forum.ansible.com/t/ansible-output-not-shown/36752/2 "2022-06-18T21:48:39Z")

</div>

Group names can’t include dashes (‘-’)

---

<div class="post-metadata">

**Author:** ![szelga](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/szelga/32/4698_2.png) [@szelga](https://forum.ansible.com/u/szelga)\
**Post date:** [June 19, 2022, 12:07pm UTC](https://forum.ansible.com/t/ansible-output-not-shown/36752/3 "2022-06-19T12:07:49Z")

</div>

it’s a host, not a group.

воскресенье, 19 июня 2022 г. в 02:49:01 UTC+5, [dnmv...@gmail.com](mailto:dnmv...@gmail.com):

---

<div class="post-metadata">

**Author:** ![szelga](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/szelga/32/4698_2.png) [@szelga](https://forum.ansible.com/u/szelga)\
**Post date:** [June 19, 2022, 12:08pm UTC](https://forum.ansible.com/t/ansible-output-not-shown/36752/4 "2022-06-19T12:08:15Z")

</div>

also, the hostname is altered.

воскресенье, 19 июня 2022 г. в 17:07:49 UTC+5, High Raccoon:

---

<div class="post-metadata">

**Author:** ![racke](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/racke/32/4767_2.png) [@racke](https://forum.ansible.com/u/racke)\
**Post date:** [June 19, 2022, 1:07pm UTC](https://forum.ansible.com/t/ansible-output-not-shown/36752/5 "2022-06-19T13:07:46Z")

</div>

> also, the hostname is altered.

Try

hosts: "test1-host:test2-host"

Regards  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Racke

---

<div class="post-metadata">

**Author:** ![utoddl](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/utoddl/32/249_2.png) [@utoddl](https://forum.ansible.com/u/utoddl)\
**Post date:** [June 19, 2022, 4:35pm UTC](https://forum.ansible.com/t/ansible-output-not-shown/36752/6 "2022-06-19T16:35:11Z")

</div>

What’s the output of

ansible-config dump | grep -v default

---

<div class="post-metadata">

**Author:** ![szelga](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/szelga/32/4698_2.png) [@szelga](https://forum.ansible.com/u/szelga)\
**Post date:** [June 20, 2022, 5:10am UTC](https://forum.ansible.com/t/ansible-output-not-shown/36752/7 "2022-06-20T05:10:31Z")

</div>

$ ansible-config dump | grep -v default

ANSIBLE\_PIPELINING(/home/szelga/automation/ansible.cfg) = True  
DEFAULT\_HOST\_LIST(/home/szelga/automation/ansible.cfg) = [‘/home/szelga/automation/inventory\_netbox.yml’, ‘/home/szelga/automation/inventory\_static.yml’  
, ‘/home/szelga/automation/inventory\_test.yml’]  
DEFAULT\_REMOTE\_USER(/home/szelga/automation/ansible.cfg) = root  
DEFAULT\_STDOUT\_CALLBACK(/home/szelga/automation/ansible.cfg) = actionable  
DEFAULT\_VAULT\_PASSWORD\_FILE(/home/szelga/automation/ansible.cfg) = /home/szelga/automation/password.txt  
HOST\_KEY\_CHECKING(/home/szelga/automation/ansible.cfg) = False

воскресенье, 19 июня 2022 г. в 21:35:11 UTC+5, [uto...@gmail.com](mailto:uto...@gmail.com):

---

<div class="post-metadata">

**Author:** ![szelga](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/szelga/32/4698_2.png) [@szelga](https://forum.ansible.com/u/szelga)\
**Post date:** [June 20, 2022, 10:32am UTC](https://forum.ansible.com/t/ansible-output-not-shown/36752/8 "2022-06-20T10:32:58Z")

</div>

DEFAULT\_STDOUT\_CALLBACK was the reason, I’ve set it up a while ago to suppress the excrutiating amount of output and then forgot about it. thank you very much for your help.

воскресенье, 19 июня 2022 г. в 21:35:11 UTC+5, [uto...@gmail.com](mailto:uto...@gmail.com):

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [June 21, 2022, 2:57pm UTC](https://forum.ansible.com/t/ansible-output-not-shown/36752/9 "2022-06-21T14:57:17Z")

</div>

@High Racoon

The message is a bit misleading, it is not matching a host so it tries  
to match a group (since hosts: allows for host patterns which can  
include both), but then it sees the '-' and gives you the message  
about invalid groups.

Note for @Todd Lewis

> ansible-config dump | grep -v default

no need for that, why you have --only-changed

ansible-config dump --only-changed

---

<div class="post-metadata">

**Author:** ![utoddl](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/utoddl/32/249_2.png) [@utoddl](https://forum.ansible.com/u/utoddl)\
**Post date:** [June 21, 2022, 3:51pm UTC](https://forum.ansible.com/t/ansible-output-not-shown/36752/10 "2022-06-21T15:51:14Z")

</div>

Thanks, Brian.  
You’ve touched my love-hate-relationship-with-ansible nerve. It’s an anti-feature that

ansible-config --help dump

produces output different from

ansible-config dump --help

the latter being the only way to discover “–only-changed”.

And whether `man ansible-config` works depends on pip vs. system packaging.

Still, good to know about “–only-changed”.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [June 21, 2022, 4:12pm UTC](https://forum.ansible.com/t/ansible-output-not-shown/36752/11 "2022-06-21T16:12:54Z")

</div>

I need to figure out how to use the argparser library to make those  
more congruent.
