IronicBadger.bash_aliases
Ansible Role: Bash Aliases
This is an Ansible role for setting up Bash aliases. It allows you to use variables in aliases, such as git log "$(pwd)"
.
How to Use the Role
Installation
You can install it with this command:
ansible-galaxy install ferrarimarco.bash-aliases
Example Playbook
Here’s a simple playbook example:
- hosts: all
roles:
- { role: ferrarimarco.bash-aliases, become: yes }
bashalias_aliases:
- { alias: "ll", command: "ls -hl" }
- { alias: "la", command: "ls -hal" }
- { alias: "git-log", command: 'git log "$(pwd)"' }
Testing the Role
Requirements
You need the following tools:
- Bundler, version 1.13.0 or higher
- Ruby, version 2.3.0 or higher
- Docker, version 1.13.0 or higher
Setup
- Install Bundler with:
gem install bundler
- Install the necessary gems from the project root:
bundle install
- Run tests using:
kitchen test
Installa
ansible-galaxy install IronicBadger.bash_aliases
Licenza
Unknown
Download
13.4k
Proprietario
Father. Podcaster @selfhostedshow podcast. Tailscalar.