Fix installation of Oh My Zsh
This commit is contained in:
parent
c6b52d58ab
commit
e1d1f02f36
1 changed files with 15 additions and 2 deletions
|
@ -39,8 +39,21 @@
|
|||
name: zsh
|
||||
register: zsh_installation
|
||||
|
||||
- name: Download Oh My Zsh installer
|
||||
ansible.builtin.get_url:
|
||||
url: https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh
|
||||
dest: /tmp/install.sh
|
||||
when: zsh_installation is changed
|
||||
|
||||
- name: Install Oh My Zsh
|
||||
ansible.builtin.command:
|
||||
cmd: sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
||||
cmd: sh /tmp/install.sh --unattended --keep-zshrc
|
||||
chdir: "{{ ansible_env.HOME }}"
|
||||
when: zsh_installation is changed
|
||||
when: zsh_installation is changed
|
||||
|
||||
- name: Delete Oh My Zsh installer
|
||||
ansible.builtin.file:
|
||||
path: /tmp/install.sh
|
||||
state: absent
|
||||
when: zsh_installation is changed
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue