make setup.yml have correct identation
This commit is contained in:
@@ -107,23 +107,24 @@
|
|||||||
# mode: "0755"
|
# mode: "0755"
|
||||||
# owner: "{{ regular_user }}"
|
# owner: "{{ regular_user }}"
|
||||||
|
|
||||||
- name: Ensure fonts directory exists
|
|
||||||
ansible.builtin.file:
|
|
||||||
path: "~{{ regular_user }}/.fonts"
|
|
||||||
state: directory
|
|
||||||
owner: "{{ regular_user }}"
|
|
||||||
mode: "0755"
|
|
||||||
|
|
||||||
- name: Check if specific font files exist
|
- name: Ensure fonts directory exists
|
||||||
ansible.builtin.find:
|
ansible.builtin.file:
|
||||||
paths: "~{{ regular_user }}/.fonts"
|
path: "~{{ regular_user }}/.fonts"
|
||||||
patterns: "Cascadia*.ttf" # Adjust for actual font files in the zip
|
state: directory
|
||||||
register: existing_fonts
|
owner: "{{ regular_user }}"
|
||||||
|
mode: "0755"
|
||||||
|
|
||||||
- name: Download and extract Nerdfonts
|
- name: Check if specific font files exist
|
||||||
ansible.builtin.unarchive:
|
ansible.builtin.find:
|
||||||
src: https://github.com/ryanoasis/nerd-fonts/releases/download/v3.3.0/CascadiaCode.zip
|
paths: "~{{ regular_user }}/.fonts"
|
||||||
dest: "~{{ regular_user }}/.fonts"
|
patterns: "CaskaydiaCoveNerdFont*.ttf" # Adjust for actual font files in the zip
|
||||||
remote_src: true
|
register: existing_fonts
|
||||||
owner: "{{ regular_user }}"
|
|
||||||
when: existing_fonts.matched == 0 # Only run if no matching fonts found
|
- name: Download and extract Nerdfonts
|
||||||
|
ansible.builtin.unarchive:
|
||||||
|
src: https://github.com/ryanoasis/nerd-fonts/releases/download/v3.3.0/CascadiaCode.zip
|
||||||
|
dest: "~{{ regular_user }}/.fonts"
|
||||||
|
remote_src: true
|
||||||
|
owner: "{{ regular_user }}"
|
||||||
|
when: existing_fonts.matched == 0 # Only run if no matching fonts found
|
||||||
|
|||||||
Reference in New Issue
Block a user