Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auto_install.sh安装时报错:.../etc/ansible/ansible.cfg 无此文件或目录 #109

Open
byr0nchan opened this issue Apr 12, 2019 · 1 comment

Comments

@byr0nchan
Copy link

auto_install.sh文件中第51行,
37 # 安装依赖
38 echo "####install depandencies####"
39 yum install -y epel-release
40 yum install -y gcc expect python-pip python-devel smartmontools dmidecode libse linux-python git rsync dos2unix
41 yum install -y openssl openssl-devel openldap-devel
42
43 # 分发代码
44 if [ ! $cur_dir ] || [ ! $adminset_dir ]
45 then
46 echo "install directory info error, please check your system environment pr ogram exit"
47 exit 1
48 else
49 rsync --delete --progress -ra --exclude '.git' $cur_dir/ $adminset_dir
50 fi
51 scp $adminset_dir/install/server/ansible/ansible.cfg /etc/ansible/ansible.cfg
52
53 #安装数据库

第51行由于没有建立目录/etc/ansible,会导致出错,可以用以下方法:
1、终端控制台先执行:# mkdir /etc/ansible
或2、将此命令(mkdir /etc/ansible/)添加在auto_install.sh文件中第51行之前一行。

@guohongze
Copy link
Owner

这应该是安装ansible时某种原因没能创建/etc/ansible目录导致的。

如果要在auto_install.sh中加上需要加 -p参数。 mkdir -p /etc/ansible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants