--- - name: Install bash-completion (Archlinux) become: true pacman: name: - bash-completion when: ansible_distribution == 'Archlinux' - name: Install bash-completion (Debian) become: true apt: name: - bash-completion when: ansible_distribution == 'Debian' - name: Copy files copy: src={{ item.src }} dest={{ item.dest }} backup=true with_items: - { src: 'inputrc', dest: '~/.inputrc' } - { src: 'bash_profile', dest: '~/.bash_profile' } - { src: 'bashrc', dest: '~/.bashrc' } - name: Clone bash-git-prompt git: repo: https://github.com/magicmonty/bash-git-prompt.git dest: ~/.bash-git-prompt clone: yes