From: nicoo Date: Wed, 16 May 2018 19:33:13 +0000 (+0200) Subject: roles/openwrt-image: Support configuring mountpoints X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=bea744b734380a1debabc399af25775467e55278;p=noc.git roles/openwrt-image: Support configuring mountpoints --- 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