mirror of
https://github.com/fscotto/infra.git
synced 2026-09-27 19:03:47 +00:00
Deploy WSL Emacs config to Windows home
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
hostname: deadalus-wsl
|
hostname: deadalus-wsl
|
||||||
|
workstation_wsl_windows_user_home: /mnt/c/Users/FABIOSCOTTODISANTOLO
|
||||||
|
|
||||||
host_packages: []
|
host_packages: []
|
||||||
host_enabled_services: []
|
host_enabled_services: []
|
||||||
|
|||||||
@@ -34,7 +34,9 @@
|
|||||||
group: "{{ effective_user_group }}"
|
group: "{{ effective_user_group }}"
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
loop: "{{ emacs_authoring_directories | default([]) }}"
|
loop: "{{ emacs_authoring_directories | default([]) }}"
|
||||||
when: emacs_enabled | default(false) | bool
|
when:
|
||||||
|
- emacs_enabled | default(false) | bool
|
||||||
|
- not (workstation_is_wsl | default(false) | bool)
|
||||||
|
|
||||||
- name: Deploy the shared Emacs authoring configuration
|
- name: Deploy the shared Emacs authoring configuration
|
||||||
tags: [dotfiles, dotfiles:common, emacs]
|
tags: [dotfiles, dotfiles:common, emacs]
|
||||||
@@ -47,7 +49,9 @@
|
|||||||
loop: "{{ emacs_dotfiles | default([]) }}"
|
loop: "{{ emacs_dotfiles | default([]) }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.dest }}"
|
label: "{{ item.dest }}"
|
||||||
when: emacs_enabled | default(false) | bool
|
when:
|
||||||
|
- emacs_enabled | default(false) | bool
|
||||||
|
- not (workstation_is_wsl | default(false) | bool)
|
||||||
|
|
||||||
- name: Deploy Emacs authoring assets
|
- name: Deploy Emacs authoring assets
|
||||||
tags: [dotfiles, dotfiles:common, emacs]
|
tags: [dotfiles, dotfiles:common, emacs]
|
||||||
@@ -60,7 +64,9 @@
|
|||||||
loop: "{{ emacs_authoring_files | default([]) }}"
|
loop: "{{ emacs_authoring_files | default([]) }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.dest }}"
|
label: "{{ item.dest }}"
|
||||||
when: emacs_enabled | default(false) | bool
|
when:
|
||||||
|
- emacs_enabled | default(false) | bool
|
||||||
|
- not (workstation_is_wsl | default(false) | bool)
|
||||||
|
|
||||||
- name: Ensure SSH socket directory exists
|
- name: Ensure SSH socket directory exists
|
||||||
tags: [dotfiles, dotfiles:common]
|
tags: [dotfiles, dotfiles:common]
|
||||||
|
|||||||
@@ -1,4 +1,35 @@
|
|||||||
---
|
---
|
||||||
|
- name: Ensure Windows Emacs authoring directories exist
|
||||||
|
tags: [dotfiles, dotfiles:workstation, emacs, wsl]
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ workstation_wsl_windows_user_home }}/{{ item }}"
|
||||||
|
state: directory
|
||||||
|
become_user: "{{ username }}"
|
||||||
|
loop:
|
||||||
|
- Org
|
||||||
|
- Org/documentation
|
||||||
|
- Org/meetings
|
||||||
|
- Org/projects
|
||||||
|
when: emacs_enabled | default(false) | bool
|
||||||
|
|
||||||
|
- name: Deploy shared Emacs configuration to the Windows home
|
||||||
|
tags: [dotfiles, dotfiles:workstation, emacs, wsl]
|
||||||
|
ansible.builtin.copy:
|
||||||
|
src: "{{ playbook_dir }}/../dotfiles/desktop/.emacs.d/"
|
||||||
|
dest: "{{ workstation_wsl_windows_user_home }}/.emacs.d/"
|
||||||
|
mode: preserve
|
||||||
|
become_user: "{{ username }}"
|
||||||
|
when: emacs_enabled | default(false) | bool
|
||||||
|
|
||||||
|
- name: Deploy Org HTML stylesheet to the Windows home
|
||||||
|
tags: [dotfiles, dotfiles:workstation, emacs, wsl]
|
||||||
|
ansible.builtin.copy:
|
||||||
|
src: "{{ playbook_dir }}/../dotfiles/desktop/.emacs.d/templates/org/org.css"
|
||||||
|
dest: "{{ workstation_wsl_windows_user_home }}/Org/org.css"
|
||||||
|
mode: "0644"
|
||||||
|
become_user: "{{ username }}"
|
||||||
|
when: emacs_enabled | default(false) | bool
|
||||||
|
|
||||||
- name: Ensure WSL tmux directories exist
|
- name: Ensure WSL tmux directories exist
|
||||||
tags: [dotfiles, dotfiles:workstation, tmux, wsl]
|
tags: [dotfiles, dotfiles:workstation, tmux, wsl]
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
|
|||||||
Reference in New Issue
Block a user