0

I have some tasks with loops and when I run them I get something like this in output:

TASK [mytask : Create files] ********************************************** changed: [localhost] => (item=(censored due to no_log)) changed: [localhost] => (item=(censored due to no_log)) changed: [localhost] => (item=(censored due to no_log)) 

Is there a way to change it to

TASK [mytask : Create files] ********************************************** changed: [localhost] => (create file1) changed: [localhost] => (create file2) changed: [localhost] => (create file3) 

without external utils?

1 Answer 1

2

There's loop_control:

- name: create files file: path: "/tmp/tmp_{{ item }}" state: touch with_items: [1,2,3] loop_control: label: "create file {{ item }}" 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.