update ansible files

This commit is contained in:
2024-05-26 07:50:50 -05:00
parent 992eea1a2e
commit 5969895920
20 changed files with 223 additions and 26 deletions

View File

@@ -0,0 +1,29 @@
- name: install fonts
include_tasks: "./scripts/install_fonts.yml"
- name: set gnome config
become_user: user
dconf:
key: "{{ item.key }}"
value: "{{ item.value }}"
with_items: "{{ dconf }}"
when: dconf is defined
- user:
name: "user"
shell: /usr/bin/zsh
- name: Create bin folder
become_user: user
ansible.builtin.file:
path: ~/.local/bin
owner: "user"
group: "user"
mode: '0770'
state: directory
- name: run stow
become_user: user
shell: "stow --adopt ."
args:
chdir: ~/.dotfiles

View File

@@ -0,0 +1,11 @@
- name: Load a variable file
include_vars: "{{ item }}"
with_first_found:
- "vars/{{ ansible_distribution }}-{{ ansible_distribution_version }}.yml"
- "vars/{{ ansible_distribution }}.yml"
- "vars/{{ ansible_os_family }}.yml"
- "vars/defaults.yml"
- name:
include_tasks: "defaults.yml"