diff --git a/services/ffld/router-wan.lan/Justfile b/services/ffld/router-wan.lan/Justfile deleted file mode 100644 index 322435d..0000000 --- a/services/ffld/router-wan.lan/Justfile +++ /dev/null @@ -1,2 +0,0 @@ -post-setup: - ansible-playbook -i hosts openwrt-post-setup.yaml --verbose diff --git a/services/ffld/router-wan.lan/hosts b/services/ffld/router-wan.lan/hosts deleted file mode 100644 index d31ee02..0000000 --- a/services/ffld/router-wan.lan/hosts +++ /dev/null @@ -1 +0,0 @@ -router-wan.lan ansible_ssh_user=root diff --git a/services/ffld/router-wan.lan/openwrt-post-setup.yaml b/services/ffld/router-wan.lan/openwrt-post-setup.yaml deleted file mode 100644 index 45d89be..0000000 --- a/services/ffld/router-wan.lan/openwrt-post-setup.yaml +++ /dev/null @@ -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 diff --git a/services/home-ch/router-wan.lan/Justfile b/services/home-ch/router-wan.lan/Justfile new file mode 100644 index 0000000..79a278a --- /dev/null +++ b/services/home-ch/router-wan.lan/Justfile @@ -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"