Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pedrocarmona/ansible-playbooks

sample install and first deploy with ansible
https://github.com/pedrocarmona/ansible-playbooks

Last synced: 4 days ago
JSON representation

sample install and first deploy with ansible

Awesome Lists containing this project

README

        

# My Ansible

# Create ansible virtualenv

In command line:

```bash
brew install python

easy_install pip

pip install virtualenv

pip install virtualenvwrapper
```

Edit ~/.zshrc and add virtualenvwrapper to plugins:

```
plugins=(git rails ruby nmap tmux tmuxinator vagrant xcode zsh-completions virtualenvwrapper)
```

Restart command line, and after that:

```
mkdir -p ~/Developer/ansible

cd ~/Developer/ansible

mkvirtualenv ansible -a $(pwd)
```

Now everytime you run this command you automatically shift path to ~/Developer/ansible
```
workon ansible
```

And

```
which python
```

will point to /Users/youruser/.virtualenvs/ansible/bin/python

```
pip install ansible
```

#Run instructions

to run these playbook, simply do:

```
ansible-playbook -i inventory install.yml
```