From 31b37f737937b623fefdb8f610af41d16bdf9086 Mon Sep 17 00:00:00 2001 From: Dmitry Ilvokhin Date: Sat, 2 Aug 2025 22:17:17 +0100 Subject: Move bash configuration to bashrc role --- roles/dotfiles/tasks/main.yml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'roles/dotfiles/tasks/main.yml') 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 -- cgit v1.2.3-70-g09d2