# ansible-role-bash_aliases
Ansible role for setting aliases in ~/.bash_aliases for Debian/Ubuntu.
First of all you should install Ansible on your machine, official docs should help you with that.
ansible-galaxy install igor_mukhin.bash_aliases
Lets make aliases for most used symfony2 console commands
# playbook.yml
vars:
# See all available variables at defaults/main.yml
bash_aliases:
- { alias: 'sf', command: 'php app/console' }
- { alias: 'sfcc', command: 'sf cache:clear' }
- { alias: 'sfccnw', command: 'sfcc --no-warmup' }
- { alias: 'sfl', command: 'sf list' }
- { alias: 'sflg', command: 'sf list | grep' }
# You also can add extra lines in any format to .bash_aliases
bash_aliases_extra:
- "git config --global alias.unstage 'reset HEAD --'"
roles:
- { role: igor_mukhin.bash_aliases, sudo: false }