summaryrefslogtreecommitdiff
path: root/roles/dotfiles/tasks
diff options
context:
space:
mode:
authorDmitry Ilvokhin <d@ilvokhin.com>2025-08-02 22:17:17 +0100
committerDmitry Ilvokhin <d@ilvokhin.com>2025-08-03 11:42:27 +0100
commit31b37f737937b623fefdb8f610af41d16bdf9086 (patch)
tree6c43ba971218d7e12ab4a21401519e0c6764807a /roles/dotfiles/tasks
parent6064ca7144163336a893f14c766b827a306e236d (diff)
downloadinfra-31b37f737937b623fefdb8f610af41d16bdf9086.tar.gz
infra-31b37f737937b623fefdb8f610af41d16bdf9086.tar.bz2
infra-31b37f737937b623fefdb8f610af41d16bdf9086.zip
Move bash configuration to bashrc role
Diffstat (limited to 'roles/dotfiles/tasks')
-rw-r--r--roles/dotfiles/tasks/main.yml16
1 files changed, 6 insertions, 10 deletions
diff --git a/roles/dotfiles/tasks/main.yml b/roles/dotfiles/tasks/main.yml
index b5197df..ca6deeb 100644
--- a/roles/dotfiles/tasks/main.yml
+++ b/roles/dotfiles/tasks/main.yml
@@ -13,16 +13,12 @@
failed_when: false
register: has_bash
- - name: Copy bash_profile to home directory
- ansible.builtin.copy:
- src: misc/dotfiles/bash_profile
- dest: '{{ homedir }}/.bash_profile'
- when: has_bash.rc == 0
-
- - name: Template bashrc to home directory
- ansible.builtin.template:
- src: misc/dotfiles/bashrc.j2
- dest: '{{ homedir }}/.bashrc'
+ - ansible.builtin.include_role:
+ name: bashrc
+ vars:
+ bashrc_user: '{{ user }}'
+ bashrc_group: '{{ group }}'
+ bashrc_homedir: '{{ homedir }}'
when: has_bash.rc == 0
- name: Configure vim if installed