Перенес+поправил ansible-base
This commit is contained in:
parent
2634b0cf81
commit
00dc20fe3c
@ -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
|
@ -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
|
11
ansible/ansible-base/roles/configs/files/screenrc
Normal file
11
ansible/ansible-base/roles/configs/files/screenrc
Normal 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}]'
|
||||
|
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
|
11
ansible/ansible-base/roles/packages/tasks/main.yml
Normal file
11
ansible/ansible-base/roles/packages/tasks/main.yml
Normal 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"
|
Loading…
Reference in New Issue
Block a user