feat(role): add tmuxinator

Install tmuxinator via gem and create its configuration directory and
files.
This commit is contained in:
Oliver Davies 2022-05-31 01:22:36 +01:00
parent d81b89d16d
commit 9db923856c
2 changed files with 22 additions and 0 deletions

View file

@ -23,5 +23,6 @@ default_roles:
- tldr
- tree
- tmux
- tmuxinator
- zsh
- zsh-antigen

View 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 }}"