This commit is contained in:
@@ -9,51 +9,52 @@
|
||||
set_fact:
|
||||
#user_home: "{{ getent_passwd[current_user] }}"
|
||||
user_home: "{{ '/root' if current_user == 'root' else '/home/' ~ current_user }}"
|
||||
tags: [always]
|
||||
#tags: [always]
|
||||
|
||||
- name: "[{{ current_user }}] Меняем дефолтный shell на /bin/zsh"
|
||||
user:
|
||||
name: "{{ current_user }}"
|
||||
shell: /bin/zsh
|
||||
tags: [deploy]
|
||||
#tags: [deploy]
|
||||
|
||||
# ==========================================
|
||||
# БЛОК 1: ПЕРВИЧНАЯ РАСКАТКА (БЫСТРЫЙ CLONE)
|
||||
# ==========================================
|
||||
- name: "Первичный деплой репозиториев"
|
||||
block:
|
||||
- name: "[{{ current_user }}] Клонируем Oh My Zsh"
|
||||
git:
|
||||
repo: 'https://github.com/ohmyzsh/ohmyzsh.git'
|
||||
dest: "{{ user_home }}/.oh-my-zsh"
|
||||
depth: 1
|
||||
update: no
|
||||
#become_user: "{{ current_user }}"
|
||||
#tags: [deploy]
|
||||
|
||||
- name: "[{{ current_user }}] Клонируем Oh My Zsh"
|
||||
git:
|
||||
repo: 'https://github.com/ohmyzsh/ohmyzsh.git'
|
||||
dest: "{{ user_home }}/.oh-my-zsh"
|
||||
depth: 1
|
||||
update: no
|
||||
become_user: "{{ current_user }}"
|
||||
tags: [deploy]
|
||||
- name: "[{{ current_user }}] Клонируем плагин zsh-syntax-highlighting"
|
||||
git:
|
||||
repo: 'https://github.com/zsh-users/zsh-syntax-highlighting.git'
|
||||
dest: "{{ user_home }}/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting"
|
||||
depth: 1
|
||||
update: no
|
||||
#become_user: "{{ current_user }}"
|
||||
#tags: [deploy]
|
||||
|
||||
- name: "[{{ current_user }}] Клонируем плагин zsh-syntax-highlighting"
|
||||
git:
|
||||
repo: 'https://github.com/zsh-users/zsh-syntax-highlighting.git'
|
||||
dest: "{{ user_home }}/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting"
|
||||
depth: 1
|
||||
update: no
|
||||
become_user: "{{ current_user }}"
|
||||
tags: [deploy]
|
||||
- name: "[{{ current_user }}] Клонируем плагин zsh-autosuggestions"
|
||||
git:
|
||||
repo: 'https://github.com/zsh-users/zsh-autosuggestions.git'
|
||||
dest: "{{ user_home }}/.oh-my-zsh/custom/plugins/zsh-autosuggestions"
|
||||
depth: 1
|
||||
update: no
|
||||
#become_user: "{{ current_user }}"
|
||||
#tags: [deploy]
|
||||
|
||||
- name: "[{{ current_user }}] Клонируем плагин zsh-autosuggestions"
|
||||
git:
|
||||
repo: 'https://github.com/zsh-users/zsh-autosuggestions.git'
|
||||
dest: "{{ user_home }}/.oh-my-zsh/custom/plugins/zsh-autosuggestions"
|
||||
depth: 1
|
||||
update: no
|
||||
become_user: "{{ current_user }}"
|
||||
tags: [deploy]
|
||||
|
||||
- name: "[{{ current_user }}] Клонируем тему Powerlevel10k"
|
||||
git:
|
||||
repo: 'https://github.com/romkatv/powerlevel10k.git'
|
||||
dest: "{{ user_home }}/.oh-my-zsh/custom/themes/powerlevel10k"
|
||||
depth: 1
|
||||
update: no
|
||||
- name: "[{{ current_user }}] Клонируем тему Powerlevel10k"
|
||||
git:
|
||||
repo: 'https://github.com/romkatv/powerlevel10k.git'
|
||||
dest: "{{ user_home }}/.oh-my-zsh/custom/themes/powerlevel10k"
|
||||
depth: 1
|
||||
update: no
|
||||
become_user: "{{ current_user }}"
|
||||
tags: [deploy]
|
||||
|
||||
@@ -114,7 +115,7 @@
|
||||
group: "{{ current_user }}"
|
||||
mode: '0644'
|
||||
tags: [deploy, update]
|
||||
|
||||
|
||||
- name: "[{{ current_user }}] Предзагрузка бинарника gitstatusd (убирает тормоза при первом входе)"
|
||||
command: "{{ user_home }}/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus/install"
|
||||
args:
|
||||
|
||||
Reference in New Issue
Block a user