workstation/roles/home-cli/tasks/dotfiles.yml

101 lines
3.6 KiB
YAML
Raw Normal View History

---
2023-01-21 19:42:51 +00:00
# Copyright 2021-2023 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.
2022-08-18 15:57:20 +00:00
- name: Create $HOME/.gemrc
2021-02-19 20:32:22 +00:00
ansible.builtin.copy:
2019-11-22 15:46:55 +00:00
src: gemrc
dest: "{{ ansible_env.HOME }}/.gemrc"
2022-08-18 15:57:20 +00:00
- name: Create $HOME/.tmux.conf
2021-02-19 20:32:22 +00:00
ansible.builtin.copy:
src: tmux.conf
dest: "{{ ansible_env.HOME }}/.tmux.conf"
2022-08-18 15:57:20 +00:00
- name: Create $XDG_CONFIG_HOME/openpgp.asc
2021-02-19 20:32:22 +00:00
ansible.builtin.copy:
2019-10-09 13:07:20 +00:00
src: openpgp.asc
2022-08-18 15:37:57 +00:00
dest: "{{ ansible_env.XDG_CONFIG_HOME }}/openpgp.asc"
2022-08-18 15:57:20 +00:00
- name: Create $HOME/.dput.cf
2021-02-19 20:32:22 +00:00
ansible.builtin.copy:
2020-06-04 21:42:31 +00:00
src: dput.cf
dest: "{{ ansible_env.HOME }}/.dput.cf"
2022-08-18 15:57:20 +00:00
- name: Create $HOME/.mailcap
2021-02-19 20:32:22 +00:00
ansible.builtin.copy:
src: mailcap
dest: "{{ ansible_env.HOME }}/.mailcap"
2022-08-18 15:57:20 +00:00
- name: Create $XDG_CONFIG_HOME/git/config
ansible.builtin.copy:
src: gitconfig
2022-08-18 15:37:57 +00:00
dest: "{{ ansible_env.XDG_CONFIG_HOME }}/git/config"
2022-08-18 15:57:20 +00:00
- name: Create $HOME/.quiltrc-dpkg
2021-03-16 08:26:44 +00:00
ansible.builtin.copy:
src: quiltrc-dpkg
dest: "{{ ansible_env.HOME }}/.quiltrc-dpkg"
2022-08-18 15:57:20 +00:00
- name: Create $XDG_CONFIG_HOME/editorconfig
2021-09-25 14:20:50 +00:00
ansible.builtin.copy:
src: editorconfig
2022-08-18 15:57:20 +00:00
dest: "{{ ansible_env.XDG_CONFIG_HOME }}/editorconfig"
2023-05-18 22:14:31 +00:00
- name: Create $HOME/.clang-format
2021-09-25 14:20:50 +00:00
ansible.builtin.copy:
src: clang-format
2023-05-18 22:13:03 +00:00
dest: "{{ ansible_env.HOME }}/.clang-format"
2023-06-04 08:50:26 +00:00
- name: Create $HOME/.editorconfig
ansible.builtin.copy:
src: editorconfig
dest: "{{ ansible_env.HOME }}/.editorconfig"
2022-08-18 15:57:20 +00:00
- name: Create $HOME/.local/bin/docutils-setup
2021-03-22 22:50:28 +00:00
ansible.builtin.copy:
src: docutils-setup.sh
2022-03-06 17:20:36 +00:00
dest: "{{ ansible_env.HOME }}/.local/bin/docutils-setup"
2021-03-22 22:50:28 +00:00
mode: '0755'
2022-08-18 15:57:20 +00:00
- name: Create $XDG_CONFIG_HOME/mc/ini
2022-01-11 22:47:57 +00:00
ansible.builtin.copy:
src: mc.ini
2022-08-18 15:37:57 +00:00
dest: "{{ ansible_env.XDG_CONFIG_HOME }}/mc/ini"
2022-08-18 15:57:20 +00:00
- name: Create $XDG_CONFIG_HOME/mc/panels.ini
2022-01-11 22:47:57 +00:00
ansible.builtin.copy:
src: mc.panels.ini
2022-08-18 15:37:57 +00:00
dest: "{{ ansible_env.XDG_CONFIG_HOME }}/mc/panels.ini"
2022-08-18 15:57:20 +00:00
- name: Create $XDG_CONFIG_HOME/powershell/Microsoft.PowerShell_profile.ps1
2022-01-18 11:48:49 +00:00
ansible.builtin.copy:
src: Microsoft.PowerShell_profile.ps1
2022-08-18 15:37:57 +00:00
dest: "{{ ansible_env.XDG_CONFIG_HOME }}/powershell/Microsoft.PowerShell_profile.ps1"
2023-02-23 14:28:47 +00:00
- name: Create $HOME/.local/bin/virtinst
ansible.builtin.copy:
src: virtinst.sh
dest: "{{ ansible_env.HOME }}/.local/bin/virtinst"
mode: '0755'
2023-04-08 20:03:10 +00:00
- name: Create $HOME/.local/bin/virtxp
ansible.builtin.copy:
src: virtxp.sh
dest: "{{ ansible_env.HOME }}/.local/bin/virtxp"
mode: '0755'
2023-03-29 14:00:32 +00:00
- name: Create $XDG_CONFIG_HOME/user-dirs.dirs
ansible.builtin.copy:
src: user-dirs.dirs
dest: "{{ ansible_env.XDG_CONFIG_HOME }}/user-dirs.dirs"
- name: Create $XDG_CONFIG_HOME/containers/storage.conf
ansible.builtin.copy:
src: storage.conf
dest: "{{ ansible_env.XDG_CONFIG_HOME }}/containers/storage.conf"
2023-04-21 18:56:07 +00:00
- name: Create $XDG_DATA_HOME/azerty-afnor.txt
ansible.builtin.copy:
src: azerty-afnor.txt
dest: "{{ ansible_env.XDG_DATA_HOME }}/azerty-afnor.txt"
# Get the latest version from <https://dotnet.microsoft.com/en-us/download/dotnet/scripts>
- name: Create $HOME/.local/bin/dotnet-install.sh
ansible.builtin.copy:
src: dotnet-install.sh
dest: "{{ ansible_env.HOME }}/.local/bin/dotnet-install.sh"
mode: '0755'