Move tmux configuration file path
This commit is contained in:
parent
0113a9c143
commit
ad47adabd0
1 changed files with 15 additions and 4 deletions
|
|
@ -15,10 +15,21 @@
|
||||||
update: yes
|
update: yes
|
||||||
when: dotfile_ssh_clone.failed
|
when: dotfile_ssh_clone.failed
|
||||||
|
|
||||||
- name: create git configuration directory
|
- name: Create xdg configuration directories
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: '{{ xdg_config_dir }}/git'
|
path: '{{ item }}'
|
||||||
state: directory
|
state: directory
|
||||||
|
mode: '644'
|
||||||
|
loop:
|
||||||
|
- '{{ xdg_config_dir }}/git'
|
||||||
|
- '{{ xdg_config_dir }}/tmux'
|
||||||
|
|
||||||
|
- name: Remove previous dotfiles
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: '{{ item }}'
|
||||||
|
state: absent
|
||||||
|
loop:
|
||||||
|
- '{{ ansible_env.HOME }}/.tmux.conf'
|
||||||
|
|
||||||
- name: setup dotfiles
|
- name: setup dotfiles
|
||||||
file:
|
file:
|
||||||
|
|
@ -41,7 +52,7 @@
|
||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
src: '{{ ansible_env.HOME }}/dotfiles/.tmux.conf',
|
src: '{{ ansible_env.HOME }}/dotfiles/.tmux.conf',
|
||||||
dest: '{{ ansible_env.HOME }}/.tmux.conf',
|
dest: '{{ xdg_config_dir }}/tmux/tmux.conf',
|
||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
src: '{{ ansible_env.HOME }}/dotfiles/.gitignore',
|
src: '{{ ansible_env.HOME }}/dotfiles/.gitignore',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue