Bootstrap

ansible的shell模块执行多行命令

ansible的shell模块执行多行命令
可以通过cmd参数和管道|来实现,如下

- name: 执行编译脚本
  shell:
    cmd: |
      make
      make install PREFIX=/usr/local/redis
    chdir: /root/redis-5.0.3
;