local/roles/zsh/tasks/main.yaml
Kenneth Benzie (Benie) d5fc2c3c13 Move zsh install login into script
Enable installing zsh config repo standalone, i.e. without Ansible,
invoke the `install.zsh` script instead.
2024-04-13 16:12:24 +01:00

25 lines
511 B
YAML

---
- include_tasks: '{{ansible_os_family}}.yaml'
- name: clone config repo
git:
repo: git@code.infektor.net:config/zsh.git
dest: ~/.config/zsh
version: main
- name: run install script
command: ~/.config/zsh/install.zsh
register: zsh_install
changed_when: "'changed' in zsh_install.stdout"
- name: get absolute path
shell: command -v zsh
register: zsh
changed_when: false
- name: set default shell
user:
name: '{{ansible_user_id}}'
shell: '{{zsh.stdout}}'
become: true