相关疑难解决方法(0)

ansible wget然后exec scripts => get_url等价

我总是想知道shell使用"ansible方式"(用get_url等等)替换以下任务的好方法是什么:

- name: Install oh-my-zsh
  shell: wget -qO - https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | bash -
Run Code Online (Sandbox Code Playgroud)

要么

- name: Install nodesource repo
  shell: curl -sL https://deb.nodesource.com/setup_5.x | bash -
Run Code Online (Sandbox Code Playgroud)

bash curl wget ansible ansible-playbook

20
推荐指数
2
解决办法
1万
查看次数

标签 统计

ansible ×1

ansible-playbook ×1

bash ×1

curl ×1

wget ×1