ansible wget then exec scripts => get_url equivalent

前端 未结 6 919
慢半拍i
慢半拍i 2020-12-09 09:00

I always wonder what is the good way to replace the following shell tasks using the \"ansible way\" (with get_url, etc.):

- name: I         


        
6条回答
  •  天命终不由人
    2020-12-09 09:05

    For me, the following statement worked:

     - name: "Execute Script"
       shell: curl -sL https://rpm.nodesource.com/setup_6.x | bash -
    

提交回复
热议问题