update conf
This commit is contained in:
@ -3,12 +3,14 @@
|
||||
package:
|
||||
name: zsh
|
||||
state: present
|
||||
become: yes
|
||||
become_user: root
|
||||
|
||||
- name: Install oh-my-zsh
|
||||
shell: |
|
||||
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" --unattended
|
||||
args:
|
||||
creates: "{{ ansible_facts.env.HOME }}/.oh-my-zsh"
|
||||
creates: "{{ home_dir }}/.oh-my-zsh"
|
||||
|
||||
- name: Check for custom zshrc
|
||||
stat:
|
||||
@ -18,7 +20,7 @@
|
||||
- name: Symlink custom zshrc
|
||||
file:
|
||||
src: "{{ role_path }}/files/.zshrc"
|
||||
dest: "{{ ansible_facts.env.HOME }}/.zshrc"
|
||||
dest: "{{ home_dir }}/.zshrc"
|
||||
state: link
|
||||
force: yes
|
||||
when: custom_zshrc.stat.exists
|
||||
|
||||
Reference in New Issue
Block a user