machine_setup/ansible/roles/zsh/tasks/peruser.yaml

35 lines
1007 B
YAML
Raw Normal View History

- include_role:
name: per_user
2022-10-12 01:24:39 +00:00
- name: clone zsh-histdb repo
git:
repo: "https://github.com/larkery/zsh-histdb.git"
2022-10-12 01:45:56 +00:00
dest: "{{ account_homedir.stdout }}/.config/ansible_deploy/zsh-histdb"
2022-10-12 01:24:39 +00:00
version: "6c7159be9de8586ac2f19d179d562cf5d10a2bab"
diff: false
2022-10-12 01:24:39 +00:00
- name: Create zshrc additional imports directory
file:
2022-10-12 01:45:56 +00:00
name: "{{ account_homedir.stdout }}/.config/ansible_deploy/zshrc"
2022-10-12 01:24:39 +00:00
state: directory
mode: 0700
owner: "{{ account_name.stdout }}"
group: "{{ group_name.stdout }}"
2022-10-12 01:24:39 +00:00
- name: Configure zshrc additional imports
copy:
src: "files/zshrc_{{ item }}"
2022-10-12 01:45:56 +00:00
dest: "{{ account_homedir.stdout }}/.config/ansible_deploy/zshrc/{{ item }}.zsh"
2022-10-12 01:24:39 +00:00
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 }}"