mirror of
https://github.com/iiab/iiab.git
synced 2025-02-12 19:22:24 +00:00
commit
47e6907bf4
3 changed files with 10 additions and 5 deletions
|
@ -42,7 +42,9 @@
|
|||
when: is_redhat
|
||||
|
||||
- name: Download usbmount -- not in debian-9
|
||||
command: wget {{ iiab_download_url }}/usbmount_0.0.14.1_all.deb -P {{ downloads_dir }}
|
||||
get_url:
|
||||
url: "{{ iiab_download_url }}/usbmount_0.0.14.1_all.deb"
|
||||
dest: "{{ downloads_dir }}"
|
||||
when: is_debian_9
|
||||
|
||||
- name: Install usbmount for debian-9
|
||||
|
|
|
@ -71,8 +71,11 @@
|
|||
when: kiwix_src_bin_only and kiwix_first_pass
|
||||
|
||||
# workaround because unarchive does not set ownership properly
|
||||
- name: "Set ownership: 'chown -R root:root /opt/iiab/kiwix'"
|
||||
command: "chown -R root:root {{ iiab_base }}/kiwix"
|
||||
- name: "Set ownership as if: 'chown -R root:root /opt/iiab/kiwix'"
|
||||
file: path="{{ iiab_base }}/kiwix"
|
||||
owner=root
|
||||
group=root
|
||||
recurse=yes
|
||||
|
||||
# workaround because kiwix-serve does not stay running
|
||||
- name: Make a crontab entry to restart kiwix-serve at 4AM (debuntu)
|
||||
|
|
|
@ -144,12 +144,12 @@
|
|||
- name: 2 or more devices on the LAN - use bridging
|
||||
set_fact:
|
||||
iiab_lan_iface: br0
|
||||
when: num_lan_interfaces >= 2 and not is_rpi
|
||||
when: num_lan_interfaces|int >= 2 and not is_rpi
|
||||
|
||||
- name: For Debian, always use bridging - except RPi
|
||||
set_fact:
|
||||
iiab_lan_iface: br0
|
||||
when: num_lan_interfaces >= 1 and is_debuntu and not is_rpi
|
||||
when: num_lan_interfaces|int >= 1 and is_debuntu and not is_rpi
|
||||
|
||||
- name: WiFi is on the LAN - use bridging - except RPi
|
||||
set_fact:
|
||||
|
|
Loading…
Reference in a new issue