Git Product home page Git Product logo

ansible-shell-aliases's Introduction

shell-aliases

This role enables to install shell aliases globally on a system.

Requirements

No requirements.

Role Variables

Name Type Location Description
shell_aliases_shell_files string[] defaults/main.yml The location of shell files in which to write aliases. Defaults to /etc/profile.d/custom-aliases.sh and /etc/profile.d/custom-aliases.csh.
shell_aliases aliases[] defaults/main.yml The aliases to create on the target system. See below for defaults.
shell_aliases_extras aliases[] defaults/main.yml An extra aliases object to keep the defaults and add your custom aliases. Defaults to [].

The shell_aliases and shell_aliases_extras are list of aliases objects, which are a dictionary composed of a name attribute for the alias name and the command attribute for the command to execute.

By default, the following aliases are defined in shell_aliases:

- name: c
  command: "clear"
- name: untar
  command: "tar -xvf"
- name: untarz
  command: "tar -zxvf"
- name: ping
  command: "ping -c 5"
- name: ll
  command: "ls -al"
- name: hrep
  command: "history | grep"

Dependencies

No dependencies.

Example Playbook

Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:

- hosts: servers
  roles:
    - { role: julb.shell_aliases }

License

MIT

Author Information

More to find on my Github.

Contributing

This project is totally open source and contributors are welcome.

When you submit a PR, please ensure that the syntax has been checked.

ansible-shell-aliases's People

Contributors

github-actions[bot] avatar julb avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.