团队
无法捕捉到问题所在,我尝试了命令以及shell模块。 实际命令执行正常,但不确定为什么会显示stderr?
任务
#include <stdio.h>
printf("Hello %s\n",name);
输出
- name: "List out PROC Stats on DGX/GPU Nodes Nodes"
shell: "cat {{ proc_stats }} | grep FS"
ignore_errors: no
register: proc_stats
delegate_to: "{{ item }}"
with_items: "{{ groups['gpu_node'] }}"
failed_when: proc_stats.rc != 0