Ansible deploys SpaceVim
Note that you can first look at the tutorial on github, which contains the configuration between different systems
Systems currently supported by this script:
- CentOS7
- CentOS8
- Ubuntu18.04
- Ubuntu19.04
First you need to configure ansible on this machine
cd /etc/ansible/hosts
# 本机
[local]
127.0.0.1
# 你的服务器,或者别的linux电脑
[linux]
192.168.0.*** ansible_user=user ansible_ssh_pass=123456 ansible_sudo_pass=123456
Download remote script
ansible-galaxy install graycatya.ansibles_spacevim
Execute the script
1. 修改剧本为你的主机
cd ~/.ansible/roles/graycatya.ansibles_spacevim/tests/test.yml
2. 执行剧本
ansible-playbook test.yml --ask-sudo-pass