ansible #1
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
id_rsa
|
||||
id_rsa.pub
|
||||
id_rsa-cert.pub
|
||||
known_hosts
|
||||
|
@ -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
|
||||
|
@ -1,6 +1,7 @@
|
||||
set number
|
||||
set colorcolumn=80
|
||||
set background=dark
|
||||
set cursorline
|
||||
syntax on
|
||||
colorscheme monokai
|
||||
|
||||
|
@ -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 }}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user