使用Ansible安装自制软件

时间:2018-09-25 21:18:13

标签: ansible homebrew macos-sierra

我无法使用任何Ansible模块在远程节点Macos(10.13.6)上安装自制软件。 Ansible 2.5.2 到目前为止,我已经使用过命令和脚本,但是由于红宝石的卷曲,它要么在播放中冻结,要么引发错误。

---
- name: Install homebrew 
  command: '/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"'

---
- name: Install homebrew with a script
  script: homebrew.sh

我的homebrew.sh

#!/bin/bash
 /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

homebrew
     - tasks
         - main.yml
     - files
         - homebrew.sh

0 个答案:

没有答案