updated powerline font install task to skip if the fonts were unchanged
This commit is contained in:
@ -36,12 +36,14 @@
|
|||||||
repo: 'https://github.com/ryanoasis/nerd-fonts.git'
|
repo: 'https://github.com/ryanoasis/nerd-fonts.git'
|
||||||
dest: '~{{ item.username }}/.fonts'
|
dest: '~{{ item.username }}/.fonts'
|
||||||
with_items: '{{ users }}'
|
with_items: '{{ users }}'
|
||||||
|
register: powerlinefonts
|
||||||
|
|
||||||
- name: install powerline fonts
|
- name: install powerline fonts
|
||||||
become: yes
|
become: yes
|
||||||
become: '{{ item.username }}'
|
become: '{{ item.username }}'
|
||||||
command: '~{{ item.username }}/.fonts/install.sh'
|
command: '~{{ item.username }}/.fonts/install.sh'
|
||||||
with_items: '{{ users }}'
|
with_items: '{{ users }}'
|
||||||
|
when: powerlinefonts.changed
|
||||||
|
|
||||||
- name: set permissions of oh-my-zsh for users
|
- name: set permissions of oh-my-zsh for users
|
||||||
become: yes
|
become: yes
|
||||||
|
Reference in New Issue
Block a user