svc/home-ch/router-wan.lan: add post-setup script recipe

This commit is contained in:
steveej 2019-07-17 09:47:27 +02:00
parent 8ce1ea2e9d
commit e3e0859ee6
4 changed files with 8 additions and 16 deletions

View file

@ -1,2 +0,0 @@
post-setup:
ansible-playbook -i hosts openwrt-post-setup.yaml --verbose

View file

@ -1 +0,0 @@
router-wan.lan ansible_ssh_user=root

View file

@ -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

View 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"