feat: create just command for only syncing configs
This commit is contained in:
parent
cbb3f34dfb
commit
016b5a591a
1040
ansible.cfg
Normal file
1040
ansible.cfg
Normal file
File diff suppressed because it is too large
Load Diff
24
justfile
24
justfile
@ -3,15 +3,23 @@ allTags := "nvim,xmonad,git,scripts"
|
||||
default:
|
||||
just --list
|
||||
|
||||
sync-qwerty tags=allTags:
|
||||
ANSIBLE_LOCALHOST_WARNING=false ansible-playbook site.yml -K -t "pc,qwerty,{{tags}}"
|
||||
setup-qwerty tags=allTags:
|
||||
ansible-playbook site.yml -K -t "pc,qwerty,{{tags}}"
|
||||
|
||||
sync-x220 tags=allTags:
|
||||
ANSIBLE_LOCALHOST_WARNING=false ansible-playbook site.yml -K -t "pc,x220,{{tags}}"
|
||||
config-qwerty tags=allTags:
|
||||
ansible-playbook site.yml -t "pc,qwerty,{{tags}}" --skip-tags "setup"
|
||||
|
||||
sync-t460p tags=allTags:
|
||||
ANSIBLE_LOCALHOST_WARNING=false ansible-playbook site.yml -K -t "pc,t460p,{{tags}}"
|
||||
setup-x220 tags=allTags:
|
||||
ansible-playbook site.yml -K -t "pc,x220,{{tags}}"
|
||||
|
||||
config-x220 tags=allTags:
|
||||
ansible-playbook site.yml -t "pc,x220,{{tags}}" --skip-tags "setup"
|
||||
|
||||
setup-t460p tags=allTags:
|
||||
ansible-playbook site.yml -K -t "pc,t460p,{{tags}}"
|
||||
|
||||
config-t460p tags=allTags:
|
||||
ansible-playbook site.yml -t "pc,t460p,{{tags}}" --skip-tags "setup"
|
||||
|
||||
sync-server tags=allTags:
|
||||
ANSIBLE_LOCALHOST_WARNING=false ansible-playbook site.yml -K -t "server,{{tags}}"
|
||||
|
||||
ansible-playbook site.yml -K -t "server,{{tags}}"
|
||||
|
@ -7,14 +7,14 @@
|
||||
- git
|
||||
- xclip
|
||||
state: present
|
||||
tags: always
|
||||
tags: [always, setup]
|
||||
|
||||
- name: Create a config directory if it doesn't exist
|
||||
ansible.builtin.file:
|
||||
path: ~/.config/nvim
|
||||
state: directory
|
||||
mode: '0755'
|
||||
tags: always
|
||||
tags: [always, setup]
|
||||
|
||||
- name: Server specific nvim tasks
|
||||
tags: server
|
||||
@ -41,6 +41,7 @@
|
||||
mode: '0755'
|
||||
|
||||
- name: Install language servers
|
||||
tags: setup
|
||||
become: true
|
||||
ansible.builtin.package:
|
||||
name:
|
||||
|
@ -18,7 +18,7 @@
|
||||
- unrar
|
||||
state: present
|
||||
become: true
|
||||
tags: pc
|
||||
tags: [pc, setup]
|
||||
|
||||
- name: Install t460p specifig packages
|
||||
ansible.builtin.package:
|
||||
@ -27,7 +27,7 @@
|
||||
- pamixer
|
||||
- brightnessctl
|
||||
state: present
|
||||
tags: t460p
|
||||
tags: [t460p, setup]
|
||||
|
||||
# - name: Build and install custom st, dmenu and slock
|
||||
# tags: pc
|
||||
@ -42,7 +42,7 @@
|
||||
- ~/.config/xmobar
|
||||
- ~/.config/dunst
|
||||
- ~/.config/cmus
|
||||
tags: pc
|
||||
tags: [pc, setup]
|
||||
|
||||
- name: Copy over alacritty config
|
||||
ansible.builtin.copy:
|
||||
@ -78,14 +78,14 @@
|
||||
path: "~/.config/nnn"
|
||||
state: directory
|
||||
mode: '0755'
|
||||
tags: pc
|
||||
tags: [pc, setup]
|
||||
|
||||
- name: Clone nnn repository into temp
|
||||
ansible.builtin.git:
|
||||
repo: https://github.com/jarun/nnn.git
|
||||
force: true
|
||||
dest: /tmp/nnn
|
||||
tags: pc
|
||||
tags: [pc, setup]
|
||||
|
||||
- name: Move nnn plugins into right place
|
||||
ansible.builtin.copy:
|
||||
@ -93,7 +93,7 @@
|
||||
src: /tmp/nnn/plugins
|
||||
dest: ~/.config/nnn/plugins
|
||||
mode: '0755'
|
||||
tags: pc
|
||||
tags: [pc, setup]
|
||||
|
||||
- name: Copy over T460p config files
|
||||
ansible.builtin.copy:
|
||||
@ -122,3 +122,4 @@
|
||||
name: lightdm
|
||||
state: started
|
||||
enabled: true
|
||||
tags: [pc, setup]
|
||||
|
Loading…
Reference in New Issue
Block a user