Ansble 相关
捕获命令标准输出:
- name: get project directory info
shell: 'ls -lrt /data/www/'
register: info
- name: output project directory
debug: msg={{info.stdout_lines}}
Ansble 相关
捕获命令标准输出:
- name: get project directory info
shell: 'ls -lrt /data/www/'
register: info
- name: output project directory
debug: msg={{info.stdout_lines}}