=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:
|
fern-garden.local:
|
||||||
ferngarden-net.local:
|
ferngarden-net.local:
|
||||||
minecraft.local:
|
minecraft.local:
|
||||||
|
weebill.local:
|
||||||
|
|
||||||
lxc:
|
lxc:
|
||||||
hosts:
|
hosts:
|
||||||
|
@ -18,16 +19,18 @@ lxc:
|
||||||
administration.local:
|
administration.local:
|
||||||
|
|
||||||
vm:
|
vm:
|
||||||
children:
|
|
||||||
docker:
|
|
||||||
hosts:
|
hosts:
|
||||||
#media-share.local:
|
#media-share.local:
|
||||||
|
fern-garden.local:
|
||||||
|
ferngarden-net.local:
|
||||||
|
minecraft.local:
|
||||||
|
|
||||||
docker:
|
docker:
|
||||||
hosts:
|
hosts:
|
||||||
fern-garden.local:
|
fern-garden.local:
|
||||||
ferngarden-net.local:
|
ferngarden-net.local:
|
||||||
minecraft.local:
|
minecraft.local:
|
||||||
|
weebill.local:
|
||||||
|
|
||||||
nfs-client:
|
nfs-client:
|
||||||
hosts:
|
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
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- tomhesse.jellyfin
|
- 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
|
- hosts: all
|
||||||
become: true
|
become: true
|
||||||
vars:
|
vars:
|
||||||
|
treesitter: false
|
||||||
|
chezmoi_init_url: ssh://git@10.0.1.116:222/fern/dots.git
|
||||||
resolv_nameservers:
|
resolv_nameservers:
|
||||||
- 10.0.1.1
|
- 10.0.1.1
|
||||||
roles:
|
roles:
|
||||||
- lifeofguenter.resolvconf
|
- lifeofguenter.resolvconf
|
||||||
- hifis.toolkit.unattended_upgrades
|
- hifis.toolkit.unattended_upgrades
|
||||||
|
- hussainweb.chezmoi
|
||||||
|
- gikeymarcia.neovim
|
||||||
tasks:
|
tasks:
|
||||||
- import_tasks: ./tasks/provisioning/debian.yml
|
- import_tasks: ./tasks/provisioning/debian.yml
|
||||||
|
|
||||||
|
|
|
@ -30,15 +30,11 @@
|
||||||
- fish
|
- fish
|
||||||
- git
|
- git
|
||||||
- libnss-mdns
|
- libnss-mdns
|
||||||
- neovim
|
|
||||||
- nnn
|
- nnn
|
||||||
- rsync
|
- rsync
|
||||||
- sudo
|
- sudo
|
||||||
|
- trash-cli
|
||||||
- name: Add fish nnn quitcd function
|
- tmux
|
||||||
ansible.builtin.copy:
|
|
||||||
src: ./quitcd.fish
|
|
||||||
dest: /etc/fish/functions/n.fish
|
|
||||||
|
|
||||||
- name: Make sure avahi-daemon is running
|
- name: Make sure avahi-daemon is running
|
||||||
systemd_service:
|
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