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

72 lines
2.3 KiB
YAML

---
# 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 .gemrc
ansible.builtin.copy:
src: gemrc
dest: "{{ ansible_env.HOME }}/.gemrc"
- name: Remove .hushlogin
ansible.builtin.file:
path: "{{ ansible_env.HOME }}/.hushlogin"
state: absent
- name: Copy .tmux.conf
ansible.builtin.copy:
src: tmux.conf
dest: "{{ ansible_env.HOME }}/.tmux.conf"
- name: Copy openpgp.asc
ansible.builtin.copy:
src: openpgp.asc
dest: "{{ ansible_env.XDG_CONFIG_HOME }}/openpgp.asc"
- name: Copy .dput.cf
ansible.builtin.copy:
src: dput.cf
dest: "{{ ansible_env.HOME }}/.dput.cf"
- name: Copy .mailcap
ansible.builtin.copy:
src: mailcap
dest: "{{ ansible_env.HOME }}/.mailcap"
- name: Copy .config/git/config
ansible.builtin.copy:
src: gitconfig
dest: "{{ ansible_env.XDG_CONFIG_HOME }}/git/config"
- name: Copy .quiltrc-dpkg
ansible.builtin.copy:
src: quiltrc-dpkg
dest: "{{ ansible_env.HOME }}/.quiltrc-dpkg"
- name: Copy .editorconfig
ansible.builtin.copy:
src: editorconfig
dest: "{{ ansible_env.HOME }}/.editorconfig"
- name: Copy .clang-format
ansible.builtin.copy:
src: clang-format
dest: "{{ ansible_env.HOME }}/.clang-format"
- name: Copy docutils setup script
ansible.builtin.copy:
src: docutils-setup.sh
dest: "{{ ansible_env.HOME }}/.local/bin/docutils-setup"
mode: '0755'
- name: Copy mc ini
ansible.builtin.copy:
src: mc.ini
dest: "{{ ansible_env.XDG_CONFIG_HOME }}/mc/ini"
- name: Copy mc panels.ini
ansible.builtin.copy:
src: mc.panels.ini
dest: "{{ ansible_env.XDG_CONFIG_HOME }}/mc/panels.ini"
- name: Copy Microsoft.PowerShell_profile.ps1
ansible.builtin.copy:
src: Microsoft.PowerShell_profile.ps1
dest: "{{ ansible_env.XDG_CONFIG_HOME }}/powershell/Microsoft.PowerShell_profile.ps1"