diff options
author | Ismaël Bouya <ismael.bouya@fretlink.com> | 2018-11-18 13:14:33 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@fretlink.com> | 2018-11-18 13:20:49 +0100 |
commit | 853c14457ef51fbca58f9c4fb5c1a255e68d7c87 (patch) | |
tree | 28d3760ae94b3c13942d71ac75bf65b985f1dd3c /roles/shell/bash/tasks | |
parent | 1a48017dde54325c5619f45f925478e7c3143ba8 (diff) | |
download | Ansible-853c14457ef51fbca58f9c4fb5c1a255e68d7c87.tar.gz Ansible-853c14457ef51fbca58f9c4fb5c1a255e68d7c87.tar.zst Ansible-853c14457ef51fbca58f9c4fb5c1a255e68d7c87.zip |
Make bash xdg-compliant
Diffstat (limited to 'roles/shell/bash/tasks')
-rw-r--r-- | roles/shell/bash/tasks/main.yml | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/roles/shell/bash/tasks/main.yml b/roles/shell/bash/tasks/main.yml index d74421a..6bf3859 100644 --- a/roles/shell/bash/tasks/main.yml +++ b/roles/shell/bash/tasks/main.yml | |||
@@ -1,12 +1,20 @@ | |||
1 | --- | 1 | --- |
2 | - name: Create config dir | ||
3 | file: | ||
4 | path: $XDG_CONFIG_HOME/bash | ||
5 | state: directory | ||
2 | - name: Add bashrc config | 6 | - name: Add bashrc config |
3 | template: | 7 | template: |
4 | src: bashrc.j2 | 8 | src: bashrc.j2 |
5 | dest: $HOME/.bashrc | 9 | dest: $XDG_CONFIG_HOME/bash/bashrc |
6 | - name: Add bash_profile config | 10 | - name: Add bash_profile config |
7 | template: | 11 | template: |
8 | src: bash_profile.j2 | 12 | src: bash_profile.j2 |
9 | dest: $HOME/.bash_profile | 13 | dest: $XDG_CONFIG_HOME/bash/bash_profile |
14 | - name: Add inputrc config | ||
15 | copy: | ||
16 | src: inputrc | ||
17 | dest: $XDG_CONFIG_HOME/inputrc | ||
10 | - name: Create bash state dir | 18 | - name: Create bash state dir |
11 | file: | 19 | file: |
12 | path: $XDG_STATE_HOME/bash | 20 | path: $XDG_STATE_HOME/bash |