59 lines
1.1 KiB
YAML
59 lines
1.1 KiB
YAML
# 2023-12-05
|
|
# 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
|
|
|
|
- name: Process zsh aliases template
|
|
ansible.builtin.template:
|
|
backup: true
|
|
src: "{{ zsh_aliases_template }}"
|
|
dest: "{{ zsh_aliases_distribution }}"
|
|
owner: root
|
|
group: root
|
|
mode: u=rw,g=r,o=r
|
|
when:
|
|
- ansible_facts['system'] == "Linux"
|
|
tags:
|
|
- template
|
|
- system
|
|
- bash
|
|
- aliases
|
|
- add
|