1 # spdk-ansible: deploy spdk
3 sudo apt-get install openssh-server
5 if you use root to run spdk-ansible, you should open the file of
6 /etc/ssh/sshd_config and modify:
8 sudo /etc/init.d/ssh restart
12 ssh-copy-id -i ~/.ssh/id_rsa.pub <romte_ip(eg: username@hostName or username@hostIp)>
14 ## Install the ansible tool:
15 sudo add-apt-repository ppa:ansible/ansible
17 sudo apt-get install ansible
19 ## Configure Inventory, default in /etc/ansible/hosts:
21 your_host_name or your_host_ip
23 ## Check if the hosts could be reached:
26 ## Download spdk-ansible
27 git clone https://github.com/hellowaywewe/spdk-ansible.git
29 ## configure spdk-ansible
30 Configure common.yml according to required vars.
31 Configure site.yml according to required tasks.
33 ## Run ansible playbook: (under spdk-ansible root directory)
34 ansible-playbook site.yml --extra-vars "ansible_sudo_pass=your_user_password"
35 if you use root to run,you can execute directly:
36 ansible-playbook site.yml