Перенес+поправил ansible-base

This commit is contained in:
Lulzette 2021-08-19 22:27:27 +03:00
parent 2634b0cf81
commit 00dc20fe3c
17 changed files with 54 additions and 27 deletions

View File

@ -1,14 +0,0 @@
---
- 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

View File

@ -1,13 +0,0 @@
---
- name: Install mc
apt:
name: mc
state: present
- name: Install htop
apt:
name: htop
state: present
- name: Install vim
apt:
name: vim
state: present

View File

@ -0,0 +1,11 @@
startup_message off
# Disable visual bell
vbell off
# Set scrollback buffer to 10000
defscrollback 10000
hardstatus alwayslastline
hardstatus string '%{= kG}[ %{G}%H %{g} - %S ][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %d.%m %{W}%c %{g}]'

View 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

View File

@ -0,0 +1,11 @@
---
- name: Install packages
apt:
name: "{{ item }}"
state: present
with_items:
- mc
- htop
- vim
- screen
when: ansible_facts['os_family'] == "Debian"