This commit is contained in:
@@ -9,26 +9,27 @@
|
||||
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]
|
||||
#become_user: "{{ current_user }}"
|
||||
#tags: [deploy]
|
||||
|
||||
- name: "[{{ current_user }}] Клонируем плагин zsh-syntax-highlighting"
|
||||
git:
|
||||
@@ -36,8 +37,8 @@
|
||||
dest: "{{ user_home }}/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting"
|
||||
depth: 1
|
||||
update: no
|
||||
become_user: "{{ current_user }}"
|
||||
tags: [deploy]
|
||||
#become_user: "{{ current_user }}"
|
||||
#tags: [deploy]
|
||||
|
||||
- name: "[{{ current_user }}] Клонируем плагин zsh-autosuggestions"
|
||||
git:
|
||||
@@ -45,8 +46,8 @@
|
||||
dest: "{{ user_home }}/.oh-my-zsh/custom/plugins/zsh-autosuggestions"
|
||||
depth: 1
|
||||
update: no
|
||||
become_user: "{{ current_user }}"
|
||||
tags: [deploy]
|
||||
#become_user: "{{ current_user }}"
|
||||
#tags: [deploy]
|
||||
|
||||
- name: "[{{ current_user }}] Клонируем тему Powerlevel10k"
|
||||
git:
|
||||
|
||||
Reference in New Issue
Block a user