summaryrefslogtreecommitdiff
path: root/roles/bashrc/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/bashrc/tasks/main.yml')
-rw-r--r--roles/bashrc/tasks/main.yml30
1 files changed, 30 insertions, 0 deletions
diff --git a/roles/bashrc/tasks/main.yml b/roles/bashrc/tasks/main.yml
new file mode 100644
index 0000000..17615bd
--- /dev/null
+++ b/roles/bashrc/tasks/main.yml
@@ -0,0 +1,30 @@
+- name: Copy bash_profile to home directory
+ ansible.builtin.copy:
+ src: misc/dotfiles/bash_profile
+ dest: '{{ bashrc_homedir }}/.bash_profile'
+ owner: '{{ bashrc_user }}'
+ group: '{{ bashrc_group }}'
+ mode: u+rw,g+r,o+r
+ tags:
+ - dotfiles
+
+- name: Template bashrc to home directory
+ ansible.builtin.template:
+ src: misc/dotfiles/bashrc.j2
+ dest: '{{ bashrc_homedir }}/.bashrc'
+ owner: '{{ bashrc_user }}'
+ group: '{{ bashrc_group }}'
+ mode: u+rw,g+r,o+r
+ tags:
+ - dotfiles
+
+- name: Disable session save/restore mechanism
+ ansible.builtin.file:
+ path: '{{ bashrc_homedir }}/.bash_sessions_disable'
+ state: touch
+ owner: '{{ bashrc_user }}'
+ group: '{{ bashrc_group }}'
+ mode: u+rw,g+r,o+r
+ when: ansible_os_family == "Darwin"
+ tags:
+ - dotfiles