You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
720 B
YAML
21 lines
720 B
YAML
2 years ago
|
- name: General aliases
|
||
|
blockinfile:
|
||
|
path: "{{ ansible_facts.env.HOME }}/.bashrc"
|
||
|
marker: "# {mark} ANSIBLE MANAGED BLOCK | General aliases"
|
||
|
block: |
|
||
|
alias clr="clear"
|
||
|
alias hgrep="history | grep"
|
||
|
alias syslog="tail -f --lines=100 /var/log/syslog"
|
||
|
alias cp="rsync -hlAXEptgoDS --numeric-ids --info=progress2"
|
||
|
|
||
|
- name: ls aliases and colors
|
||
|
blockinfile:
|
||
|
path: "{{ ansible_facts.env.HOME }}/.bashrc"
|
||
|
marker: "# {mark} ANSIBLE MANAGED BLOCK | ls aliases and colors"
|
||
|
block: |
|
||
|
export LS_OPTIONS='--color=auto'
|
||
|
eval "`dircolors`"
|
||
|
alias ls='ls $LS_OPTIONS'
|
||
|
alias ll='ls $LS_OPTIONS -l'
|
||
|
alias l='ls $LS_OPTIONS -la'
|