--- - name: Install tmux (Archlinux) become: true pacman: name: - tmux when: ansible_facts['distribution'] == 'Archlinux' - name: Install tmux (Debian) become: true apt: name: - tmux when: ansible_facts['distribution'] == 'Debian' - name: Copy tmux config copy: src: tmux.conf dest: ~/.tmux.conf mode: 0644 - name: Create tmux directory file: path: ~/.tmux state: directory mode: 0755