"TASK:" only showing "[command]"

14 views
Skip to first unread message

Dana Christo

unread,
Jun 13, 2016, 4:38:13 PM6/13/16
to Ansible Project
I'm trying to create a playbook to print "hello world". Here is my playbook:

---
- hosts: all
  tasks
:
   
- shell: echo "hello world"

When I run ansible-playbook -i "localhost," -c local hello world.yml I get the following output:












But shouldn't TASK: [command] ************** be TASK: [shell echo "hello world"] ********* ?

Brian Coca

unread,
Jun 13, 2016, 4:39:15 PM6/13/16
to ansible...@googlegroups.com
No, in >=2.0 the task name by default does not include all the options passed as it could disclose sensitive information.


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

Dana Christo

unread,
Jun 14, 2016, 1:11:12 PM6/14/16
to Ansible Project
Thanks! Is there a way to change that?

Brian Coca

unread,
Jun 14, 2016, 1:20:47 PM6/14/16
to ansible...@googlegroups.com
display_args_to_stdout in ansible.cfg


----------
Brian Coca
Reply all
Reply to author
Forward
0 new messages