Compare commits

..

16 Commits

Author SHA1 Message Date
Gitea 88ec0f3fb0 1 2025-10-23 23:26:32 +03:00
zaika 15a74f0346 change playbook 2020-05-31 23:10:39 +03:00
zaika f07d5f2d32 change playbook 2020-05-31 01:46:11 +03:00
zaika 7a1edf655c change playbook 2020-05-30 23:57:37 +03:00
zaika d265a9ef16 change playbook 2020-05-30 18:52:25 +03:00
zaika 579b8e9ac4 add ln -s for .screenrc 2020-05-30 18:44:21 +03:00
Denis Zaika 7d20636d6e less -X 2020-05-02 23:40:16 +03:00
Denis Zaika f1df413f1b less -X 2020-05-02 23:33:35 +03:00
Denis Zaika c1831969f9 update 2020-05-02 22:55:27 +03:00
zaika 28538639fc Merge branch 'master' of https://gitlab.dec.net.ua/zaika/skel 2019-10-30 19:36:07 +03:00
zaika 31d6a880c7 add ansible playbook 2019-10-30 19:35:04 +03:00
zaika 0399e6de27 premerge 2019-10-30 09:34:07 +03:00
zaika b77244e425 add ansible playbook 2019-10-30 09:08:38 +03:00
Denis Zaika f0ced03cf6 cbsd autocomplation 2019-10-17 16:08:55 +03:00
zaika d70e2d58bd Merge branch 'smith' into 'master'
add/rm

See merge request zaika/skel!1
2019-10-10 17:17:29 +03:00
zaika 566081be41 rm 2019-10-10 17:08:08 +03:00
6 changed files with 172 additions and 3 deletions

View File

@ -226,5 +226,3 @@ hardstatus alwayslastline '%{= .kC}%H%{= .Kw}[%?%EESC%: %?]%{= .Bw}%?%-Lw%?%{=
#hardstatus alwayslastline "%{bk} %S %{kb} $LOGNAME %{bk} %H %?%{kb}%{kY} %-Lw%{Yk}%:%{Yb}%{Yk}%?%{Yk} %n%f* %t %{kY}%+Lw %-="

View File

@ -1 +0,0 @@
22

View File

