Compare commits
5 Commits
cc1a43322e
...
86e438b6b8
Author | SHA1 | Date |
---|---|---|
Ricard Illa | 86e438b6b8 | |
Ricard Illa | d78d91e83f | |
Ricard Illa | 657c36dd1b | |
Ricard Illa | 80484d7d4d | |
Ricard Illa | d2b5fd0488 |
7
deploy
7
deploy
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
ansible-playbook \
|
||||
--inventory hosts.yml \
|
||||
--vault-password-file get_password.sh \
|
||||
"$@" \
|
||||
deploy.yml
|
|
@ -9,10 +9,11 @@
|
|||
in {
|
||||
devShell = pkgs.mkShell {
|
||||
nativeBuildInputs = [
|
||||
pkgs.bashInteractive
|
||||
pkgs.ansible
|
||||
pkgs.ansible-lint
|
||||
pkgs.ansible-doctor
|
||||
pkgs.ansible-lint
|
||||
pkgs.bashInteractive
|
||||
pkgs.just
|
||||
];
|
||||
buildInputs = [ ];
|
||||
};
|
||||
|
|
|
@ -23,3 +23,4 @@ volume /mnt/btr_pool
|
|||
subvolume home
|
||||
subvolume rancher_config
|
||||
subvolume backups
|
||||
subvolume configs
|
||||
|
|
|
@ -157,6 +157,12 @@ all:
|
|||
opts: "subvol=certs,noatime,compress=zstd"
|
||||
passno: "0"
|
||||
|
||||
- src: "/dev/mapper/disk0"
|
||||
path: "/srv/configs"
|
||||
fstype: "btrfs"
|
||||
opts: "subvol=configs,noatime,compress=zstd"
|
||||
passno: "0"
|
||||
|
||||
- src: "/mnt/certs/acme"
|
||||
path: "/srv/nfs/k8s/acme"
|
||||
fstype: "none"
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
#!/usr/bin/env -S just --justfile
|
||||
|
||||
deploy HOST *ARGS:
|
||||
ansible-playbook \
|
||||
--inventory hosts.yml \
|
||||
--vault-password-file get_password.sh \
|
||||
--limit {{HOST}} \
|
||||
{{ARGS}} \
|
||||
deploy.yml
|
Binary file not shown.
|
@ -2,14 +2,15 @@
|
|||
- name: quality of life packages
|
||||
apk:
|
||||
name:
|
||||
- curl
|
||||
- htop
|
||||
- man-pages
|
||||
- mandoc
|
||||
- mksh # I want something somewhat nicer thant busybox ash
|
||||
- mosh
|
||||
- neovim
|
||||
- ripgrep
|
||||
- tmux
|
||||
- mandoc
|
||||
- man-pages
|
||||
when: ansible_distribution == "Alpine"
|
||||
|
||||
- name: install python3
|
||||
|
|
Loading…
Reference in New Issue