This commit is contained in:
@@ -8,6 +8,19 @@
|
|||||||
- "root"
|
- "root"
|
||||||
- "hogweed1"
|
- "hogweed1"
|
||||||
|
|
||||||
|
# Вставь сюда сгенерированный токен из Gitea
|
||||||
|
gitea_token: "0e2d23940d1862ae1558476f39565cd5bb2bcd88"
|
||||||
|
|
||||||
|
# Базовый адрес твоей организации/юзера в Gitea (БЕЗ http://)
|
||||||
|
gitea_base: "git.guaranteedstruggle.host/hackerspace"
|
||||||
|
|
||||||
|
# Формируем ссылки с токеном. В таком формате Git пролетает авторизацию без вопросов
|
||||||
|
repo_omz: "https://{{ gitea_token }}@{{ gitea_base }}/ohmyzsh_mirror.git"
|
||||||
|
repo_p10k: "https://{{ gitea_token }}@{{ gitea_base }}/powerlevel10k_mirror.git"
|
||||||
|
repo_syntax: "https://{{ gitea_token }}@{{ gitea_base }}/zsh-syntax-highlighting_mirror.git"
|
||||||
|
repo_suggest: "https://{{ gitea_token }}@{{ gitea_base }}/zsh-autosuggestions_mirror.git"
|
||||||
|
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Установка системных пакетов (zsh и git)
|
- name: Установка системных пакетов (zsh и git)
|
||||||
apt:
|
apt:
|
||||||
|
|||||||
@@ -17,6 +17,10 @@
|
|||||||
shell: /bin/zsh
|
shell: /bin/zsh
|
||||||
tags: [deploy]
|
tags: [deploy]
|
||||||
|
|
||||||
|
|
||||||
|
# 0e2d23940d1862ae1558476f39565cd5bb2bcd88
|
||||||
|
# ansible-stuff token gitea
|
||||||
|
|
||||||
# ==========================================
|
# ==========================================
|
||||||
# БЛОК 1: ПЕРВИЧНАЯ РАСКАТКА (БЫСТРЫЙ CLONE)
|
# БЛОК 1: ПЕРВИЧНАЯ РАСКАТКА (БЫСТРЫЙ CLONE)
|
||||||
# ==========================================
|
# ==========================================
|
||||||
@@ -25,7 +29,8 @@
|
|||||||
- name: "[{{ current_user }}] Клонируем Oh My Zsh"
|
- name: "[{{ current_user }}] Клонируем Oh My Zsh"
|
||||||
git:
|
git:
|
||||||
#repo: 'https://github.com/ohmyzsh/ohmyzsh.git'
|
#repo: 'https://github.com/ohmyzsh/ohmyzsh.git'
|
||||||
repo: 'https://git.guaranteedstruggle.host/hackerspace/ohmyzsh_mirror.git'
|
#repo: 'https://git.guaranteedstruggle.host/hackerspace/ohmyzsh_mirror.git'
|
||||||
|
repo: "{{ repo_omz }}"
|
||||||
dest: "{{ user_home }}/.oh-my-zsh"
|
dest: "{{ user_home }}/.oh-my-zsh"
|
||||||
depth: 1
|
depth: 1
|
||||||
update: no
|
update: no
|
||||||
@@ -35,7 +40,8 @@
|
|||||||
- name: "[{{ current_user }}] Клонируем плагин zsh-syntax-highlighting"
|
- name: "[{{ current_user }}] Клонируем плагин zsh-syntax-highlighting"
|
||||||
git:
|
git:
|
||||||
#repo: 'https://github.com/zsh-users/zsh-syntax-highlighting.git'
|
#repo: 'https://github.com/zsh-users/zsh-syntax-highlighting.git'
|
||||||
repo: 'https://git.guaranteedstruggle.host/hackerspace/zsh-syntax-highlighting_mirror.git'
|
#repo: 'https://git.guaranteedstruggle.host/hackerspace/zsh-syntax-highlighting_mirror.git'
|
||||||
|
repo: "{{ repo_syntax }}"
|
||||||
dest: "{{ user_home }}/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting"
|
dest: "{{ user_home }}/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting"
|
||||||
depth: 1
|
depth: 1
|
||||||
update: no
|
update: no
|
||||||
@@ -45,7 +51,8 @@
|
|||||||
- name: "[{{ current_user }}] Клонируем плагин zsh-autosuggestions"
|
- name: "[{{ current_user }}] Клонируем плагин zsh-autosuggestions"
|
||||||
git:
|
git:
|
||||||
#repo: 'https://github.com/zsh-users/zsh-autosuggestions.git'
|
#repo: 'https://github.com/zsh-users/zsh-autosuggestions.git'
|
||||||
repo: 'https://git.guaranteedstruggle.host/hackerspace/zsh-autosuggestions_mirror.git'
|
#repo: 'https://git.guaranteedstruggle.host/hackerspace/zsh-autosuggestions_mirror.git'
|
||||||
|
repo: "{{ repo_suggest }}"
|
||||||
dest: "{{ user_home }}/.oh-my-zsh/custom/plugins/zsh-autosuggestions"
|
dest: "{{ user_home }}/.oh-my-zsh/custom/plugins/zsh-autosuggestions"
|
||||||
depth: 1
|
depth: 1
|
||||||
update: no
|
update: no
|
||||||
@@ -55,7 +62,8 @@
|
|||||||
- name: "[{{ current_user }}] Клонируем тему Powerlevel10k"
|
- name: "[{{ current_user }}] Клонируем тему Powerlevel10k"
|
||||||
git:
|
git:
|
||||||
#repo: 'https://github.com/romkatv/powerlevel10k.git'
|
#repo: 'https://github.com/romkatv/powerlevel10k.git'
|
||||||
repo: 'https://git.guaranteedstruggle.host/hackerspace/powerlevel10k_mirror.git'
|
#repo: 'https://git.guaranteedstruggle.host/hackerspace/powerlevel10k_mirror.git'
|
||||||
|
repo: "{{ repo_p10k }}"
|
||||||
dest: "{{ user_home }}/.oh-my-zsh/custom/themes/powerlevel10k"
|
dest: "{{ user_home }}/.oh-my-zsh/custom/themes/powerlevel10k"
|
||||||
depth: 1
|
depth: 1
|
||||||
update: no
|
update: no
|
||||||
@@ -71,7 +79,8 @@
|
|||||||
- name: "[{{ current_user }}] Обновляем Oh My Zsh до latest"
|
- name: "[{{ current_user }}] Обновляем Oh My Zsh до latest"
|
||||||
git:
|
git:
|
||||||
#repo: 'https://github.com/ohmyzsh/ohmyzsh.git'
|
#repo: 'https://github.com/ohmyzsh/ohmyzsh.git'
|
||||||
repo: 'https://git.guaranteedstruggle.host/hackerspace/ohmyzsh_mirror.git'
|
#repo: 'https://git.guaranteedstruggle.host/hackerspace/ohmyzsh_mirror.git'
|
||||||
|
repo: "{{ repo_omz }}"
|
||||||
dest: "{{ user_home }}/.oh-my-zsh"
|
dest: "{{ user_home }}/.oh-my-zsh"
|
||||||
update: yes
|
update: yes
|
||||||
#become_user: "{{ current_user }}"
|
#become_user: "{{ current_user }}"
|
||||||
@@ -80,7 +89,8 @@
|
|||||||
- name: "[{{ current_user }}] Обновляем плагин zsh-syntax-highlighting до latest"
|
- name: "[{{ current_user }}] Обновляем плагин zsh-syntax-highlighting до latest"
|
||||||
git:
|
git:
|
||||||
#repo: 'https://github.com/zsh-users/zsh-syntax-highlighting.git'
|
#repo: 'https://github.com/zsh-users/zsh-syntax-highlighting.git'
|
||||||
repo: 'https://git.guaranteedstruggle.host/hackerspace/zsh-syntax-highlighting_mirror.git'
|
#repo: 'https://git.guaranteedstruggle.host/hackerspace/zsh-syntax-highlighting_mirror.git'
|
||||||
|
repo: "{{ repo_syntax }}"
|
||||||
dest: "{{ user_home }}/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting"
|
dest: "{{ user_home }}/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting"
|
||||||
update: yes
|
update: yes
|
||||||
#become_user: "{{ current_user }}"
|
#become_user: "{{ current_user }}"
|
||||||
@@ -89,7 +99,8 @@
|
|||||||
- name: "[{{ current_user }}] Обновляем плагин zsh-autosuggestions до latest"
|
- name: "[{{ current_user }}] Обновляем плагин zsh-autosuggestions до latest"
|
||||||
git:
|
git:
|
||||||
#repo: 'https://github.com/zsh-users/zsh-autosuggestions.git'
|
#repo: 'https://github.com/zsh-users/zsh-autosuggestions.git'
|
||||||
repo: 'https://git.guaranteedstruggle.host/hackerspace/zsh-autosuggestions_mirror.git'
|
#repo: 'https://git.guaranteedstruggle.host/hackerspace/zsh-autosuggestions_mirror.git'
|
||||||
|
repo: "{{ repo_suggest }}"
|
||||||
dest: "{{ user_home }}/.oh-my-zsh/custom/plugins/zsh-autosuggestions"
|
dest: "{{ user_home }}/.oh-my-zsh/custom/plugins/zsh-autosuggestions"
|
||||||
update: yes
|
update: yes
|
||||||
#become_user: "{{ current_user }}"
|
#become_user: "{{ current_user }}"
|
||||||
@@ -98,7 +109,8 @@
|
|||||||
- name: "[{{ current_user }}] Обновляем тему Powerlevel10k до latest"
|
- name: "[{{ current_user }}] Обновляем тему Powerlevel10k до latest"
|
||||||
git:
|
git:
|
||||||
#repo: 'https://github.com/romkatv/powerlevel10k.git'
|
#repo: 'https://github.com/romkatv/powerlevel10k.git'
|
||||||
repo: 'https://git.guaranteedstruggle.host/hackerspace/powerlevel10k_mirror.git'
|
#repo: 'https://git.guaranteedstruggle.host/hackerspace/powerlevel10k_mirror.git'
|
||||||
|
repo: "{{ repo_p10k }}"
|
||||||
dest: "{{ user_home }}/.oh-my-zsh/custom/themes/powerlevel10k"
|
dest: "{{ user_home }}/.oh-my-zsh/custom/themes/powerlevel10k"
|
||||||
update: yes
|
update: yes
|
||||||
become_user: "{{ current_user }}"
|
become_user: "{{ current_user }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user