WIP: dotsfiles

This commit is contained in:
Matthieu Bessat 2025-10-03 18:20:55 +02:00
parent d26137b908
commit 338b168026
9 changed files with 37 additions and 2 deletions

View file

@ -7,3 +7,7 @@
- name: Configure low-level keyboard device
include_role:
name: keyboard
- name: Configure low-level display interface
include_role:
name: display

View file

@ -430,6 +430,7 @@ common:
files:
- nautilus
browser:
- dillo
- aur/librewolf-bin
- aur/ungoogled-chromium-bin
terminal_emulator:

View file

@ -0,0 +1 @@

View file

@ -0,0 +1,5 @@
- name: Install ddcutil
community.general.pacman:
name: ddcutil
state: present
- name: Install ddcsetup program

View file

@ -9,5 +9,7 @@
- name: Copy files
ansible.builtin.copy:
src: "{{ dotsfiles_repo_path.stdout }}/confs/src/{{ config['src'] }}"
force: true
remote_src: true
dest: "{{ home }}/{{ config['dest'] }}"
force: true
mode: u=rw,g=r,o=

View file

@ -0,0 +1,12 @@
- name: Init glue_scripts bin directory
ansible.builtin.file:
path: "{{ home }}/.local/share/glue_scripts/bin"
state: directory
- name: Copy glue script
ansible.builtin.copy:
src: "{{ dotsfiles_repo_path.stdout }}/glue_scripts/src/{{ item['src'] }}"
remote_src: true
dest: "{{ home }}/.local/share/glue_scripts/bin/{{ item['src'] }}"
force: true
mode: u=rwx,g=r,o=
with_items: "{{ config.static_executable_copy }}"

View file

@ -19,3 +19,12 @@
file: install_configs.yaml
vars:
config_map: "{{ (dotsfiles_map_yaml.content | b64decode | from_yaml).config_map }}"
- name: Read glue scripts config
ansible.builtin.slurp:
src: "{{ dotsfiles_repo_path.stdout }}/glue_scripts/config.yaml"
register: glue_scripts_config_yaml
- name: Install glue scripts
ansible.builtin.include_tasks:
file: install_glue_scripts.yaml
vars:
config: "{{ (glue_scripts_config_yaml.content | b64decode | from_yaml) }}"

View file

@ -18,7 +18,7 @@ export ANSIBLE_PLAYBOOK="${ANSIBLE_PLAYBOOK:-workstation.yaml}"
playbookPath="$base/$ANSIBLE_PLAYBOOK"
ansible-playbook $playbookPath \
-vvvvv \
-v \
--ask-become-pass \
-i "inventory.yaml" \
--ssh-extra-args "-o ControlMaster=auto -o ControlPersist=60s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 22 -i ./master_sshkey" \

1
main.yaml Normal file
View file

@ -0,0 +1 @@