我总是想知道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)