---

- name: Register tmux version
  shell: >
    set -o pipefail
    tmux -V | awk '{ print $NF }'
  args:
    executable: /bin/bash
  register: tmux_version
  changed_when: False
  check_mode: no

- name: Git clone TPM
  git:
    repo: "https://github.com/tmux-plugins/tpm"
    dest: "~/.tmux/plugins/tpm"
    version: '26d9ace1b47f4591b2afdf333442a498311b6ace'
    recursive: yes
    update: yes
  ignore_errors: True

- name: Create tmux.conf
  template:
    src: templates/tmux.conf.jinja2
    dest: ~/.tmux.conf
    mode: 0600
    backup: yes

- name: Make ~/.tmuxinator
  file:
    path: ~/.tmuxinator
    state: directory
    mode: 0700

---

- name: Register tmux version
  shell: |
    set -o pipefail
    tmux -V | awk '{ print $NF }'
  args:
    executable: /bin/bash
  register: tmux_version
  changed_when: False
  check_mode: no

- name: Git clone TPM
  git:
    repo: "https://github.com/tmux-plugins/tpm"
    dest: "~/.tmux/plugins/tpm"
    version: '26d9ace1b47f4591b2afdf333442a498311b6ace'
    recursive: yes
    update: yes
  ignore_errors: True

- name: Create tmux.conf
  template:
    src: templates/tmux.conf.jinja2
    dest: ~/.tmux.conf
    mode: 0600
    backup: yes

- name: Make ~/.tmuxinator
  file:
    path: ~/.tmuxinator
    state: directory
    mode: 0700

Fix for tmux not registering the correct version number.
Fix for tmux not registering the correct version number.
