--- - name: Check Bash-It Installation stat: path: ~/.bash_it register: install - name: Clone Bash-it git: repo: https://github.com/Bash-it/bash-it.git dest: ~/.bash_it depth: 1 update: no notify: - Install Bash-it - reload source when: not install.stat.exists - name: Update Bash-it shell: bash-it update when: install.stat.exists - name: setup-bashit-theme lineinfile: path: .bashrc regexp: "(export BASH_IT_THEME=)[('a-z')]+" line: "export BASH_IT_THEME='candy'" - name: enable bashit plugins shell: bashit enable plugins {{ .items }} with_items: - history - git - alias-completion - autojump - base - tmux - name: enable bashit aliases shell: bashit enable aliases {{ .items }} with_items: - general - git - gitsvn - tmux