Ansible 操作备忘

Ansble 相关


捕获命令标准输出:

    - name: get project directory info

      shell: 'ls -lrt /data/www/'

      register: info


    - name: output project directory

      debug: msg={{info.stdout_lines}}




猜你喜欢

转载自blog.51cto.com/13520772/2449544
今日推荐