安裝 Ansible
yum install ansible
sudo pip install paramiko PyYAML Jinja2 httplib2 six
如果 Ansible 套件出錯:
yum install python-setuptools
yum install gcc libffi_devel python-devel-openssl
yum install epel-release
yum install -y python-pip
pip install paramiko
pip install ansible
設定 SSH KEY
ssh-keygen -t ras
先在原來的本地端生產 ssh-key, 再把他傳到 server
scp id_rsa.pub [email protected]:~/.ssh/
沒有留言:
張貼留言