美文网首页
Shell with ansible

Shell with ansible

作者: monkeyeason | 来源:发表于2020-04-17 14:29 被阅读0次

#!/bin/bash

# Command line variable is $1

if [ -n "$1" ]; then

  echo "Package to install is $1"

else

  echo "Package to install not supplied."

  exit

fi

ansible all -b -m yum -a "name=$1 state=present"

./install-package.sh elinks

相关文章

网友评论

      本文标题:Shell with ansible

      本文链接:https://www.haomeiwen.com/subject/yktyvhtx.html