From c9e0c5c8d10bd62012cba4057d3989d7c1404205 Mon Sep 17 00:00:00 2001 From: Stefan Junker Date: Tue, 26 Feb 2019 21:53:16 +0100 Subject: [PATCH] ffld/router-wan.lan: initial config --- services/ffld/router-wan.lan/Justfile | 2 ++ services/ffld/router-wan.lan/hosts | 1 + .../ffld/router-wan.lan/openwrt-post-setup.yaml | 13 +++++++++++++ 3 files changed, 16 insertions(+) create mode 100644 services/ffld/router-wan.lan/Justfile create mode 100644 services/ffld/router-wan.lan/hosts create mode 100644 services/ffld/router-wan.lan/openwrt-post-setup.yaml diff --git a/services/ffld/router-wan.lan/Justfile b/services/ffld/router-wan.lan/Justfile new file mode 100644 index 0000000..322435d --- /dev/null +++ b/services/ffld/router-wan.lan/Justfile @@ -0,0 +1,2 @@ +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 new file mode 100644 index 0000000..d31ee02 --- /dev/null +++ b/services/ffld/router-wan.lan/hosts @@ -0,0 +1 @@ +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 new file mode 100644 index 0000000..45d89be --- /dev/null +++ b/services/ffld/router-wan.lan/openwrt-post-setup.yaml @@ -0,0 +1,13 @@ +# * 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