浏览代码

ansible: run.sh -> local.sh

pull/1/head
10sr 10 年前
父节点
当前提交
13deb987c9
共有 2 个文件被更改,包括 8 次插入2 次删除
  1. +1
    -1
      ansible/local.hosts
  2. +7
    -1
      ansible/local.sh

ansible/hosts → ansible/local.hosts 查看文件

@@ -1 +1 @@
localhost ansible_connection=local ansible_python_interpreter=/usr/bin/python2 package_manager=pacman
localhost ansible_connection=local ansible_python_interpreter=/usr/bin/python2

ansible/run.sh → ansible/local.sh 查看文件

@@ -8,4 +8,10 @@ then
exit 1
fi

ansible-playbook -i hosts --ask-sudo-pass "$@"
if test $# -eq 0
then
echo "usage: $0 <playbook> [...]"
exit 1
fi

ansible-playbook -i local.hosts --ask-sudo-pass "$@"

正在加载...
取消
保存