=3
This commit is contained in:
parent
75cacd3182
commit
4be4c0a719
6 changed files with 75 additions and 8 deletions
|
@ -8,6 +8,7 @@ ungrouped:
|
|||
fern-garden.local:
|
||||
ferngarden-net.local:
|
||||
minecraft.local:
|
||||
weebill.local:
|
||||
|
||||
lxc:
|
||||
hosts:
|
||||
|
@ -18,16 +19,18 @@ lxc:
|
|||
administration.local:
|
||||
|
||||
vm:
|
||||
children:
|
||||
docker:
|
||||
hosts:
|
||||
#media-share.local:
|
||||
fern-garden.local:
|
||||
ferngarden-net.local:
|
||||
minecraft.local:
|
||||
|
||||
docker:
|
||||
hosts:
|
||||
fern-garden.local:
|
||||
ferngarden-net.local:
|
||||
minecraft.local:
|
||||
weebill.local:
|
||||
|
||||
nfs-client:
|
||||
hosts:
|
||||
|
|
10
inventory/requirements.yml
Normal file
10
inventory/requirements.yml
Normal file
|
@ -0,0 +1,10 @@
|
|||
roles:
|
||||
- name: lifeofguenter.resolvconf
|
||||
- name: hussainweb.chezmoi
|
||||
- name: gikeymarcia.neovim
|
||||
- name: geerlingguy.docker
|
||||
- name: tomhesse.jellyfin
|
||||
- name: geerlingguy.nfs
|
||||
|
||||
collections:
|
||||
- name: hifis.toolkit
|
|
@ -3,3 +3,24 @@
|
|||
become: true
|
||||
roles:
|
||||
- tomhesse.jellyfin
|
||||
|
||||
- hosts: all
|
||||
become: true
|
||||
vars:
|
||||
neovim_prefix_dir: "/usr/local"
|
||||
neovim_src_dir: "{{ neovim_prefix_dir }}/src/neovim"
|
||||
neovim_binary_dir: "{{ neovim_prefix_dir }}/bin"
|
||||
tasks:
|
||||
- name: Build neovim
|
||||
import_tasks: ./tasks/software/neovim.yml
|
||||
|
||||
- hosts: weebill.local
|
||||
become: true
|
||||
tasks:
|
||||
- name: Install Webone dependencies
|
||||
ansible.builtin.apt:
|
||||
deb: https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb
|
||||
- name: Install Webone
|
||||
ansible.builtin.apt:
|
||||
update_cache: yes
|
||||
deb: https://github.com/atauenis/webone/releases/download/v0.17.4/webone.0.17.4.linux-arm64.deb
|
||||
|
|
|
@ -2,11 +2,15 @@
|
|||
- hosts: all
|
||||
become: true
|
||||
vars:
|
||||
treesitter: false
|
||||
chezmoi_init_url: ssh://git@10.0.1.116:222/fern/dots.git
|
||||
resolv_nameservers:
|
||||
- 10.0.1.1
|
||||
roles:
|
||||
- lifeofguenter.resolvconf
|
||||
- hifis.toolkit.unattended_upgrades
|
||||
- hussainweb.chezmoi
|
||||
- gikeymarcia.neovim
|
||||
tasks:
|
||||
- import_tasks: ./tasks/provisioning/debian.yml
|
||||
|
||||
|
|
|
@ -30,15 +30,11 @@
|
|||
- fish
|
||||
- git
|
||||
- libnss-mdns
|
||||
- neovim
|
||||
- nnn
|
||||
- rsync
|
||||
- sudo
|
||||
|
||||
- name: Add fish nnn quitcd function
|
||||
ansible.builtin.copy:
|
||||
src: ./quitcd.fish
|
||||
dest: /etc/fish/functions/n.fish
|
||||
- trash-cli
|
||||
- tmux
|
||||
|
||||
- name: Make sure avahi-daemon is running
|
||||
systemd_service:
|
||||
|
|
33
plays/tasks/software/neovim.yml
Normal file
33
plays/tasks/software/neovim.yml
Normal file
|
@ -0,0 +1,33 @@
|
|||
- name: Install dependencies
|
||||
apt:
|
||||
pkg:
|
||||
- ninja-build
|
||||
- gettext
|
||||
- cmake
|
||||
- unzip
|
||||
- curl
|
||||
|
||||
- name: Clone neovim repository
|
||||
ansible.builtin.git:
|
||||
repo: "https://github.com/neovim/neovim"
|
||||
dest: "{{ neovim_src_dir }}"
|
||||
version: stable
|
||||
clone: yes
|
||||
update: yes
|
||||
force: yes
|
||||
|
||||
- name: Check if recently built
|
||||
ansible.builtin.find:
|
||||
paths: "{{ neovim_binary_dir }}"
|
||||
patterns: nvim
|
||||
age: 1d
|
||||
register: days
|
||||
|
||||
- name: Build neovim
|
||||
when: days.matched != '0'
|
||||
community.general.make:
|
||||
chdir: "{{ neovim_src_dir }}"
|
||||
params:
|
||||
CMAKE_BUILD_TYPE: Release
|
||||
CMAKE_INSTALL_PREFIX: "{{ neovim_prefix_dir }}"
|
||||
target: install
|
Loading…
Add table
Add a link
Reference in a new issue