Compare commits

..

1 Commits

Author SHA1 Message Date
7b1904c0a3
Sign commits true 2021-08-31 03:40:56 +02:00
5 changed files with 44 additions and 54 deletions

11
Jenkinsfile vendored
View File

@ -1,11 +0,0 @@
pipeline {
agent any
stages {
stage('lint') {
steps {
sh 'ansible-lint dotfiles.yml'
}
}
}
}

View File

@ -1,3 +1,6 @@
home: '{{ "~" | expanduser }}'
dotfiles_dir: '{{home}}/src/dotfiles'
files_dir: '{{dotfiles_dir}}/roles/dotfiles/files'
git_mail: 'mail@johannes-rothe.de'
git_name: 'Johannes Rothe'
diff_tool: 'vimdiff'

View File

@ -7,4 +7,4 @@ if status --is-login
end
end
eval (keychain --eval --agents ssh,gpg 82CD152AAAE9CAF77EACB29E73F092605AF3286C)
eval (keychain --eval --agents ssh --agents gpg 82CD152AAAE9CAF77EACB29E73F092605AF3286C)

View File

@ -1 +1,2 @@
default-cache-ttl 10800
maximum-cache-ttl 10800

View File

@ -31,46 +31,43 @@
- name: Remove old backup
file:
path: '{{ home }}/tmp/dotfiles_backup'
path: '{{home}}/tmp/dotfiles_backup'
state: absent
- name: Create new backup dir
file:
path: '{{ home }}/tmp/dotfiles_backup'
path: '{{home}}/tmp/dotfiles_backup'
state: directory
mode: 0700
- name: Backup stuff
copy:
src: '{{ item }}'
dest: '{{ home }}/tmp/dotfiles_backup'
dest: '{{home}}/tmp/dotfiles_backup'
remote_src: True # copy the folder from the host instead of ansible
mode: 0600
ignore_errors: yes
loop:
# dirs (without trailing '/' copies the whole dir)
- '{{ home }}/.config/fish'
- '{{home}}/.config/fish'
# files
- '{{ home }}/.tmux.conf'
- '{{ home }}/.vimrc'
- '{{ home }}/.ssh/config'
- '{{ home }}/.config/i3/config'
- '{{ home }}/.config/i3status/config'
- '{{ home }}/.config/rofi/config'
- '{{ home }}/.gitconfig'
- '{{ home }}/.gnupg/gpg-agent.conf'
- '{{home}}/.tmux.conf'
- '{{home}}/.vimrc'
- '{{home}}/.ssh/config'
- '{{home}}/.config/i3/config'
- '{{home}}/.config/i3status/config'
- '{{home}}/.config/rofi/config'
- '{{home}}/.gitconfig'
- '{{home}}/.gnupg/gpg-agent.conf'
- name: Make sure folders exist
file:
path: '{{ item }}'
path: '{{item}}'
state: directory
mode: 0700
loop:
- '{{ home }}/.config/i3/'
- '{{ home }}/.config/i3status/'
- '{{ home }}/.config/rofi/'
- '{{ home }}/.ssh/'
- '{{ home }}/pictures/shots/'
- '{{ home }}/.gnupg/'
- '{{home}}/.config/i3/'
- '{{home}}/.config/i3status/'
- '{{home}}/.config/rofi/'
- '{{home}}/.ssh/'
- '{{home}}/pictures/shots/'
- '{{home}}/.gnupg/'
- name: Link files
file:
@ -79,23 +76,23 @@
state: link
force: True
loop:
- src: '{{ files_dir }}/vimrc'
dest: '{{ home }}/.vimrc'
- src: '{{ files_dir }}/i3_config'
dest: '{{ home }}/.config/i3/config'
- src: '{{ files_dir }}/i3status_config'
dest: '{{ home }}/.config/i3status/config'
- src: '{{ files_dir }}/rofi_config'
dest: '{{ home }}/.config/rofi/config'
- src: '{{ files_dir }}/tmux.conf'
dest: '{{ home }}/.tmux.conf'
- src: '{{ files_dir }}/ssh_config'
dest: '{{ home }}/.ssh/config'
- src: '{{ files_dir }}/fish'
dest: '{{ home }}/.config/fish'
- src: '{{ files_dir }}/wallpaper'
dest: '{{ home }}/pictures/wallpaper'
- src: '{{ files_dir }}/gitconfig'
dest: '{{ home }}/.gitconfig'
- src: '{{ files_dir }}/gpg-agent.conf'
dest: '{{ home }}/.gnupg/gpg-agent.conf'
- src: '{{files_dir}}/vimrc'
dest: '{{home}}/.vimrc'
- src: '{{files_dir}}/i3_config'
dest: '{{home}}/.config/i3/config'
- src: '{{files_dir}}/i3status_config'
dest: '{{home}}/.config/i3status/config'
- src: '{{files_dir}}/rofi_config'
dest: '{{home}}/.config/rofi/config'
- src: '{{files_dir}}/tmux.conf'
dest: '{{home}}/.tmux.conf'
- src: '{{files_dir}}/ssh_config'
dest: '{{home}}/.ssh/config'
- src: '{{files_dir}}/fish'
dest: '{{home}}/.config/fish'
- src: '{{files_dir}}/wallpaper'
dest: '{{home}}/pictures/wallpaper'
- src: '{{files_dir}}/gitconfig'
dest: '{{home}}/.gitconfig'
- src: '{{files_dir}}/gpg-agent.conf'
dest: '{{home}}/.gnupg/gpg-agent.conf'