feat(role): add tmuxinator
Install tmuxinator via gem and create its configuration directory and files.
This commit is contained in:
parent
d81b89d16d
commit
9db923856c
|
@ -23,5 +23,6 @@ default_roles:
|
|||
- tldr
|
||||
- tree
|
||||
- tmux
|
||||
- tmuxinator
|
||||
- zsh
|
||||
- zsh-antigen
|
||||
|
|
21
roles/tmuxinator/tasks/main.yml
Normal file
21
roles/tmuxinator/tasks/main.yml
Normal file
|
@ -0,0 +1,21 @@
|
|||
---
|
||||
- name: Install
|
||||
community.general.gem:
|
||||
bindir: "{{ ansible_user_dir }}/.local/bin"
|
||||
name: tmuxinator
|
||||
state: latest
|
||||
|
||||
- name: Configuration
|
||||
ansible.builtin.file:
|
||||
path: "{{ ansible_user_dir }}/.config/tmuxinator"
|
||||
state: directory
|
||||
|
||||
- name: Copy configuration files
|
||||
copy:
|
||||
content: "{{ tmuxinator_config_file.value }}"
|
||||
dest: "{{ ansible_user_dir }}/.config/tmuxinator/{{ tmuxinator_config_file.key }}.yml"
|
||||
mode: 0644
|
||||
loop_control:
|
||||
loop_var: tmuxinator_config_file
|
||||
no_log: true
|
||||
with_items: "{{ tmuxinator_config | default({}) | dict2items }}"
|
Loading…
Reference in a new issue