redbeard28.bashaliases

ANSIBLE ROLE BASH ALIASES

==========================

This Ansible role adds Bash aliases to the Bash file you choose.

How to Use This Role?

This role must be included in a playbook.

To install this Galaxy role, use the following command:

ansible-galaxy install -r requirements.yml 

In your requirements.yml file, include:

# from GitHub, overriding the name and specifying a specific tag
- src: redbeard28.bashaliases

For more details, check the Ansible Documentation.

Requirements

  • Ansible version 2.9 or higher

Role Variables


---
activate_shell_aliases_extra: false
aliases_shell: "bash"
shell_rc_file: "~/.{{ aliases_shell }}rc"
shell_aliases_file: "~/.{{ aliases_shell }}_aliases"

shell_aliases:
  - {alias: "ll", command: "ls -rthl --color=auto"}
  - {alias: "dir", command: "dir --color=auto"}
  - {alias: "grep", command: "grep --color=auto"}

shell_aliases_extra:
  - \#function inspec { docker run -it --rm -v $(pwd):/share -v $(echo $HOME):/home/ chef/inspec "$@"; }
  - export cookiecutterURL=https://github.com/redbeard28/ansible-role-template.git

Dependencies


If Python 3 is not installed on the remote host:

  • src: redbeard28.bootstrap

Example Playbook


Here is an example of how to use this role, with variables as parameters:

- hosts: all
  roles:
     - { role: redbeard28.bashaliases, tags: mytags }

Molecule Testing Framework


You can use Molecule to test this role with the following commands:

image=debian tag="buster" molecule converge 
image=debian tag="buster" molecule verify 

Author Information


Jeremie CUADRADO ¹ from Redbeard Consulting.

Informazioni sul progetto

Ansible role add Bash aliases in bash file you want.

Installa
ansible-galaxy install redbeard28.bashaliases
Licenza
Unknown
Download
296
Proprietario