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