homeserver/Archiv/igor_mukhin.bash_aliases
2020-08-18 11:57:53 +02:00
..
defaults first commit 2020-08-18 11:57:53 +02:00
meta first commit 2020-08-18 11:57:53 +02:00
tasks first commit 2020-08-18 11:57:53 +02:00
tests first commit 2020-08-18 11:57:53 +02:00
.editorconfig first commit 2020-08-18 11:57:53 +02:00
LICENSE first commit 2020-08-18 11:57:53 +02:00
README.md first commit 2020-08-18 11:57:53 +02:00

# ansible-role-bash_aliases

Ansible role for setting aliases in ~/.bash_aliases for Debian/Ubuntu.

Prerequisites

First of all you should install Ansible on your machine, official docs should help you with that.

Installation

ansible-galaxy install igor_mukhin.bash_aliases

Example playbook

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 }