34 lines
997 B
YAML
34 lines
997 B
YAML
---
|
|
- name: "get user home directory"
|
|
ansible.builtin.getent:
|
|
database: "passwd"
|
|
key: "{{ system_base_user_become_user }}"
|
|
|
|
- block:
|
|
|
|
- name: "clone tmux dotfiles"
|
|
ansible.builtin.git:
|
|
repo: "https://git.thenineworlds.net/config/tmux.git"
|
|
dest: "{{ system_base_user_become_user_home_directory }}/.tmux"
|
|
recursive: true
|
|
ignore_errors: true
|
|
|
|
# On first tmux launch install plugins with <Ctrl + a + I>
|
|
- name: "configure tmux"
|
|
ansible.builtin.copy:
|
|
src: "./tmux.conf"
|
|
dest: "{{ system_base_user_become_user_home_directory }}/.tmux.conf"
|
|
mode: 0644
|
|
|
|
- name: "configure bashrc"
|
|
ansible.builtin.copy:
|
|
src: "./bashrc"
|
|
dest: "{{ system_base_user_become_user_home_directory }}/.bashrc"
|
|
mode: 0644
|
|
|
|
become: true
|
|
become_user: "{{ system_base_user_become_user }}"
|
|
vars:
|
|
system_base_user_become_user_home_directory: "\
|
|
{{ getent_passwd[system_base_user_become_user].4 }}"
|