mirror of
https://github.com/fscotto/infra.git
synced 2026-09-27 11:02:47 +00:00
Fix desktop dotfile idempotency
This commit is contained in:
@@ -13,12 +13,4 @@ personal_workstation_directories:
|
|||||||
- path: "{{ user_home }}/Remotes"
|
- path: "{{ user_home }}/Remotes"
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
|
|
||||||
personal_workstation_dotfiles:
|
|
||||||
- src: .gitignore_global
|
|
||||||
dest: .gitignore_global
|
|
||||||
mode: "0644"
|
|
||||||
- src: .themes.gitignore
|
|
||||||
dest: .themes.gitignore
|
|
||||||
mode: "0644"
|
|
||||||
|
|
||||||
personal_workstation_flatpak_packages: []
|
personal_workstation_flatpak_packages: []
|
||||||
|
|||||||
@@ -23,6 +23,7 @@
|
|||||||
dest: "{{ effective_user_home }}/Templates"
|
dest: "{{ effective_user_home }}/Templates"
|
||||||
owner: "{{ effective_username }}"
|
owner: "{{ effective_username }}"
|
||||||
group: "{{ effective_user_group }}"
|
group: "{{ effective_user_group }}"
|
||||||
|
creates: "{{ effective_user_home }}/Templates/code/main.c"
|
||||||
when: "'desktop' in group_names"
|
when: "'desktop' in group_names"
|
||||||
|
|
||||||
- name: Ensure Emacs authoring directories exist
|
- name: Ensure Emacs authoring directories exist
|
||||||
|
|||||||
@@ -10,15 +10,3 @@
|
|||||||
loop: "{{ personal_workstation_directories | default([]) }}"
|
loop: "{{ personal_workstation_directories | default([]) }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.path }}"
|
label: "{{ item.path }}"
|
||||||
|
|
||||||
- name: Copy personal workstation dotfiles
|
|
||||||
tags: [dotfiles, dotfiles:workstation]
|
|
||||||
ansible.builtin.copy:
|
|
||||||
src: "{{ playbook_dir }}/../dotfiles/workstation/{{ item.src }}"
|
|
||||||
dest: "{{ user_home }}/{{ item.dest }}"
|
|
||||||
owner: "{{ username }}"
|
|
||||||
group: "{{ user_group }}"
|
|
||||||
mode: "{{ item.mode }}"
|
|
||||||
loop: "{{ personal_workstation_dotfiles | default([]) }}"
|
|
||||||
loop_control:
|
|
||||||
label: "{{ item.dest }}"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user