Ansble 相关
捕获命令标准输出:
- name: get project directory info
shell: 'ls -lrt /data/www/'
register: info
- name: output project directory
debug: msg={{info.stdout_lines}}
上一篇:详解nginx模块使用方法
下一篇:详述Linux系统中Nginx虚拟主机的配置