fixing packages for new style
This commit is contained in:
29
tasks/archive/nerdfonts.yml
Normal file
29
tasks/archive/nerdfonts.yml
Normal file
@@ -0,0 +1,29 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Linux installation
|
||||
when: ansible_system == 'Linux'
|
||||
block:
|
||||
- name: Create nerdfonts directories
|
||||
become: "{{ ext_become }}"
|
||||
loop: "{{ nerdfonts.fonts }}"
|
||||
loop_control:
|
||||
loop_var: font
|
||||
register: nerdfont_result
|
||||
ansible.builtin.file:
|
||||
path: "{{ nerdfonts.install_path }}/{{ font }}"
|
||||
state: directory
|
||||
mode: '0755'
|
||||
|
||||
- name: Download and extract nerdfonts
|
||||
when:
|
||||
- nerdfont_result is changed or
|
||||
nerdfonts.force_install
|
||||
become: "{{ ext_become }}"
|
||||
loop: "{{ nerdfonts.fonts }}"
|
||||
loop_control:
|
||||
loop_var: font
|
||||
ansible.builtin.unarchive:
|
||||
creates: "{{ nerdfonts.install_path }}/{{ font }}/README.md"
|
||||
src: "{{ nerdfonts.base_url }}/{{ font }}.tar.xz"
|
||||
dest: "{{ nerdfonts.install_path }}/{{ font }}"
|
||||
remote_src: true
|
||||
Reference in New Issue
Block a user