Linux 可变输出
我有一些带有循环的任务,当我运行它们时,我在输出中得到如下结果:Linux 可变输出,linux,text,formatting,ansible,output,Linux,Text,Formatting,Ansible,Output,我有一些带有循环的任务,当我运行它们时,我在输出中得到如下结果: TASK [mytask : Create files] ********************************************** changed: [localhost] => (item=(censored due to no_log)) changed: [localhost] => (item=(censored due to no_log)) changed: [localhost] =&
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))
有没有办法把它改成
TASK [mytask : Create files] **********************************************
changed: [localhost] => (create file1)
changed: [localhost] => (create file2)
changed: [localhost] => (create file3)
没有外部UTIL?有:
有:
- name: create files
file:
path: "/tmp/tmp_{{ item }}"
state: touch
with_items: [1,2,3]
loop_control:
label: "create file {{ item }}"