#!/usr/bin/env ansible-playbook
---
- hosts: localhost
vars:
github:
remote: "https://github.com/guhcampos"
local: "{{ ansible_env.HOME }}/workspace/github"
guhcampos:
roles: "{{ github.local }}/guhcampos/ansible/roles"
prefix: "{{ ansible_env.HOME }}/.local"
prefix_bin: "{{ prefix }}/bin"
python2:
src: "/usr/bin/virtualenv"
dest: "{{ ansible_env.HOME }}/.local/python/2/"
python3:
src: "/usr/bin/pyvenv"
dest: "{{ ansible_env.HOME }}/.local/python/3/"
tasks:
- git: repo={{ github.remote }}/guhcampos.git dest={{ github.local }}/guhcampos version=HEAD
roles:
# guhcampos roles os independent
- { role: "{{ guhcampos.roles }}/bash", tags: bash }