mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
commit
ff89b1d58b
5 changed files with 42 additions and 19 deletions
|
@ -20,13 +20,13 @@ calibre_sample_book: "Metamorphosis-jackson.epub"
|
|||
calibre_src_url: "https://raw.githubusercontent.com/kovidgoyal/calibre/master/setup/linux-installer.py"
|
||||
|
||||
calibre_deb_url: "{{ iiab_download_url }}" # http://download.iiab.io/packages
|
||||
# Above URL must offer both .deb files below, corresponding with variable
|
||||
# value(s) further below: (for scripts/calibre-install-pinned-rpi.sh to run)
|
||||
# - calibre_3.32.0+dfsg-1_all.deb (25M, 2018-09-28)
|
||||
# - calibre-bin_3.32.0+dfsg-1_armhf.deb (707K, 2018-10-08) WORKS DESPITE BEING
|
||||
# PUBLISHED 11+ HRS BEFORE NON-WORKING calibre-bin_3.32.0+dfsg-1+b1_armhf.deb
|
||||
calibre_deb_pin_version: 3.32.0+dfsg-1
|
||||
calibre_bin_deb_pin_version: "{{ calibre_deb_pin_version }}"
|
||||
# Above URL must offer both .deb files below: (for scripts/calibre-install-pinned-rpi.sh to run)
|
||||
calibre_deb_pin_version: 3.32.0+dfsg-1 # for calibre_3.32.0+dfsg-1_all.deb (25M, 2018-09-28)
|
||||
#calibre_bin_deb_pin_version: "{{ calibre_deb_pin_version }}" # for calibre-bin_3.32.0+dfsg-1_armhf.deb (707K, 2018-10-08) HAD WORKED 2018-10-08 BUT NO LONGER on 2018-10-10:
|
||||
# The following packages have unmet dependencies:
|
||||
# calibre-bin : Depends: libpodofo0.9.5 (>= 0.9.5-7) but it is not installable
|
||||
# E: Unable to correct problems, you have held broken packages.
|
||||
calibre_bin_deb_pin_version: 3.32.0+dfsg-1+b1 # for calibre-bin_3.32.0+dfsg-1+b1_armhf.deb (706K, 2018-10-08) SEEMS TO WORK AS OF 2018-10-10, THOUGH MYSTERIOUSLY IT HAD NOT WORKED ON 2018-10-08
|
||||
|
||||
# USE TO TEST debs.yml (RASPBIAN APPROACH!) ON DEBIAN 9.X: (now handled by calibre_via_debs in /opt/iiab/iiab/vars/*)
|
||||
#calibre_debs_on_debian: True
|
||||
|
|
|
@ -64,9 +64,9 @@ services_externally_visible: False
|
|||
|
||||
# DNS / name resolution
|
||||
dhcpd_install: True
|
||||
dhcpd_enabled: True
|
||||
#dhcp_service: ???? # Set in individual OS's /opt/iiab/iiab/vars/<OS>.yml for use in roles/network/tasks/dhcpd.yml
|
||||
dhcp_service2: disabled # Proposed by @jvonau to solve #1184 -> PR #1185 during transition from named to dnsmasq, as required by roles/network/tasks/computed_services.yml
|
||||
dhcpd_enabled: False
|
||||
#dhcp_service: ???? # Set in individual OS's /opt/iiab/iiab/vars/<OS>.yml for use in roles/network/tasks/dhcpd.yml
|
||||
#dhcp_service2: "dhcpd disabled" # Moved to roles/network/tasks/computed_services.yml as community transitions from named/BIND to dnsmasq (PR #1202)
|
||||
named_install: True
|
||||
named_enabled: False
|
||||
dnsmasq_enabled: True
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
set_fact:
|
||||
named_enabled: True
|
||||
dhcpd_enabled: False
|
||||
dhcp_service2: "dhcpd"
|
||||
dhcp_service2: "dhcpd disabled"
|
||||
when: not dnsmasq_enabled and iiab_network_mode == "Appliance"
|
||||
|
||||
- name: LAN configured - non-dnsmasq
|
||||
|
@ -37,8 +37,17 @@
|
|||
set_fact:
|
||||
named_enabled: False
|
||||
dhcpd_enabled: False
|
||||
dnsmasq_enabled: True
|
||||
dhcp_service2: "dnsmasq"
|
||||
when: dnsmasq_install and dnsmasq_enabled and iiab_network_mode != "Appliance"
|
||||
when: dnsmasq_install and iiab_network_mode != "Appliance"
|
||||
|
||||
- name: LAN not configured - dnsmasq
|
||||
set_fact:
|
||||
named_enabled: False
|
||||
dhcpd_enabled: False
|
||||
dnsmasq_enabled: False
|
||||
dhcp_service2: "dnsmasq disabled"
|
||||
when: dnsmasq_install and iiab_network_mode == "Appliance"
|
||||
|
||||
- name: Add 'network' variable values (from computed_services.yml) to /etc/iiab/iiab.ini
|
||||
ini_file:
|
||||
|
@ -47,11 +56,21 @@
|
|||
option: "{{ item.option }}"
|
||||
value: "{{ item.value }}"
|
||||
with_items:
|
||||
- option: iiab_network_mode_applied
|
||||
- option: dansguardian_enabled
|
||||
value: "{{ dansguardian_enabled }}"
|
||||
- option: squid_enabled
|
||||
value: "{{ squid_enabled }}"
|
||||
- option: wondershaper_enabled
|
||||
value: "{{ wondershaper_enabled }}"
|
||||
- option: iiab_network_mode(applied)
|
||||
value: "{{ iiab_network_mode }}"
|
||||
- option: dhcpd_enabled
|
||||
value: "{{ dhcpd_enabled }}"
|
||||
- option: dhcp_service2
|
||||
value: "{{ dhcp_service2 }}"
|
||||
- option: named_enabled
|
||||
value: "{{ named_enabled }}"
|
||||
- option: dnsmasq_enabled
|
||||
value: "{{ dnsmasq_enabled }}"
|
||||
- option: no_net_restart
|
||||
value: "{{ no_net_restart }}"
|
||||
# - option: no_net_restart
|
||||
# value: "{{ no_net_restart }}"
|
||||
|
|
|
@ -20,19 +20,19 @@
|
|||
dest: /etc/dhcpcd.conf
|
||||
src: network/dhcpcd.conf.j2
|
||||
|
||||
- name: New raspbian requires country code -- check for it
|
||||
- name: New Raspbian requires country code -- check for it
|
||||
shell: grep country /etc/wpa_supplicant/wpa_supplicant.conf
|
||||
register: country_code
|
||||
ignore_errors: True
|
||||
|
||||
- name: Put a country code if it does not exist
|
||||
- name: Put country code ({{ host_country_code }}) in /etc/wpa_supplicant/wpa_supplicant.conf if nec
|
||||
lineinfile:
|
||||
dest: /etc/wpa_supplicant/wpa_supplicant.conf
|
||||
path: /etc/wpa_supplicant/wpa_supplicant.conf
|
||||
regexp: "^country.*"
|
||||
line: country={{ host_country_code }}
|
||||
when: country_code is defined and country_code.stdout == ""
|
||||
|
||||
- name: Enable the wifi with rfkill
|
||||
- name: Enable the WiFi with rfkill
|
||||
shell: rfkill unblock 0
|
||||
ignore_errors: True
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
activity-server
|
||||
ajenti
|
||||
authserver
|
||||
debian_schooltool
|
||||
|
@ -6,6 +7,9 @@ ejabberd_xs
|
|||
idmgr
|
||||
moodle-1.9
|
||||
nodogsplash
|
||||
owncloud
|
||||
pathagar
|
||||
rachel
|
||||
schooltool
|
||||
sugar-stats
|
||||
xovis
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue