Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcreasy committed Dec 19, 2023
1 parent bbc7f98 commit e36e827
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 14 deletions.
37 changes: 23 additions & 14 deletions roles/zsh/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,28 @@
---
- name: Install ZSH on macos systems
community.general.homebrew:
name:
- zsh
state: present
when: ansible_system == 'Darwin'
become: false
- name: Install ZSH
become: '{{ require_root }}'
block:
- name: Install ZSH
ansible.builtin.package:
name:
- zsh
state: present

- name: Install ZSH on linux systems
ansible.builtin.package:
name:
- zsh
state: present
when: ansible_system == 'Linux'
become: true
# - name: Install ZSH on macos systems
# community.general.homebrew:
# name:
# - zsh
# state: present
# when: ansible_system == 'Darwin'
# become: false

# - name: Install ZSH on linux systems
# ansible.builtin.package:
# name:
# - zsh
# state: present
# when: ansible_system == 'Linux'
# become: true

- name: Checkout oh-my-zsh
ansible.builtin.git:
Expand Down
1 change: 1 addition & 0 deletions roles/zsh/vars/main.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
---
# vars file for zsh
require_root: "{{ true if ansible_pkg_mgr != 'brew' else false }}"

0 comments on commit e36e827

Please sign in to comment.