Yamlfix
This commit is contained in:
parent
9c9b4aeba7
commit
c73f2953ba
3 changed files with 19 additions and 3 deletions
|
@ -10,5 +10,5 @@
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
path: /etc/environment
|
path: /etc/environment
|
||||||
regex: '^XDG_DATA_DIRS='
|
regex: ^XDG_DATA_DIRS=
|
||||||
line: XDG_DATA_DIRS={{ XDG_DATA_DIRS }}
|
line: XDG_DATA_DIRS={{ XDG_DATA_DIRS }}
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
---
|
---
|
||||||
- name: Set up fonts
|
- name: Set up fonts
|
||||||
vars:
|
vars:
|
||||||
|
uid: "{{ lookup('env','USER') }}"
|
||||||
font_name: UbuntuMono
|
font_name: UbuntuMono
|
||||||
font_path: https://github.com/ryanoasis/nerd-fonts/releases/download/v3.0.2/{{ font_name }}.zip
|
font_path: https://github.com/ryanoasis/nerd-fonts/releases/download/v3.0.2/{{ font_name }}.zip
|
||||||
|
font_size: 14
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
connection: local
|
connection: local
|
||||||
become: false
|
become: false
|
||||||
|
@ -26,9 +28,20 @@
|
||||||
chdir: /tmp/{{ font_name }}
|
chdir: /tmp/{{ font_name }}
|
||||||
cmd: unzip {{ font_name }}.zip
|
cmd: unzip {{ font_name }}.zip
|
||||||
when: not font.stat.exists
|
when: not font.stat.exists
|
||||||
- name: unizip font
|
- name: install font
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
chdir: /tmp/
|
chdir: /tmp/
|
||||||
cmd: mv {{ font_name }} /usr/local/share/fonts/
|
cmd: mv {{ font_name }} /usr/local/share/fonts/
|
||||||
when: not font.stat.exists
|
when: not font.stat.exists
|
||||||
|
- name: make foot dir
|
||||||
|
ansible.builtin.file:
|
||||||
|
dest: /home/{{ uid }}/.config/foot
|
||||||
|
state: directory
|
||||||
|
- name: install foot config
|
||||||
|
ansible.builtin.template:
|
||||||
|
src: ../templates/foot.ini.j2
|
||||||
|
dest: /home/{{ uid }}/.config/foot/foot.ini
|
||||||
|
owner: '{{ uid }}'
|
||||||
|
group: '{{ uid }}'
|
||||||
|
mode: '0640'
|
||||||
|
|
3
templates/foot.ini.j2
Normal file
3
templates/foot.ini.j2
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
font=monospace:size={{ font_size }}
|
||||||
|
[colors]
|
||||||
|
alpha=0.9
|
Loading…
Add table
Reference in a new issue