ansible/roles/common/tasks/aliases.yml

59 lines
1.1 KiB
YAML
Raw Permalink Normal View History

2023-12-05 17:12:35 +00:00
# 2023-12-05
2023-09-25 08:40:20 +00:00
# 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
2023-12-05 17:12:35 +00:00
- 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