From bea744b734380a1debabc399af25775467e55278 Mon Sep 17 00:00:00 2001 From: nicoo Date: Wed, 16 May 2018 21:33:13 +0200 Subject: [PATCH] roles/openwrt-image: Support configuring mountpoints --- ansible/roles/openwrt-image/tasks/prepare.yml | 11 +++++++++++ ansible/tuer.yml | 6 ++++++ 2 files changed, 17 insertions(+) diff --git a/ansible/roles/openwrt-image/tasks/prepare.yml b/ansible/roles/openwrt-image/tasks/prepare.yml index b697e39..4fcf8c1 100644 --- a/ansible/roles/openwrt-image/tasks/prepare.yml +++ b/ansible/roles/openwrt-image/tasks/prepare.yml @@ -36,6 +36,17 @@ loop_control: label: "{{ item.key }}" +- name: Generate /etc/fstab + mount: + fstab: "{{ openwrt_imgbuilder_files }}/etc/fstab" + state: present + args: + "{{ item }}" + when: openwrt_mounts is defined + with_items: "{{ openwrt_mounts }}" + loop_control: + label: "{{ item.path }}" + - name: Create UCI configuration files template: src: uci.j2 diff --git a/ansible/tuer.yml b/ansible/tuer.yml index 29af04f..1a1e52e 100644 --- a/ansible/tuer.yml +++ b/ansible/tuer.yml @@ -113,3 +113,9 @@ PasswordAuth: off RootPasswordAuth: off Port: 22000 + + openwrt_mounts: + - path: /run + src: none + fstype: tmpfs + opts: nosuid,nodev,noexec,noatime -- 1.7.10.4