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:
|
default:
|
||||||
just --list
|
just --list
|
||||||
|
|
||||||
sync-qwerty tags=allTags:
|
setup-qwerty tags=allTags:
|
||||||
ANSIBLE_LOCALHOST_WARNING=false ansible-playbook site.yml -K -t "pc,qwerty,{{tags}}"
|
ansible-playbook site.yml -K -t "pc,qwerty,{{tags}}"
|
||||||
|
|
||||||
sync-x220 tags=allTags:
|
config-qwerty tags=allTags:
|
||||||
ANSIBLE_LOCALHOST_WARNING=false ansible-playbook site.yml -K -t "pc,x220,{{tags}}"
|
ansible-playbook site.yml -t "pc,qwerty,{{tags}}" --skip-tags "setup"
|
||||||
|
|
||||||
sync-t460p tags=allTags:
|
setup-x220 tags=allTags:
|
||||||
ANSIBLE_LOCALHOST_WARNING=false ansible-playbook site.yml -K -t "pc,t460p,{{tags}}"
|
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:
|
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
|
- git
|
||||||
- xclip
|
- xclip
|
||||||
state: present
|
state: present
|
||||||
tags: always
|
tags: [always, setup]
|
||||||
|
|
||||||
- name: Create a config directory if it doesn't exist
|
- name: Create a config directory if it doesn't exist
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: ~/.config/nvim
|
path: ~/.config/nvim
|
||||||
state: directory
|
state: directory
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
tags: always
|
tags: [always, setup]
|
||||||
|
|
||||||
- name: Server specific nvim tasks
|
- name: Server specific nvim tasks
|
||||||
tags: server
|
tags: server
|
||||||
@ -41,6 +41,7 @@
|
|||||||
mode: '0755'
|
mode: '0755'
|
||||||
|
|
||||||
- name: Install language servers
|
- name: Install language servers
|
||||||
|
tags: setup
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.package:
|
ansible.builtin.package:
|
||||||
name:
|
name:
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
- unrar
|
- unrar
|
||||||
state: present
|
state: present
|
||||||
become: true
|
become: true
|
||||||
tags: pc
|
tags: [pc, setup]
|
||||||
|
|
||||||
- name: Install t460p specifig packages
|
- name: Install t460p specifig packages
|
||||||
ansible.builtin.package:
|
ansible.builtin.package:
|
||||||
@ -27,7 +27,7 @@
|
|||||||
- pamixer
|
- pamixer
|
||||||
- brightnessctl
|
- brightnessctl
|
||||||
state: present
|
state: present
|
||||||
tags: t460p
|
tags: [t460p, setup]
|
||||||
|
|
||||||
# - name: Build and install custom st, dmenu and slock
|
# - name: Build and install custom st, dmenu and slock
|
||||||
# tags: pc
|
# tags: pc
|
||||||
@ -42,7 +42,7 @@
|
|||||||
- ~/.config/xmobar
|
- ~/.config/xmobar
|
||||||
- ~/.config/dunst
|
- ~/.config/dunst
|
||||||
- ~/.config/cmus
|
- ~/.config/cmus
|
||||||
tags: pc
|
tags: [pc, setup]
|
||||||
|
|
||||||
- name: Copy over alacritty config
|
- name: Copy over alacritty config
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
@ -78,14 +78,14 @@
|
|||||||
path: "~/.config/nnn"
|
path: "~/.config/nnn"
|
||||||
state: directory
|
state: directory
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
tags: pc
|
tags: [pc, setup]
|
||||||
|
|
||||||
- name: Clone nnn repository into temp
|
- name: Clone nnn repository into temp
|
||||||
ansible.builtin.git:
|
ansible.builtin.git:
|
||||||
repo: https://github.com/jarun/nnn.git
|
repo: https://github.com/jarun/nnn.git
|
||||||
force: true
|
force: true
|
||||||
dest: /tmp/nnn
|
dest: /tmp/nnn
|
||||||
tags: pc
|
tags: [pc, setup]
|
||||||
|
|
||||||
- name: Move nnn plugins into right place
|
- name: Move nnn plugins into right place
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
@ -93,7 +93,7 @@
|
|||||||
src: /tmp/nnn/plugins
|
src: /tmp/nnn/plugins
|
||||||
dest: ~/.config/nnn/plugins
|
dest: ~/.config/nnn/plugins
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
tags: pc
|
tags: [pc, setup]
|
||||||
|
|
||||||
- name: Copy over T460p config files
|
- name: Copy over T460p config files
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
@ -122,3 +122,4 @@
|
|||||||
name: lightdm
|
name: lightdm
|
||||||
state: started
|
state: started
|
||||||
enabled: true
|
enabled: true
|
||||||
|
tags: [pc, setup]
|
||||||
|
Loading…
Reference in New Issue
Block a user