Fork me on GitHub

Organizations

@github @rss
1 results for ansible
  • 难度等级: 不太容易,也不太难
    images/featured-image.jpg
    在容器的伟大之处:Kubenetes集群和NFS存储教程中创建了一个Kubernetes集群后,我现在希望能够通过Ansible解决这些计算机。 为此需要一个新的钥匙。 x – + Terminal $ ssh-keygen -b 4096 在所有服务器(服务器1、服务器2和服务器3)的"/home/pi/.ssh/authorised_keys “文件中添加了新的公钥。此外,Ansible必须安装这个包。 x – + Terminal $ sudo apt-get install -y ansible 之后,必须在”/etc/ansible/hosts “文件中输入Raspberrys。 [raspi-kube.clust] ip-server-1:ssh-port ansible_ssh_user=username ip-server-2:ssh-port ansible_ssh_user=username ip-server-3:ssh-port ansible_ssh_user=username 现在可以按以下方式检查配置。 x – + Terminal $ ansible all -m ping --ssh-common-args='-o StrictHostKeyChecking=no' 见。 现在你可以执行playbooks或命令,例如重新启动所有服务器。 x – + Terminal $ ansible raspi -m shell -a 'sudo /sbin/reboot'
    ansible raspberry pi cloud homelab Created Fri, 25 Jun 2021 00:00:00 +0000