setup-cockpit/roles/bash/tasks/main.yml

25 lines
649 B
YAML

---
- 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
command: git clone https://github.com/magicmonty/bash-git-prompt.git ~/.bash-git-prompt