@ -28,6 +28,11 @@ git clone https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerl
#POWERLEVEL9K_DIR_ETC_BACKGROUND="steelblue"
#POWERLEVEL9K_VCS_BACKENDS=(git hg)
#POWERLEVEL9K_DIR_PATH_HIGHLIGHT_BOLD="true"
##POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context dir vcs)
##POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status root_indicator background_jobs history)
# Полезно выключит лессу очистку после выхода:
#LESS="$LESS -X"
# Это нужно только на десктопе с терминалами, на серверах шрифты не нужны!
git clone https://github.com/powerline/fonts.git --depth=1 && cd fonts && ./install.sh
@ -44,5 +49,13 @@ ln -s ~/skel/.tmux.conf ~/
# zsh completions for cbsd
mkdir ~/.oh-my-zsh/completions
ln -sf /usr/local/cbsd/share/autocompletion/zsh/_cbsd ~/.oh-my-zsh/completions/_cbsd
autoload -U compinit\n
compinit
# Все облегчается, если использовать playbook ansible и antigen
ansible-galaxy install gantsign.oh-my-zsh
ansible-galaxy install gantsign.antigen
ansible-galaxy install gantsign.antigen_bundles
ansible-playbook --ask-pass -b -K --limit="host1,host2" ./skel.yml
```

75
initial.yml Normal file
View File

@ -0,0 +1,75 @@
- hosts: all
tasks:
- name: apt update
apt: update_cache=true
- name: Install list of packages
become: yes
package:
name: '{{ item }}'
state: present
with_items:
- locales
- vim
- mdadm
- sudo
- ssh
- dpkg-dev
- linux-headers-generic
- linux-image-generic
- console-cyrillic
- tasksel
- man
- nload
- sysstat
- htop
- iotop
- build-essential
- tmux
- mtr-tiny
- screen
- zsh
- mc
- git
- wget
- software-properties-common
- traceroute
- gawk
- aptitude
- fakeroot
- build-essential
- git
- libncurses5
- libncurses5-dev
- libnewt-dev
- libnet-ip-perl
- libproc-daemon-perl
- libproc-pid-file-perl
- libswitch-perl
- libdbd-mysql
- libdbi-perl
- libdbd-mysql-perl
- dkms
- iptables-dev
- pkg-config
- ipset
- iptables-persistent
- ethstats
- ethtool
- libelf-dev
- curl
- whois
- ldap-utils
- snmp
- snmp-mibs-downloader
- tcpdump
- links
- mailutils
- hashalot
- qemu-guest-agent
- dnsutils
- checkinstall
- net-tools
- snmpd
- apt-transport-https
- libuser

1
skel Submodule

@ -0,0 +1 @@
Subproject commit 7d20636d6eb4885808ae4fae699ef34c4b96f07a

83
skel.yml Normal file
View File

@ -0,0 +1,83 @@
- hosts: all
tasks:
- name: apt update
apt: update_cache=true
become: yes
- name: Install list of packages
apt: name=powerline state=present update_cache=true
become: yes
with_items:
- zsh
- git
- mercurial
- tmux
- screen
- hosts: all
roles:
- role: gantsign.antigen
antigen_version: '2.2.3'
antigen_redis_sha256sum: 'bd3f1077050d52f459bc30fa3f025c44c528d625b4924a2f487fd2bacb89d61e'
users:
- username: zaika
antigen_libraries:
- name: oh-my-zsh
env:
DISABLE_AUTO_UPDATE: '"true"' # Optional (this was hard-coded in the .zshrc of the `gantsign.oh-my-zsh` role)
DISABLE_AUTO_TITLE: '"true"'
POWERLEVEL9K_DIR_DEFAULT_BACKGROUND: '"steelblue"'
POWERLEVEL9K_DIR_HOME_BACKGROUND: '"steelblue"'
POWERLEVEL9K_DIR_HOME_SUBFOLDER_BACKGROUND: '"steelblue"'
POWERLEVEL9K_DIR_ETC_BACKGROUND: '"steelblue"'
POWERLEVEL9K_VCS_BACKENDS: '(git hg)'
POWERLEVEL9K_DIR_PATH_HIGHLIGHT_BOLD: '"true"'
POWERLEVEL9K_DISABLE_RPROMPT: '"true"'
#POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context dir vcs)
#POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status root_indicator background_jobs history)
LESS: '"$LESS -X"'
antigen_theme:
# name: robbyrussell # This role has no default theme (unlike the `gantsign.oh-my-zsh` role)
name: romkatv/powerlevel10k
antigen_bundles:
- name: git # This role has no default bundles/plugins (unlike the `gantsign.oh-my-zsh` role)
- name: mercurial
- name: tmux
- name: screen
- name: pip
- name: command-not-found
- name: zsh-users_zsh-syntax-highlighting # Syntax highlighting bundle.
url: zsh-users/zsh-syntax-highlighting
- name: zsh-users_zsh-autosuggestions # Fish-like auto suggestions
url: zsh-users/zsh-autosuggestions
- name: zsh-users_zsh-completions # Extra zsh completions
url: zsh-users/zsh-completions
# # Syntax highlighting bundle.
# - name: zsh-syntax-highlighting # `name` is required (any valid file name will do so long as it's unique for the bundles)
# url: zsh-users/zsh-syntax-highlighting
- hosts: all
tasks:
- name: Clone Powerline zsh theme
git:
repo: https://gitea.doct.org.ua/zaika/skel
dest: /home/zaika/skel
become: no
- hosts: all
tasks:
- name: Create symbolic link for tmux
file:
src: "/home/zaika/skel/.tmux.conf"
dest: "/home/zaika/.tmux.conf"
state: link
become: no
- hosts: all
tasks:
- name: Create symbolic link for screen
file:
src: "/home/zaika/skel/.screenrc"
dest: "/home/zaika/.screenrc"
state: link
become: no