Перенес+поправил ansible-base
This commit is contained in:
32
ansible/ansible-base/roles/configs/tasks/main.yml
Normal file
32
ansible/ansible-base/roles/configs/tasks/main.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
---
|
||||
|
||||
- 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:
|
||||
msg: "OMB is not installed"
|
||||
when: not omb_flag.stat.exists
|
||||
|
||||
# FIXME: logout from shell
|
||||
- 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
|
||||
Reference in New Issue
Block a user