ansible #1

Merged
onjen merged 14 commits from ansible into master 2021-08-26 20:53:23 +02:00
4 changed files with 35 additions and 3 deletions
Showing only changes of commit 8a825c874b - Show all commits

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
id_rsa
id_rsa.pub
id_rsa-cert.pub
known_hosts

View File

@ -2,16 +2,20 @@
packages_all:
- ack
- build-essential
- dmenu
- fish
- grim
- htop
- ispell
- grimshot
- tmux
- sway
- swaylock
- waybar
- vim
- wdisplays
packages_debian:
- vim
- foot
packages_ubuntu:
- vim
# required for foot compilation
- meson
- ninja-build

View File

@ -1,6 +1,7 @@
set number
set colorcolumn=80
set background=dark
set cursorline
syntax on
colorscheme monokai

View File

@ -9,6 +9,32 @@
paths: "{{ role_path }}/files/home"
file_type: any
register: home_files
- name: Create a backup dir
file:
path: "~/tmp/dotfiles_backup"
state: directory
- name: Backup home files
copy:
src: "{{ item.path }}"
dest: "~/tmp/dotfiles_backup"
remote_src: True
loop: "{{ home_files.files }}"
- name: Backup config files
copy:
src: "{{ item.path }}"
dest: "~/tmp/dotfiles_backup"
remote_src: True
loop: "{{ config_files.files }}"
- name: Remove exisiting home files
file:
path: "~/.{{ item.path | basename }}/"
state: absent
loop: "{{ home_files.files }}"
- name: Remove exisiting config files
file:
path: "~/.config/{{ item.path | basename }}/"
state: absent
loop: "{{ config_files.files }}"
- name: Link home files
file:
src: "{{ item.path }}"