25 lines
510 B
YAML
25 lines
510 B
YAML
---
|
|
- include_tasks: '{{ansible_os_family}}.yaml'
|
|
|
|
- name: clone config repo
|
|
git:
|
|
repo: git@git.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
|