--- # Copyright 2021 Anthony Perkins # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. - name: Copy .Xresources ansible.builtin.copy: src: Xresources dest: "{{ ansible_env.HOME }}/.Xresources" - name: Copy .fonts.conf ansible.builtin.copy: src: fonts.conf dest: "{{ ansible_env.HOME }}/.fonts.conf" - name: Create stalonetrayrc ansible.builtin.copy: src: stalonetrayrc dest: "{{ ansible_env.HOME }}/.stalonetrayrc" - name: Create fvwm config file ansible.builtin.copy: src: fvwmrc dest: "{{ ansible_env.HOME }}/.fvwm/config" - name: Create NetBSD xsession file ansible.builtin.copy: src: xsession-netbsd dest: "{{ ansible_env.HOME }}/.xsession" when: ansible_system == "NetBSD" - name: Create xinitrc symlink ansible.builtin.file: src: ".xsession" dest: "{{ ansible_env.HOME }}/.xinitrc" state: link when: ansible_system == "NetBSD" - name: Load ~/.Xresources ansible.builtin.copy: src: "xrdb.desktop" dest: "{{ ansible_env.HOME }}/.config/autostart/xrdb.desktop" when: ansible_distribution == "Fedora" or ansible_distribution == "Debian" - name: Add to-do list launcher ansible.builtin.template: src: todo.desktop dest: "{{ ansible_env.HOME }}/.local/share/applications/todo.desktop" - name: Copy .xbindkeysrc ansible.builtin.copy: src: "xbindkeysrc" dest: "{{ ansible_env.HOME }}/.xbindkeysrc" - name: Add GVim COC launcher ansible.builtin.copy: src: gvim-coc.desktop dest: "{{ ansible_env.HOME }}/.local/share/applications/gvim-coc.desktop"