uos
文章平均质量分 59
AriesGoEvil
这个作者很懒,什么都没留下…
展开
-
ansible问题记录
通过cron模块调用playbook实现定时查询ip 端口 后台api接口是否正常1.环境变量问题远程调用ansible需要设置ansible环境变量,在~/.bashrc中写死定义好cron模块也需要设置环境变量,在批处理文件中source ~/.bashrc遇到bash: playbook/cron.sh:/bin/bash^M:解释器错误: 没有那个文件或目录由于sh在window机器上编辑上传导致sed -i 's/\r$//' cron.sh根据https:/原创 2021-07-29 17:43:59 · 158 阅读 · 0 评论 -
UOS离线安装部署ansible
由于需要监控内网主机,且服务器为国产化鲲鹏CPU,UOS操作系统,以此记录离线国产服务器安装ansible的流程。1.环境检查1)uos版本cat /etc/issueUniontech OS Server 20 Enterprise2)python版本由于ansible是python编写的,所以需要检查服务器上python版本python -Vansible官网建议python2 2.7或python3 3.5及以上,满足注:uos上有两个python版本p..原创 2021-08-12 14:56:09 · 1128 阅读 · 0 评论