Double Headers when using both profile_tasks and profile_roles

15 views
Skip to first unread message

Jay Grace

unread,
Aug 3, 2022, 1:32:02 PM8/3/22
to Ansible Project
When I use both profile_tasks and profile_roles in my ansible.cfg I get two headers lines.  How do I trim that down to just one (or none just for knowledge's sake)?

For example I only want one header line with the date time and elapsed time (Wednesday 03 August 22 12:30:29).

----- Example Output

TASK [Looped results.] ****************************************************************************************************************************************************************************
Wednesday 03 August 2022  12:30:29 -0500 (0:00:00.109)       0:00:00.943 ******
Wednesday 03 August 2022  12:30:29 -0500 (0:00:00.109)       0:00:00.943 ******
ok: [localhost] => (item=) => {
    "msg": "whoami - jgraceadmin\n."
}
ok: [localhost] => (item=) => {
    "msg": "who am i - ."
}

PLAY RECAP ****************************************************************************************************************************************************************************************
localhost                  : ok=3    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0  

Wednesday 03 August 2022  12:30:29 -0500 (0:00:00.111)       0:00:01.054 ******
===============================================================================
shell ------------------------------------------------------------------- 0.80s
debug ------------------------------------------------------------------- 0.11s
ansible.builtin.debug --------------------------------------------------- 0.11s
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
total ------------------------------------------------------------------- 1.02s
Wednesday 03 August 2022  12:30:29 -0500 (0:00:00.111)       0:00:01.054 ******
===============================================================================
Shell commands. ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.80s
Debug data piping -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.11s
Looped results. ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.11s

Brian Coca

unread,
Aug 3, 2022, 2:22:24 PM8/3/22
to Ansible Project
use only one?

the callback plugins have no clue about each other, they each work independantly

--
----------
Brian Coca

Reply all
Reply to author
Forward
0 new messages