2021-08-19 22:27:27 +03:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Put htop config
|
|
|
|
template:
|
|
|
|
src: files/htoprc
|
|
|
|
dest: /etc/htoprc
|
|
|
|
- name: Put mc config
|
|
|
|
template:
|
|
|
|
src: files/mcrc
|
|
|
|
dest: /etc/mc/mc.ini
|
|
|
|
- name: Put vim config
|
|
|
|
template:
|
|
|
|
src: files/vimrc
|
|
|
|
dest: /etc/vimrc
|
|
|
|
- name: Put screen config
|
|
|
|
template:
|
|
|
|
src: files/screenrc
|
|
|
|
dest: /etc/screenrc
|
|
|
|
|
|
|
|
- name: Check for OMB
|
|
|
|
stat:
|
|
|
|
path: "{{ ansible_user_dir }}/.oh-my-bash"
|
|
|
|
register: omb_flag
|
|
|
|
|
|
|
|
- debug:
|
2021-09-27 00:43:55 +03:00
|
|
|
msg: 'OMB is not installed, run: bash -c "$(curl -fsSL https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh)"'
|
2021-08-19 22:27:27 +03:00
|
|
|
when: not omb_flag.stat.exists
|
|
|
|
|
2021-09-27 01:27:18 +03:00
|
|
|
- name: Put simple bashrc config
|
|
|
|
template:
|
|
|
|
src: files/bashrc
|
|
|
|
dest: "{{ ansible_user_dir }}/.bashrc"
|
|
|
|
when: not omb_flag.stat.exists
|
|
|
|
|
2021-12-06 23:33:53 +03:00
|
|
|
# - name: Put omb config
|
|
|
|
#template:
|
|
|
|
# src: files/omb-bashrc
|
|
|
|
# dest: "{{ ansible_user_dir }}/.bashrc"
|
|
|
|
#when: omb_flag.stat.exists
|
2021-09-27 01:27:18 +03:00
|
|
|
|
2021-08-19 22:27:27 +03:00
|
|
|
# FIXME: logout from shell
|
2021-09-27 00:43:55 +03:00
|
|
|
# - name: Install OMB
|
|
|
|
# shell: bash -c "$(curl -fsSL https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh)"
|
|
|
|
# when: not omb_flag.stat.exists
|