1 Star 0 Fork 2

chenglei1_yewu / demo-ansible

forked from wanghuiic / demo-ansible 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
test.sh 598 Bytes
一键复制 编辑 原始数据 按行查看 历史
wanghuiic 提交于 2022-05-24 16:15 . example/slurmtest
#!/bin/bash
cdir=$(pwd)
if [ $# -eq 0 ] ; then
echo -e "Usage: $0 <dir in ${cdir}/example/>"
read t dumb <<< $(ls ${cdir}/example/)
echo -e "Example:"
echo -e "\t$0 $t"
echo -e "\n# ls ${cdir}/example/"
ls ${cdir}/example/
echo
exit 0
fi
dest="$1"
shift
cd usr1 && . bin/activate || exit 1
for act in bootstrap-servers prechecks deploy; do
#for act in deploy; do
demo-ansible $act \
--inventory ${cdir}/example/$dest/multinode \
--configdir ${cdir}/example/$dest \
--passwords ${cdir}/example/$dest/passwords.yml $* || \
exit 1
done
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/chenglei1_yewu/demo-ansible.git
git@gitee.com:chenglei1_yewu/demo-ansible.git
chenglei1_yewu
demo-ansible
demo-ansible
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891