setup apk role

main
Ricard Illa 2023-01-03 16:57:57 +01:00
parent 32da90018e
commit 86cb929b0a
3 changed files with 29 additions and 8 deletions

View File

@ -51,6 +51,13 @@
- lbu_conf
tags: lbu_conf
- name: setup_apkcache
hosts:
- suricata
become: true
roles:
- apk_cache
- name: common roles
hosts:
- caladan
@ -105,6 +112,14 @@
- podman
tags: podman
- name: k3s
hosts:
- suricata
become: true
roles:
- k3s
tags: k3s
- name: wifi setup
hosts: snitch
become: true
@ -126,14 +141,6 @@
roles:
- tinyproxy
#- name: k3s
# hosts:
# - suricata
# become: true
# roles:
# - k3s
# tags: k3s
- name: wireguard
hosts:
- caladan

View File

@ -38,6 +38,8 @@ all:
lbu_media: mmcblk0p2
lbu_backupdir: /media/mmcblk0p2
apk_cache_dir: /media/mmcblk0p2/cache
k3s_args:
- --secrets-encryption

View File

@ -0,0 +1,12 @@
---
- name: make sure apk_cache_dir exists
file:
path: "{{ apk_cache_dir }}"
state: directory
- name: link the apk cache dir
file:
state: link
src: "{{ apk_cache_dir }}"
dest: /etc/apk/cache