Skip to content

Commit

Permalink
adjust ohmzsh
Browse files Browse the repository at this point in the history
  • Loading branch information
Grotax committed Sep 21, 2024
1 parent 6bb1b81 commit 4ac8440
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions roles/ohmyzsh/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,20 @@
register: directory_info

- name: Set variable if directory exists
set_fact:
ansible.builtin.set_fact:
directory_exists: "{{ directory_info.stat.exists }}"

- name: Install oh-my-zsh
ansible.builtin.script: files/install.sh --unattended
ansible.builtin.script: files/install.sh
args:
executable: sh
when: directory_exists != true
environment:
CHSH: "yes"
RUNZSH: "no"
KEEP_ZHRC: "no"
when: not directory_exists

- name: Print oh-my-zsh status
ansible.builtin.debug:
msg: "oh-my-zsh is already installed, if you want to re-install 'rm -rf ~/.oh-my-zsh'"
when: directory_exists == true
when: directory_exists

0 comments on commit 4ac8440

Please sign in to comment.