42 lines
828 B
YAML
42 lines
828 B
YAML
|
# 2023-09-25
|
||
|
# Tasks: aliases
|
||
|
---
|
||
|
|
||
|
- ansible.builtin.include_vars: aliases.yml
|
||
|
|
||
|
- name: Process bash aliases template
|
||
|
ansible.builtin.template:
|
||
|
backup: true
|
||
|
src: "{{ bash_aliases_template }}"
|
||
|
dest: "{{ bash_aliases_distribution }}"
|
||
|
owner: root
|
||
|
group: root
|
||
|
mode: u=rw,g=r,o=r
|
||
|
when:
|
||
|
- ansible_facts['system'] == "Linux"
|
||
|
tags:
|
||
|
- template
|
||
|
- system
|
||
|
- bash
|
||
|
- aliases
|
||
|
- add
|
||
|
|
||
|
- name: Link bash_aliases to bash_bashrc
|
||
|
ansible.builtin.blockinfile:
|
||
|
backup: true
|
||
|
path: "{{ bash_bashrc }}"
|
||
|
block: |
|
||
|
# 2023-09-25
|
||
|
# Load: bash_aliases
|
||
|
if [ -f {{ bash_aliases_distribution }} ]; then
|
||
|
. {{ bash_aliases_distribution }}
|
||
|
fi
|
||
|
when:
|
||
|
- ansible_facts['system'] == "Linux"
|
||
|
tags:
|
||
|
- template
|
||
|
- system
|
||
|
- bash
|
||
|
- aliases
|
||
|
- link
|