---
- name: Install tmux
  become: true
  package:
    name: tmux
    state: installed
  when: only_config is not defined

- name: Symlink config and theme
  become: true
  file:
    src: "{{ role_path }}/files/{{ item }}"
    dest: "/etc/{{ item }}"
    state: link
  with_items:
    - tmux.conf
    - tmux_theme.conf

---
- name: Install tmux
  become: true
  package:
    name: tmux
    state: installed
  when: only_config is not defined

- name: Symlink config and theme
  become: true
  file:
    src: "{{ role_path }}/files/{{ item }}"
    dest: "~/.{{ item }}"
    state: link
  with_items:
    - tmux.conf
    - tmux_theme.conf

Configure tmux for current user, not system
Configure tmux for current user, not system
