【发布时间】:2016-08-26 04:48:43
【问题描述】:
我一直想知道用“ansible way”(用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 -
【问题讨论】:
标签: bash curl ansible wget ansible-playbook