Generate SSH key pair and register the public key on GitHub.
sudo yum install git vim
Ansible >= 2.1 required.
sudo yum install ansible --enablerepo=epel-testing
$ cd ~
$ git init
$ git remote add origin [email protected]:KNJ/knj.git
$ git fetch origin
$ git merge origin/master
$ git branch --set-upstream-to=origin/master master
Starting Vim, the plugins are to be installed.
$ vim
But it is likely that the installation will fail. In that case, execute :NeoBundleCheck
command.
- CentOS 7
- Python >= 2.6
- nginx
- MariaDB
- Redis
- PHP 7
- Ruby (via rbenv)
- Node.js (via nvm)
Configure ansible/inventories/development.example
to save as ansible/inventories/development
. Boot the slave server and make sure the master server can connect with the slave. Then run ansible-playbook
command.
Example:
ansible-playbook ~/ansible/web.yml -i ~/ansible/inventories/development -u centos --private-key=~/.ssh/ansible.pem