我一直在想用“ansible方式”(使用get_url
等)替换以下shell
任务的好方法是什么:
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 -
get_url
或uri
模块的功能来解决这个问题... 希望在未来能够实现... - Drew