Add the base zsh config.

This commit is contained in:
Tom Alexander
2022-10-11 21:24:39 -04:00
parent 207c7c2f71
commit ba1d4fb9d9
7 changed files with 74 additions and 28 deletions

View File

@@ -1,33 +1,34 @@
- include_role:
name: per_user
# - name: clone zsh-histdb repo
# git:
# repo: "https://github.com/larkery/zsh-histdb.git"
# dest: "{{ account_homedir.stdout }}/.ansible_deploy/zsh-histdb"
# version: "6c7159be9de8586ac2f19d179d562cf5d10a2bab"
# diff: false
# - name: Create zshrc additional imports directory
# file:
# name: "{{ account_homedir.stdout }}/.ansible_deploy/zshrc"
# state: directory
# mode: 0700
# owner: "{{ account_name.stdout }}"
# group: "{{ group_name.stdout }}"
- name: clone zsh-histdb repo
git:
repo: "https://github.com/larkery/zsh-histdb.git"
dest: "{{ account_homedir.stdout }}/.ansible_deploy/zsh-histdb"
version: "6c7159be9de8586ac2f19d179d562cf5d10a2bab"
diff: false
# - name: Configure zshrc additional imports
# copy:
# src: "files/zshrc_{{ item }}"
# dest: "{{ account_homedir.stdout }}/.ansible_deploy/zshrc/{{ item }}.zsh"
# mode: 0600
# owner: "{{ account_name.stdout }}"
# group: "{{ group_name.stdout }}"
# with_items: "{{ additional_zshrc_files }}"
- name: Create zshrc additional imports directory
file:
name: "{{ account_homedir.stdout }}/.ansible_deploy/zshrc"
state: directory
mode: 0700
owner: "{{ account_name.stdout }}"
group: "{{ group_name.stdout }}"
# - name: Configure zshrc
# copy:
# src: files/zshrc
# dest: "{{ account_homedir.stdout }}/.zshrc"
# mode: 0600
# owner: "{{ account_name.stdout }}"
# group: "{{ group_name.stdout }}"
- name: Configure zshrc additional imports
copy:
src: "files/zshrc_{{ item }}"
dest: "{{ account_homedir.stdout }}/.ansible_deploy/zshrc/{{ item }}.zsh"
mode: 0600
owner: "{{ account_name.stdout }}"
group: "{{ group_name.stdout }}"
loop: "{{ additional_zshrc_files }}"
- name: Configure zshrc
copy:
src: files/zshrc
dest: "{{ account_homedir.stdout }}/.zshrc"
mode: 0600
owner: "{{ account_name.stdout }}"
group: "{{ group_name.stdout }}"