Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/masutaka/ansible-sample
https://github.com/masutaka/ansible-sample
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/masutaka/ansible-sample
- Owner: masutaka
- Created: 2014-03-29T19:40:40.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-03-30T14:45:02.000Z (almost 11 years ago)
- Last Synced: 2024-04-23T17:18:05.487Z (8 months ago)
- Size: 125 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# a sample of Ansible
## Setup
Install VirtualBox and Vagrant.
Add ansible to your PC. For example,
$ brew install ansible
Add the following to your ~/.ssh/config
```
Host melody
HostName 127.0.0.1
User vagrant
Port 2222
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
PasswordAuthentication no
IdentityFile "~/.vagrant.d/insecure_private_key"
IdentitiesOnly yes
```Boot vagrant
$ vagrant up
Check to be able to execute `ssh` command.
$ ssh melody
## Do Ansible
Checking
$ ansible-playbook -C server.yml
Do ansible!
$ ansible-playbook server.yml