svc/home-ch/router-wan.lan: add post-setup script recipe
This commit is contained in:
parent
8ce1ea2e9d
commit
e3e0859ee6
4 changed files with 8 additions and 16 deletions
|
@ -1,2 +0,0 @@
|
|||
post-setup:
|
||||
ansible-playbook -i hosts openwrt-post-setup.yaml --verbose
|
|
@ -1 +0,0 @@
|
|||
router-wan.lan ansible_ssh_user=root
|
|
@ -1,13 +0,0 @@
|
|||
# * https://openwrt.org/docs/guide-user/services/nas/usb-storage-samba-webinterface
|
||||
|
||||
- hosts: router-wan.lan
|
||||
gather_facts: no
|
||||
tasks:
|
||||
- name: udpate pkg database
|
||||
raw: opkg update
|
||||
- name: install packages
|
||||
raw: opkg install {{ item }}
|
||||
loop:
|
||||
- luci-ssl
|
||||
- luci-app-samba samba36-server
|
||||
- block-mount blockd kmod-fs-vmod kmod-fs-vfat kmod-usb-storage usbutils
|
8
services/home-ch/router-wan.lan/Justfile
Normal file
8
services/home-ch/router-wan.lan/Justfile
Normal file
|
@ -0,0 +1,8 @@
|
|||
_run_ssh_cmd cmd:
|
||||
ssh root@router-wan.lan "{{cmd}}"
|
||||
|
||||
post-setup:
|
||||
just -v _run_ssh_cmd "opkg update"
|
||||
just -v _run_ssh_cmd "opkg install luci-ssl"
|
||||
just -v _run_ssh_cmd "opkg install luci-app-samba samba36-server"
|
||||
just -v _run_ssh_cmd "opkg install block-mount blockd kmod-fs-vfat kmod-usb-storage usbutils"
|
Loading…
Add table
Add a link
Reference in a new issue