本站教程收集整理的这篇文章主要介绍了bash – ansible wget然后exec scripts => get_url等价,本站教程本站觉得挺不错的,现在分享给大家,也给大家做个参考。
我总是想知道使用“ansible方式”(使用get_url等)替换以下sHell任务的好方法是什么:
- name: Install oh-my-zsh sHell: wget -qO - https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | bash -
要么
- name: Install nodesource repo sHell: curl -sL https://deb.nodesource.com/setup_5.x | bash -
这对我有用:
- name: Download zsh installer get_url: url=https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh dest=/tmp/zsh-installer.sh - name: Execute the zsh-installer.sh sHell: /tmp/zsh-installer.sh - name: Remove the zsh-installer.sh file: path=/tmp/zsh-installer.sh state=absent
本站总结
以上是本站教程为你收集整理的bash – ansible wget然后exec scripts => get_url等价全部内容,希望文章能够帮你解决bash – ansible wget然后exec scripts => get_url等价所遇到的程序开发问题。
如果觉得本站教程网站内容还不错,欢迎将本站教程推荐给好友。
本图文内容来源于网友网络收集整理提供,作便宜香港vps为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。