Dotfiles: Add htoprc (if not already present)
This commit is contained in:
parent
72c24f5948
commit
13d9881d92
2 changed files with 66 additions and 7 deletions
|
@ -81,19 +81,39 @@
|
|||
src: "{{ role_path }}/files/_oh-my-zsh/jtbx.zsh-theme",
|
||||
dest: "{{ ansible_user_dir }}/.oh-my-zsh/custom/themes/jtbx.zsh-theme",
|
||||
}
|
||||
- name: usersettings - Set zshrc
|
||||
- name: usersettings - Create some directories
|
||||
ansible.builtin.file:
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
with_items:
|
||||
- "{{ ansible_user_dir }}/.config/htop/"
|
||||
- name: usersettings - Set templated dotfiles
|
||||
ansible.builtin.template:
|
||||
src: "{{ role_path }}/templates/_zshrc.j2"
|
||||
dest: "{{ ansible_user_dir }}/.zshrc"
|
||||
src: "{{ item.src }}"
|
||||
dest: "{{ item.dest }}"
|
||||
force: "{{ item.force }}"
|
||||
ignore_errors: true
|
||||
with_items:
|
||||
- {
|
||||
src: "{{ role_path }}/templates/_zshrc.j2",
|
||||
dest: "{{ ansible_user_dir }}/.zshrc",
|
||||
force: yes,
|
||||
}
|
||||
- {
|
||||
src: "{{ role_path }}/templates/_tmux.conf.j2",
|
||||
dest: "{{ ansible_user_dir }}/.tmux.conf",
|
||||
force: yes,
|
||||
}
|
||||
- {
|
||||
src: "{{ role_path }}/templates/htoprc.j2",
|
||||
dest: "{{ ansible_user_dir }}/.config/htop/htoprc",
|
||||
force: no,
|
||||
}
|
||||
- name: usersettings - Set global gitconfig
|
||||
when: usersetup_gitconfig == true
|
||||
ansible.builtin.template:
|
||||
src: "{{ role_path }}/templates/_gitconfig.j2"
|
||||
dest: "{{ ansible_user_dir }}/.gitconfig"
|
||||
- name: usersettings - Set tmux.conf
|
||||
ansible.builtin.template:
|
||||
src: "{{ role_path }}/templates/_tmux.conf.j2"
|
||||
dest: "{{ ansible_user_dir }}/.tmux.conf"
|
||||
|
||||
- name: usersettings - Create .vim directory
|
||||
ansible.builtin.file:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue