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

35 lines
986 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"
dest: "{{ account_homedir.stdout }}/.ansible_deploy/zsh-histdb"
version: "6c7159be9de8586ac2f19d179d562cf5d10a2bab"
diff: false
2022-10-12 01:24:39 +00:00
- 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 }}"
2022-10-12 01:24:39 +00:00
- 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 }}"