mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
'when: X' -> 'when: X | bool' for Ansibl 2.8
This commit is contained in:
parent
176abdd2f5
commit
3a1ccf3638
89 changed files with 248 additions and 248 deletions
|
@ -109,7 +109,7 @@
|
||||||
# set_fact:
|
# set_fact:
|
||||||
# mongodb_install: True
|
# mongodb_install: True
|
||||||
# mongodb_enabled: True
|
# mongodb_enabled: True
|
||||||
# when: sugarizer_enabled
|
# when: sugarizer_enabled | bool
|
||||||
|
|
||||||
# There might be other db's
|
# There might be other db's
|
||||||
- name: Turn on both vars for PostgreSQL if moodle_enabled or pathagar_enabled
|
- name: Turn on both vars for PostgreSQL if moodle_enabled or pathagar_enabled
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
- uuid-runtime
|
- uuid-runtime
|
||||||
- sudo
|
- sudo
|
||||||
state: present
|
state: present
|
||||||
when: is_debuntu
|
when: is_debuntu | bool
|
||||||
|
|
||||||
- name: Does /etc/iiab/uuid file exist?
|
- name: Does /etc/iiab/uuid file exist?
|
||||||
stat:
|
stat:
|
||||||
|
@ -77,7 +77,7 @@
|
||||||
- name: OPENVPN
|
- name: OPENVPN
|
||||||
include_role:
|
include_role:
|
||||||
name: openvpn
|
name: openvpn
|
||||||
when: openvpn_install
|
when: openvpn_install | bool
|
||||||
tags: openvpn
|
tags: openvpn
|
||||||
|
|
||||||
# for rpi, without rtc, we need time as soon as possible
|
# for rpi, without rtc, we need time as soon as possible
|
||||||
|
@ -106,7 +106,7 @@
|
||||||
name: apparmor
|
name: apparmor
|
||||||
enabled: False
|
enabled: False
|
||||||
state: stopped
|
state: stopped
|
||||||
when: is_ubuntu
|
when: is_ubuntu | bool
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
- name: Disable SELinux on next boot (OS's other than debuntu)
|
- name: Disable SELinux on next boot (OS's other than debuntu)
|
||||||
|
|
|
@ -37,14 +37,14 @@
|
||||||
path: /etc/dphys-swapfile
|
path: /etc/dphys-swapfile
|
||||||
regexp: "^CONF_SWAPSIZE"
|
regexp: "^CONF_SWAPSIZE"
|
||||||
line: CONF_SWAPSIZE=500
|
line: CONF_SWAPSIZE=500
|
||||||
when: is_debuntu
|
when: is_debuntu | bool
|
||||||
|
|
||||||
- name: Restart swap service "dphys-swapfile" (debuntu)
|
- name: Restart swap service "dphys-swapfile" (debuntu)
|
||||||
#command: /etc/init.d/dphys-swapfile restart
|
#command: /etc/init.d/dphys-swapfile restart
|
||||||
service: # A rare/legacy service that is NOT systemd
|
service: # A rare/legacy service that is NOT systemd
|
||||||
name: dphys-swapfile
|
name: dphys-swapfile
|
||||||
state: restarted
|
state: restarted
|
||||||
when: is_debuntu
|
when: is_debuntu | bool
|
||||||
|
|
||||||
- name: Install RPi rootfs resizing (iiab-rpi-max-rootfs.sh) and its systemd service (iiab-rpi-root-resize.service), from templates
|
- name: Install RPi rootfs resizing (iiab-rpi-max-rootfs.sh) and its systemd service (iiab-rpi-root-resize.service), from templates
|
||||||
template:
|
template:
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
package:
|
package:
|
||||||
name: iptables-persistent
|
name: iptables-persistent
|
||||||
state: present
|
state: present
|
||||||
when: is_debuntu
|
when: is_debuntu | bool
|
||||||
tags:
|
tags:
|
||||||
- download
|
- download
|
||||||
|
|
||||||
|
@ -60,4 +60,4 @@
|
||||||
src: iptables
|
src: iptables
|
||||||
dest: /etc/network/if-pre-up.d/iptables
|
dest: /etc/network/if-pre-up.d/iptables
|
||||||
mode: 0755
|
mode: 0755
|
||||||
when: is_debuntu
|
when: is_debuntu | bool
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
- xml-common
|
- xml-common
|
||||||
- yum-utils
|
- yum-utils
|
||||||
state: present
|
state: present
|
||||||
when: is_redhat
|
when: is_redhat | bool
|
||||||
|
|
||||||
- name: Install {{ iiab_download_url }}/usbmount_0.0.14.1_all.deb, missing from Debian (debian-9 or debian-10, if NOT rpi)
|
- name: Install {{ iiab_download_url }}/usbmount_0.0.14.1_all.deb, missing from Debian (debian-9 or debian-10, if NOT rpi)
|
||||||
apt:
|
apt:
|
||||||
|
@ -31,7 +31,7 @@
|
||||||
- libnss-mdns
|
- libnss-mdns
|
||||||
- wpasupplicant
|
- wpasupplicant
|
||||||
state: present
|
state: present
|
||||||
when: is_debuntu
|
when: is_debuntu | bool
|
||||||
|
|
||||||
- name: "Install 22 common packages: acpid, bridge-utils, bzip2, curl, gawk, hostapd, htop, i2c-tools, logrotate, make, mlocate, netmask, net-tools, ntfs-3g, pandoc, rsync, sudo, tar, unzip, usbmount, usbutils, wget"
|
- name: "Install 22 common packages: acpid, bridge-utils, bzip2, curl, gawk, hostapd, htop, i2c-tools, logrotate, make, mlocate, netmask, net-tools, ntfs-3g, pandoc, rsync, sudo, tar, unzip, usbmount, usbutils, wget"
|
||||||
package:
|
package:
|
||||||
|
|
|
@ -13,18 +13,18 @@
|
||||||
- name: get the createrepo program
|
- name: get the createrepo program
|
||||||
package: name=createrepo
|
package: name=createrepo
|
||||||
state=present
|
state=present
|
||||||
when: is_redhat
|
when: is_redhat | bool
|
||||||
|
|
||||||
- name: Create local repo
|
- name: Create local repo
|
||||||
shell: createrepo {{ yum_packages_dir }}
|
shell: createrepo {{ yum_packages_dir }}
|
||||||
when: is_redhat
|
when: is_redhat | bool
|
||||||
|
|
||||||
- name: Install local repo file.
|
- name: Install local repo file.
|
||||||
template: dest=/etc/yum.repos.d/iiab-local.repo
|
template: dest=/etc/yum.repos.d/iiab-local.repo
|
||||||
src=local.repo
|
src=local.repo
|
||||||
owner=root
|
owner=root
|
||||||
mode=0644
|
mode=0644
|
||||||
when: is_redhat
|
when: is_redhat | bool
|
||||||
|
|
||||||
- name: Install yum packages
|
- name: Install yum packages
|
||||||
package: name={{ item }}
|
package: name={{ item }}
|
||||||
|
@ -36,7 +36,7 @@
|
||||||
- linux-firmware
|
- linux-firmware
|
||||||
- syslog
|
- syslog
|
||||||
- xml-common
|
- xml-common
|
||||||
when: is_redhat
|
when: is_redhat | bool
|
||||||
|
|
||||||
- name: Install yum packages for Debian
|
- name: Install yum packages for Debian
|
||||||
package: name={{ item }}
|
package: name={{ item }}
|
||||||
|
@ -44,7 +44,7 @@
|
||||||
with_items:
|
with_items:
|
||||||
- inetutils-syslogd
|
- inetutils-syslogd
|
||||||
- wpasupplicant
|
- wpasupplicant
|
||||||
when: is_debuntu
|
when: is_debuntu | bool
|
||||||
|
|
||||||
- name: Install common packages
|
- name: Install common packages
|
||||||
package: name={{ item }}
|
package: name={{ item }}
|
||||||
|
@ -82,7 +82,7 @@
|
||||||
- glibc # CVE-2015-7547
|
- glibc # CVE-2015-7547
|
||||||
- bash
|
- bash
|
||||||
- iptables
|
- iptables
|
||||||
when: is_redhat
|
when: is_redhat | bool
|
||||||
|
|
||||||
- name: Update common packages (debian)
|
- name: Update common packages (debian)
|
||||||
package: name={{ item }}
|
package: name={{ item }}
|
||||||
|
@ -91,7 +91,7 @@
|
||||||
- libc6
|
- libc6
|
||||||
- bash
|
- bash
|
||||||
- iptables
|
- iptables
|
||||||
when: is_debuntu
|
when: is_debuntu | bool
|
||||||
|
|
||||||
|
|
||||||
# instuctions state to start with a fully updated system before starting, stop using
|
# instuctions state to start with a fully updated system before starting, stop using
|
||||||
|
|
|
@ -5,27 +5,27 @@
|
||||||
|
|
||||||
- name: Install dnsmasq
|
- name: Install dnsmasq
|
||||||
include_tasks: roles/network/tasks/dnsmasq.yml
|
include_tasks: roles/network/tasks/dnsmasq.yml
|
||||||
when: dnsmasq_install
|
when: dnsmasq_install | bool
|
||||||
tags: base, domain, dnsmasq, network
|
tags: base, domain, dnsmasq, network
|
||||||
|
|
||||||
- name: Install named / BIND
|
- name: Install named / BIND
|
||||||
include_tasks: roles/network/tasks/named.yml
|
include_tasks: roles/network/tasks/named.yml
|
||||||
when: named_install
|
when: named_install | bool
|
||||||
tags: base, named, network, domain
|
tags: base, named, network, domain
|
||||||
|
|
||||||
- name: Installing captive portal
|
- name: Installing captive portal
|
||||||
include_tasks: roles/captive-portal/tasks/main.yml
|
include_tasks: roles/captive-portal/tasks/main.yml
|
||||||
when: captive_portal_install
|
when: captive_portal_install | bool
|
||||||
tags: base, captive-portal, network, domain
|
tags: base, captive-portal, network, domain
|
||||||
|
|
||||||
- name: Installing dhcpd
|
- name: Installing dhcpd
|
||||||
include_tasks: roles/network/tasks/dhcpd.yml
|
include_tasks: roles/network/tasks/dhcpd.yml
|
||||||
when: dhcpd_install
|
when: dhcpd_install | bool
|
||||||
tags: base, dhcpd, network, domain
|
tags: base, dhcpd, network, domain
|
||||||
|
|
||||||
- name: Install Squid (and DansGuardian if dansguardian_install)
|
- name: Install Squid (and DansGuardian if dansguardian_install)
|
||||||
include_tasks: roles/network/tasks/squid.yml
|
include_tasks: roles/network/tasks/squid.yml
|
||||||
when: squid_install
|
when: squid_install | bool
|
||||||
tags: base, squid, network, domain
|
tags: base, squid, network, domain
|
||||||
|
|
||||||
# NETWORK moved to the very end, after Stage 9 (9-LOCAL-ADDONS)
|
# NETWORK moved to the very end, after Stage 9 (9-LOCAL-ADDONS)
|
||||||
|
@ -47,7 +47,7 @@
|
||||||
- name: POSTGRESQL
|
- name: POSTGRESQL
|
||||||
include_role:
|
include_role:
|
||||||
name: postgresql
|
name: postgresql
|
||||||
when: postgresql_install
|
when: postgresql_install | bool
|
||||||
tags: postgresql, pathagar, moodle
|
tags: postgresql, pathagar, moodle
|
||||||
|
|
||||||
# UNMAINTAINED
|
# UNMAINTAINED
|
||||||
|
@ -60,19 +60,19 @@
|
||||||
- name: CUPS
|
- name: CUPS
|
||||||
include_role:
|
include_role:
|
||||||
name: cups
|
name: cups
|
||||||
when: cups_install
|
when: cups_install | bool
|
||||||
tags: cups
|
tags: cups
|
||||||
|
|
||||||
- name: SAMBA
|
- name: SAMBA
|
||||||
include_role:
|
include_role:
|
||||||
name: samba
|
name: samba
|
||||||
when: samba_install
|
when: samba_install | bool
|
||||||
tags: samba
|
tags: samba
|
||||||
|
|
||||||
- name: USB-LIB
|
- name: USB-LIB
|
||||||
include_role:
|
include_role:
|
||||||
name: usb-lib
|
name: usb-lib
|
||||||
when: usb_lib_install
|
when: usb_lib_install | bool
|
||||||
tags: usb-lib
|
tags: usb-lib
|
||||||
|
|
||||||
- name: Run /usr/bin/iiab-refresh-wiki-docs (scraper script) to create http://box/info offline documentation. (This script was installed at the beginning of Stage 3 = roles/3-base-server/tasks/main.yml, which ran Apache playbook = roles/httpd/tasks/main.yml)
|
- name: Run /usr/bin/iiab-refresh-wiki-docs (scraper script) to create http://box/info offline documentation. (This script was installed at the beginning of Stage 3 = roles/3-base-server/tasks/main.yml, which ran Apache playbook = roles/httpd/tasks/main.yml)
|
||||||
|
|
|
@ -6,19 +6,19 @@
|
||||||
- name: ACTIVITY-SERVER
|
- name: ACTIVITY-SERVER
|
||||||
include_role:
|
include_role:
|
||||||
name: activity-server
|
name: activity-server
|
||||||
when: activity_server_install
|
when: activity_server_install | bool
|
||||||
tags: olpc, activity-server
|
tags: olpc, activity-server
|
||||||
|
|
||||||
- name: EJABBERD_XS
|
- name: EJABBERD_XS
|
||||||
include_role:
|
include_role:
|
||||||
name: ejabberd_xs
|
name: ejabberd_xs
|
||||||
when: ejabberd_xs_install
|
when: ejabberd_xs_install | bool
|
||||||
tags: olpc, ejabberd-xs
|
tags: olpc, ejabberd-xs
|
||||||
|
|
||||||
- name: IDMGR
|
- name: IDMGR
|
||||||
include_role:
|
include_role:
|
||||||
name: idmgr
|
name: idmgr
|
||||||
when: idmgr_install
|
when: idmgr_install | bool
|
||||||
tags: olpc, idmgr
|
tags: olpc, idmgr
|
||||||
|
|
||||||
- name: Recording STAGE 5 HAS COMPLETED =====================
|
- name: Recording STAGE 5 HAS COMPLETED =====================
|
||||||
|
|
|
@ -6,73 +6,73 @@
|
||||||
- name: DOKUWIKI
|
- name: DOKUWIKI
|
||||||
include_role:
|
include_role:
|
||||||
name: dokuwiki
|
name: dokuwiki
|
||||||
when: dokuwiki_install
|
when: dokuwiki_install | bool
|
||||||
tags: dokuwiki
|
tags: dokuwiki
|
||||||
|
|
||||||
- name: MEDIAWIKI
|
- name: MEDIAWIKI
|
||||||
include_role:
|
include_role:
|
||||||
name: mediawiki
|
name: mediawiki
|
||||||
when: mediawiki_install
|
when: mediawiki_install | bool
|
||||||
tags: mediawiki
|
tags: mediawiki
|
||||||
|
|
||||||
- name: EJABBERD
|
- name: EJABBERD
|
||||||
include_role:
|
include_role:
|
||||||
name: ejabberd
|
name: ejabberd
|
||||||
when: ejabberd_install
|
when: ejabberd_install | bool
|
||||||
tags: ejabberd
|
tags: ejabberd
|
||||||
|
|
||||||
- name: ELGG
|
- name: ELGG
|
||||||
include_role:
|
include_role:
|
||||||
name: elgg
|
name: elgg
|
||||||
when: elgg_install
|
when: elgg_install | bool
|
||||||
tags: elgg
|
tags: elgg
|
||||||
|
|
||||||
- name: GITEA
|
- name: GITEA
|
||||||
include_role:
|
include_role:
|
||||||
name: gitea
|
name: gitea
|
||||||
when: gitea_install
|
when: gitea_install | bool
|
||||||
tags: gitea
|
tags: gitea
|
||||||
|
|
||||||
- name: LOKOLE
|
- name: LOKOLE
|
||||||
include_role:
|
include_role:
|
||||||
name: lokole
|
name: lokole
|
||||||
when: lokole_install
|
when: lokole_install | bool
|
||||||
tags: lokole
|
tags: lokole
|
||||||
|
|
||||||
- name: MOSQUITTO
|
- name: MOSQUITTO
|
||||||
include_role:
|
include_role:
|
||||||
name: mosquitto
|
name: mosquitto
|
||||||
when: mosquitto_install
|
when: mosquitto_install | bool
|
||||||
tags: mosquitto
|
tags: mosquitto
|
||||||
|
|
||||||
- name: NODE-RED
|
- name: NODE-RED
|
||||||
include_role:
|
include_role:
|
||||||
name: nodered
|
name: nodered
|
||||||
when: nodered_install
|
when: nodered_install | bool
|
||||||
tags: nodered
|
tags: nodered
|
||||||
|
|
||||||
- name: NEXTCLOUD
|
- name: NEXTCLOUD
|
||||||
include_role:
|
include_role:
|
||||||
name: nextcloud
|
name: nextcloud
|
||||||
when: nextcloud_install
|
when: nextcloud_install | bool
|
||||||
tags: nextcloud
|
tags: nextcloud
|
||||||
|
|
||||||
#- name: OWNCLOUD
|
#- name: OWNCLOUD
|
||||||
# include_role:
|
# include_role:
|
||||||
# name: owncloud
|
# name: owncloud
|
||||||
# when: owncloud_install
|
# when: owncloud_install | bool
|
||||||
# tags: owncloud
|
# tags: owncloud
|
||||||
|
|
||||||
- name: PBX
|
- name: PBX
|
||||||
include_role:
|
include_role:
|
||||||
name: pbx
|
name: pbx
|
||||||
when: pbx_install
|
when: pbx_install | bool
|
||||||
tags: pbx
|
tags: pbx
|
||||||
|
|
||||||
- name: WORDPRESS
|
- name: WORDPRESS
|
||||||
include_role:
|
include_role:
|
||||||
name: wordpress
|
name: wordpress
|
||||||
when: wordpress_install
|
when: wordpress_install | bool
|
||||||
tags: wordpress
|
tags: wordpress
|
||||||
|
|
||||||
- name: Recording STAGE 6 HAS COMPLETED ====================
|
- name: Recording STAGE 6 HAS COMPLETED ====================
|
||||||
|
|
|
@ -6,31 +6,31 @@
|
||||||
- name: KALITE
|
- name: KALITE
|
||||||
include_role:
|
include_role:
|
||||||
name: kalite
|
name: kalite
|
||||||
when: kalite_install
|
when: kalite_install | bool
|
||||||
tags: kalite
|
tags: kalite
|
||||||
|
|
||||||
- name: KOLIBRI
|
- name: KOLIBRI
|
||||||
include_role:
|
include_role:
|
||||||
name: kolibri
|
name: kolibri
|
||||||
when: kolibri_install
|
when: kolibri_install | bool
|
||||||
tags: kolibri
|
tags: kolibri
|
||||||
|
|
||||||
- name: KIWIX
|
- name: KIWIX
|
||||||
include_role:
|
include_role:
|
||||||
name: kiwix
|
name: kiwix
|
||||||
when: kiwix_install
|
when: kiwix_install | bool
|
||||||
tags: kiwix
|
tags: kiwix
|
||||||
|
|
||||||
- name: MOODLE
|
- name: MOODLE
|
||||||
include_role:
|
include_role:
|
||||||
name: moodle
|
name: moodle
|
||||||
when: moodle_install
|
when: moodle_install | bool
|
||||||
tags: olpc, moodle
|
tags: olpc, moodle
|
||||||
|
|
||||||
- name: OSM-VECTOR-MAPS
|
- name: OSM-VECTOR-MAPS
|
||||||
include_role:
|
include_role:
|
||||||
name: osm-vector-maps
|
name: osm-vector-maps
|
||||||
when: osm_vector_maps_install
|
when: osm_vector_maps_install | bool
|
||||||
tags: osm, maps
|
tags: osm, maps
|
||||||
|
|
||||||
# UNMAINTAINED
|
# UNMAINTAINED
|
||||||
|
@ -50,7 +50,7 @@
|
||||||
- name: SUGARIZER
|
- name: SUGARIZER
|
||||||
include_role:
|
include_role:
|
||||||
name: sugarizer
|
name: sugarizer
|
||||||
when: sugarizer_install
|
when: sugarizer_install | bool
|
||||||
tags: sugarizer
|
tags: sugarizer
|
||||||
|
|
||||||
- name: Recording STAGE 7 HAS COMPLETED ========================
|
- name: Recording STAGE 7 HAS COMPLETED ========================
|
||||||
|
|
|
@ -6,31 +6,31 @@
|
||||||
- name: TRANSMISSION
|
- name: TRANSMISSION
|
||||||
include_role:
|
include_role:
|
||||||
name: transmission
|
name: transmission
|
||||||
when: transmission_install
|
when: transmission_install | bool
|
||||||
tags: transmission
|
tags: transmission
|
||||||
|
|
||||||
- name: AWSTATS
|
- name: AWSTATS
|
||||||
include_role:
|
include_role:
|
||||||
name: awstats
|
name: awstats
|
||||||
when: awstats_install
|
when: awstats_install | bool
|
||||||
tags: awstats
|
tags: awstats
|
||||||
|
|
||||||
- name: MONIT
|
- name: MONIT
|
||||||
include_role:
|
include_role:
|
||||||
name: monit
|
name: monit
|
||||||
when: monit_install
|
when: monit_install | bool
|
||||||
tags: monit
|
tags: monit
|
||||||
|
|
||||||
- name: MUNIN
|
- name: MUNIN
|
||||||
include_role:
|
include_role:
|
||||||
name: munin
|
name: munin
|
||||||
when: munin_install
|
when: munin_install | bool
|
||||||
tags: munin
|
tags: munin
|
||||||
|
|
||||||
- name: PHPMYADMIN
|
- name: PHPMYADMIN
|
||||||
include_role:
|
include_role:
|
||||||
name: phpmyadmin
|
name: phpmyadmin
|
||||||
when: phpmyadmin_install
|
when: phpmyadmin_install | bool
|
||||||
tags: phpmyadmin
|
tags: phpmyadmin
|
||||||
|
|
||||||
# UNMAINTAINED
|
# UNMAINTAINED
|
||||||
|
@ -50,7 +50,7 @@
|
||||||
- name: VNSTAT
|
- name: VNSTAT
|
||||||
include_role:
|
include_role:
|
||||||
name: vnstat
|
name: vnstat
|
||||||
when: vnstat_install
|
when: vnstat_install | bool
|
||||||
tags: vnstat
|
tags: vnstat
|
||||||
|
|
||||||
# UNMAINTAINED
|
# UNMAINTAINED
|
||||||
|
|
|
@ -6,19 +6,19 @@
|
||||||
- name: CALIBRE
|
- name: CALIBRE
|
||||||
include_role:
|
include_role:
|
||||||
name: calibre
|
name: calibre
|
||||||
when: calibre_install
|
when: calibre_install | bool
|
||||||
tags: calibre
|
tags: calibre
|
||||||
|
|
||||||
- name: CALIBRE-WEB
|
- name: CALIBRE-WEB
|
||||||
include_role:
|
include_role:
|
||||||
name: calibre-web
|
name: calibre-web
|
||||||
when: calibreweb_install
|
when: calibreweb_install | bool
|
||||||
tags: calibre-web
|
tags: calibre-web
|
||||||
|
|
||||||
- name: MINETEST
|
- name: MINETEST
|
||||||
include_role:
|
include_role:
|
||||||
name: minetest
|
name: minetest
|
||||||
when: minetest_install
|
when: minetest_install | bool
|
||||||
tags: minetest
|
tags: minetest
|
||||||
|
|
||||||
- name: Recording STAGE 9 HAS COMPLETED ====================
|
- name: Recording STAGE 9 HAS COMPLETED ====================
|
||||||
|
|
|
@ -79,7 +79,7 @@
|
||||||
|
|
||||||
- name: enable mod_expires for debian
|
- name: enable mod_expires for debian
|
||||||
command: a2enmod expires
|
command: a2enmod expires
|
||||||
when: is_debuntu
|
when: is_debuntu | bool
|
||||||
|
|
||||||
- name: create the link which enables the site
|
- name: create the link which enables the site
|
||||||
file: src=/etc/apache2/sites-available/xs-activity-server.conf
|
file: src=/etc/apache2/sites-available/xs-activity-server.conf
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
- name: Install wondershaper ajenti plugin
|
- name: Install wondershaper ajenti plugin
|
||||||
pip: name="{{ iiab_download_url }}"/ajenti-plugin-wondershaper-0.3.tar.gz
|
pip: name="{{ iiab_download_url }}"/ajenti-plugin-wondershaper-0.3.tar.gz
|
||||||
when: internet_available
|
when: internet_available | bool
|
||||||
|
|
|
@ -45,7 +45,7 @@
|
||||||
service: name=ajenti
|
service: name=ajenti
|
||||||
enabled=yes
|
enabled=yes
|
||||||
state=restarted
|
state=restarted
|
||||||
when: ajenti_enabled
|
when: ajenti_enabled | bool
|
||||||
|
|
||||||
- name: Add 'ajenti' variable values to {{ iiab_ini_file }}
|
- name: Add 'ajenti' variable values to {{ iiab_ini_file }}
|
||||||
ini_file:
|
ini_file:
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
- name: Install xs-authserver from pypi
|
- name: Install xs-authserver from pypi
|
||||||
pip: name=xs-authserver
|
pip: name=xs-authserver
|
||||||
when: internet_available
|
when: internet_available | bool
|
||||||
|
|
||||||
- name: install gunicorn
|
- name: install gunicorn
|
||||||
package: name=python-gunicorn
|
package: name=python-gunicorn
|
||||||
|
@ -48,7 +48,7 @@
|
||||||
service: name=xs-authserver
|
service: name=xs-authserver
|
||||||
state=restarted
|
state=restarted
|
||||||
enabled=yes
|
enabled=yes
|
||||||
when: authserver_enabled
|
when: authserver_enabled | bool
|
||||||
|
|
||||||
- name: Add 'authserver' variable values to {{ iiab_ini_file }}
|
- name: Add 'authserver' variable values to {{ iiab_ini_file }}
|
||||||
ini_file:
|
ini_file:
|
||||||
|
|
|
@ -14,13 +14,13 @@
|
||||||
- libapache2-mod-authnz-external
|
- libapache2-mod-authnz-external
|
||||||
- apache2-utils
|
- apache2-utils
|
||||||
state: present
|
state: present
|
||||||
when: is_debuntu
|
when: is_debuntu | bool
|
||||||
tags:
|
tags:
|
||||||
- download
|
- download
|
||||||
|
|
||||||
- name: Enable cgi execution (debuntu)
|
- name: Enable cgi execution (debuntu)
|
||||||
command: a2enmod cgi
|
command: a2enmod cgi
|
||||||
when: is_debuntu
|
when: is_debuntu | bool
|
||||||
|
|
||||||
- name: 'Mandate {{ apache_user }}:{{ apache_user }} perm 0750 dirs: {{ awstats_data_dir }} (intermediate summary storage) & {{ apache_log_dir }}' # /library/awstats & /var/log/apache2 typically
|
- name: 'Mandate {{ apache_user }}:{{ apache_user }} perm 0750 dirs: {{ awstats_data_dir }} (intermediate summary storage) & {{ apache_log_dir }}' # /library/awstats & /var/log/apache2 typically
|
||||||
file:
|
file:
|
||||||
|
@ -57,7 +57,7 @@
|
||||||
template:
|
template:
|
||||||
src: logrotate.d.apache2
|
src: logrotate.d.apache2
|
||||||
dest: /etc/logrotate.d/apache2
|
dest: /etc/logrotate.d/apache2
|
||||||
when: is_debuntu
|
when: is_debuntu | bool
|
||||||
|
|
||||||
- name: Check if package installed /etc/awstats/awstats.conf
|
- name: Check if package installed /etc/awstats/awstats.conf
|
||||||
stat:
|
stat:
|
||||||
|
@ -94,14 +94,14 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
when: awstats_enabled
|
when: awstats_enabled | bool
|
||||||
|
|
||||||
- name: Create a symlink /etc/awstats/awstats.conf for access by IP address
|
- name: Create a symlink /etc/awstats/awstats.conf for access by IP address
|
||||||
file:
|
file:
|
||||||
src: /etc/awstats/awstats.schoolserver.conf
|
src: /etc/awstats/awstats.schoolserver.conf
|
||||||
path: /etc/awstats/awstats.conf
|
path: /etc/awstats/awstats.conf
|
||||||
state: link
|
state: link
|
||||||
when: awstats_enabled
|
when: awstats_enabled | bool
|
||||||
|
|
||||||
- name: On first enabling of AWStats, summarize httpd logs up to now (OS's other than debuntu)
|
- name: On first enabling of AWStats, summarize httpd logs up to now (OS's other than debuntu)
|
||||||
shell: /bin/perl /usr/share/awstats/wwwroot/cgi-bin/awstats.pl -config=schoolserver -update
|
shell: /bin/perl /usr/share/awstats/wwwroot/cgi-bin/awstats.pl -config=schoolserver -update
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
- name: Install AWStats if awstats_install
|
- name: Install AWStats if awstats_install
|
||||||
include_tasks: install.yml
|
include_tasks: install.yml
|
||||||
when: awstats_install
|
when: awstats_install | bool
|
||||||
|
|
||||||
- name: Add 'awstats' variable values to {{ iiab_ini_file }}
|
- name: Add 'awstats' variable values to {{ iiab_ini_file }}
|
||||||
ini_file:
|
ini_file:
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
name:
|
name:
|
||||||
- imagemagick
|
- imagemagick
|
||||||
state: present
|
state: present
|
||||||
when: is_debuntu
|
when: is_debuntu | bool
|
||||||
|
|
||||||
- name: Allow ImageMagick to read PDFs (debuntu)
|
- name: Allow ImageMagick to read PDFs (debuntu)
|
||||||
lineinfile:
|
lineinfile:
|
||||||
|
@ -12,7 +12,7 @@
|
||||||
backrefs: yes
|
backrefs: yes
|
||||||
line: ' <policy domain="coder" rights="read" pattern="PDF" />'
|
line: ' <policy domain="coder" rights="read" pattern="PDF" />'
|
||||||
state: present
|
state: present
|
||||||
when: is_debuntu
|
when: is_debuntu | bool
|
||||||
|
|
||||||
- name: Create 3 Calibre-Web folders to store data and configuration files
|
- name: Create 3 Calibre-Web folders to store data and configuration files
|
||||||
file:
|
file:
|
||||||
|
@ -35,7 +35,7 @@
|
||||||
#update: yes
|
#update: yes
|
||||||
depth: 1
|
depth: 1
|
||||||
version: master
|
version: master
|
||||||
when: internet_available
|
when: internet_available | bool
|
||||||
|
|
||||||
## Ansible Pip Bug: Cannot use 'chdir' with 'env' https://github.com/ansible/ansible/issues/37912 (Patch landed)
|
## Ansible Pip Bug: Cannot use 'chdir' with 'env' https://github.com/ansible/ansible/issues/37912 (Patch landed)
|
||||||
#- name: Download calibre-web dependencies into vendor subdirectory.
|
#- name: Download calibre-web dependencies into vendor subdirectory.
|
||||||
|
@ -51,7 +51,7 @@
|
||||||
requirements: "{{ calibreweb_venv_path }}/requirements.txt"
|
requirements: "{{ calibreweb_venv_path }}/requirements.txt"
|
||||||
virtualenv: "{{ calibreweb_venv_path }}"
|
virtualenv: "{{ calibreweb_venv_path }}"
|
||||||
virtualenv_site_packages: no
|
virtualenv_site_packages: no
|
||||||
when: internet_available
|
when: internet_available | bool
|
||||||
|
|
||||||
- name: Symlink {{ calibreweb_venv_path }}/vendor to {{ calibreweb_venv_path }}/lib/python2.7/site-packages to keep cps.py happy
|
- name: Symlink {{ calibreweb_venv_path }}/vendor to {{ calibreweb_venv_path }}/lib/python2.7/site-packages to keep cps.py happy
|
||||||
file:
|
file:
|
||||||
|
@ -87,7 +87,7 @@
|
||||||
- roles/calibre-web/files/metadata.db
|
- roles/calibre-web/files/metadata.db
|
||||||
- roles/calibre-web/files/metadata_db_prefs_backup.json
|
- roles/calibre-web/files/metadata_db_prefs_backup.json
|
||||||
when: not metadatadb.stat.exists
|
when: not metadatadb.stat.exists
|
||||||
#when: calibreweb_provision
|
#when: calibreweb_provision | bool
|
||||||
|
|
||||||
- name: Provision/Copy default admin settings to {{ calibreweb_config }}/app.db IF metadata.db did not exist # {{ calibreweb_config }} is /library/calibre-web/config
|
- name: Provision/Copy default admin settings to {{ calibreweb_config }}/app.db IF metadata.db did not exist # {{ calibreweb_config }} is /library/calibre-web/config
|
||||||
copy:
|
copy:
|
||||||
|
@ -98,7 +98,7 @@
|
||||||
mode: 0644
|
mode: 0644
|
||||||
backup: yes
|
backup: yes
|
||||||
when: not metadatadb.stat.exists
|
when: not metadatadb.stat.exists
|
||||||
#when: calibreweb_provision
|
#when: calibreweb_provision | bool
|
||||||
|
|
||||||
- name: Enable & Restart 'calibre-web' systemd service
|
- name: Enable & Restart 'calibre-web' systemd service
|
||||||
systemd:
|
systemd:
|
||||||
|
@ -106,17 +106,17 @@
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
enabled: yes
|
enabled: yes
|
||||||
state: restarted
|
state: restarted
|
||||||
when: calibreweb_enabled
|
when: calibreweb_enabled | bool
|
||||||
|
|
||||||
# Default: http://box/books
|
# Default: http://box/books
|
||||||
# SEE ALSO: https://github.com/janeczku/calibre-web/wiki/Setup-Reverse-Proxy
|
# SEE ALSO: https://github.com/janeczku/calibre-web/wiki/Setup-Reverse-Proxy
|
||||||
- name: Enable http://box{{ calibreweb_url }} with Apache
|
- name: Enable http://box{{ calibreweb_url }} with Apache
|
||||||
command: a2ensite calibre-web.conf
|
command: a2ensite calibre-web.conf
|
||||||
when: calibreweb_enabled
|
when: calibreweb_enabled | bool
|
||||||
|
|
||||||
#- name: Restart Apache after enabling calibre-web httpd2 site
|
#- name: Restart Apache after enabling calibre-web httpd2 site
|
||||||
# command: apachectl -k graceful
|
# command: apachectl -k graceful
|
||||||
# when: calibreweb_enabled
|
# when: calibreweb_enabled | bool
|
||||||
|
|
||||||
- name: Disable 'calibre-web' systemd service
|
- name: Disable 'calibre-web' systemd service
|
||||||
systemd:
|
systemd:
|
||||||
|
|
|
@ -121,7 +121,7 @@
|
||||||
name: calibre-serve
|
name: calibre-serve
|
||||||
enabled: yes
|
enabled: yes
|
||||||
state: started
|
state: started
|
||||||
when: calibre_enabled
|
when: calibre_enabled | bool
|
||||||
#async: 900
|
#async: 900
|
||||||
#poll: 5
|
#poll: 5
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
backup: yes
|
backup: yes
|
||||||
timeout: "{{ download_timeout }}"
|
timeout: "{{ download_timeout }}"
|
||||||
register: calibre_download_output
|
register: calibre_download_output
|
||||||
when: internet_available
|
when: internet_available | bool
|
||||||
|
|
||||||
# ALWAYS DEFINED, DESPITE get_url DOCUMENTATION CLAIM...
|
# ALWAYS DEFINED, DESPITE get_url DOCUMENTATION CLAIM...
|
||||||
# - debug:
|
# - debug:
|
||||||
|
@ -53,4 +53,4 @@
|
||||||
shell: "{{ downloads_dir }}/calibre-installer.py >> /dev/null"
|
shell: "{{ downloads_dir }}/calibre-installer.py >> /dev/null"
|
||||||
#args:
|
#args:
|
||||||
# creates: /usr/bin/calibre-uninstall
|
# creates: /usr/bin/calibre-uninstall
|
||||||
when: internet_available
|
when: internet_available | bool
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
package:
|
package:
|
||||||
name: libapache2-mod-wsgi
|
name: libapache2-mod-wsgi
|
||||||
state: present
|
state: present
|
||||||
when: is_debuntu
|
when: is_debuntu | bool
|
||||||
|
|
||||||
- name: Install mod_wsgi (not debuntu)
|
- name: Install mod_wsgi (not debuntu)
|
||||||
package:
|
package:
|
||||||
|
@ -70,7 +70,7 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
when: captive_portal_enabled
|
when: captive_portal_enabled | bool
|
||||||
|
|
||||||
- name: Enable Apache's captive-portal.conf if captive_portal_enabled (debuntu)
|
- name: Enable Apache's captive-portal.conf if captive_portal_enabled (debuntu)
|
||||||
file:
|
file:
|
||||||
|
@ -92,7 +92,7 @@
|
||||||
# daemon-reload: yes
|
# daemon-reload: yes
|
||||||
# enabled: yes
|
# enabled: yes
|
||||||
# state: started
|
# state: started
|
||||||
# when: captive_portal_enabled
|
# when: captive_portal_enabled | bool
|
||||||
|
|
||||||
#- name: Disable & Stop captive-portal.service if not captive_portal_enabled
|
#- name: Disable & Stop captive-portal.service if not captive_portal_enabled
|
||||||
# systemd:
|
# systemd:
|
||||||
|
@ -128,7 +128,7 @@
|
||||||
# systemd:
|
# systemd:
|
||||||
# name: dnsmasq
|
# name: dnsmasq
|
||||||
# state: restarted
|
# state: restarted
|
||||||
# when: dnsmasq_enabled
|
# when: dnsmasq_enabled | bool
|
||||||
|
|
||||||
# ABOVE DOES NOT WORK ON UBUNTU 16.04 -- what follows is a crude hack (seems to work!)
|
# ABOVE DOES NOT WORK ON UBUNTU 16.04 -- what follows is a crude hack (seems to work!)
|
||||||
|
|
||||||
|
@ -136,11 +136,11 @@
|
||||||
systemd:
|
systemd:
|
||||||
name: dnsmasq
|
name: dnsmasq
|
||||||
state: stopped
|
state: stopped
|
||||||
when: dnsmasq_enabled
|
when: dnsmasq_enabled | bool
|
||||||
|
|
||||||
- name: Start dnsmasq
|
- name: Start dnsmasq
|
||||||
systemd:
|
systemd:
|
||||||
name: dnsmasq
|
name: dnsmasq
|
||||||
state: started
|
state: started
|
||||||
when: dnsmasq_enabled
|
when: dnsmasq_enabled | bool
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
package:
|
package:
|
||||||
name: cups
|
name: cups
|
||||||
state: present
|
state: present
|
||||||
when: cups_install
|
when: cups_install | bool
|
||||||
tags:
|
tags:
|
||||||
- download
|
- download
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@
|
||||||
|
|
||||||
- name: Permit headless admin of CUPS -- only works when CUPS daemon is running
|
- name: Permit headless admin of CUPS -- only works when CUPS daemon is running
|
||||||
shell: "cupsctl --remote-admin"
|
shell: "cupsctl --remote-admin"
|
||||||
when: cups_enabled
|
when: cups_enabled | bool
|
||||||
|
|
||||||
- name: Disable both CUPS services (OS's other than Fedora 18)
|
- name: Disable both CUPS services (OS's other than Fedora 18)
|
||||||
systemd:
|
systemd:
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
with_items:
|
with_items:
|
||||||
- docker
|
- docker
|
||||||
- python-docker-py
|
- python-docker-py
|
||||||
when: docker_install
|
when: docker_install | bool
|
||||||
tags: download
|
tags: download
|
||||||
|
|
||||||
- name: put the systemd startup file in place
|
- name: put the systemd startup file in place
|
||||||
|
@ -32,7 +32,7 @@
|
||||||
service: name=docker
|
service: name=docker
|
||||||
state=started
|
state=started
|
||||||
enabled=true
|
enabled=true
|
||||||
when: docker_enabled
|
when: docker_enabled | bool
|
||||||
|
|
||||||
- name: Disable docker
|
- name: Disable docker
|
||||||
service: name=docker
|
service: name=docker
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
url: "{{ iiab_download_url }}/{{ dokuwiki_version }}.tgz"
|
url: "{{ iiab_download_url }}/{{ dokuwiki_version }}.tgz"
|
||||||
dest: "{{ downloads_dir }}/"
|
dest: "{{ downloads_dir }}/"
|
||||||
timeout: "{{ download_timeout }}"
|
timeout: "{{ download_timeout }}"
|
||||||
when: internet_available
|
when: internet_available | bool
|
||||||
|
|
||||||
- name: Unarchive (unpack) it to /library/{{ dokuwiki_version }}
|
- name: Unarchive (unpack) it to /library/{{ dokuwiki_version }}
|
||||||
unarchive:
|
unarchive:
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
template:
|
template:
|
||||||
src: dokuwiki.conf.j2
|
src: dokuwiki.conf.j2
|
||||||
dest: "/etc/{{ apache_config_dir }}/dokuwiki.conf"
|
dest: "/etc/{{ apache_config_dir }}/dokuwiki.conf"
|
||||||
when: dokuwiki_enabled
|
when: dokuwiki_enabled | bool
|
||||||
|
|
||||||
- name: Symlink /etc/apache2/sites-enabled/dokuwiki.conf to /etc/apache2/sites-available/dokuwiki.conf if dokuwiki_enabled (debuntu)
|
- name: Symlink /etc/apache2/sites-enabled/dokuwiki.conf to /etc/apache2/sites-available/dokuwiki.conf if dokuwiki_enabled (debuntu)
|
||||||
file:
|
file:
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
- name: Install DokuWiki
|
- name: Install DokuWiki
|
||||||
include_tasks: install.yml
|
include_tasks: install.yml
|
||||||
when: dokuwiki_install
|
when: dokuwiki_install | bool
|
||||||
|
|
||||||
- name: Add 'dokuwiki' variable values to {{ iiab_ini_file }}
|
- name: Add 'dokuwiki' variable values to {{ iiab_ini_file }}
|
||||||
ini_file:
|
ini_file:
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
# src: ejabberd-iiab.init
|
# src: ejabberd-iiab.init
|
||||||
# dest: /etc/init.d/ejabberd-iiab
|
# dest: /etc/init.d/ejabberd-iiab
|
||||||
# mode: 0755
|
# mode: 0755
|
||||||
# when: is_debuntu
|
# when: is_debuntu | bool
|
||||||
|
|
||||||
#- name: Put the startup script in place - non debian
|
#- name: Put the startup script in place - non debian
|
||||||
# template:
|
# template:
|
||||||
|
@ -73,7 +73,7 @@
|
||||||
#name: ejabberd-iiab
|
#name: ejabberd-iiab
|
||||||
state: restarted
|
state: restarted
|
||||||
enabled: yes
|
enabled: yes
|
||||||
when: ejabberd_enabled
|
when: ejabberd_enabled | bool
|
||||||
#when: ejabberd_config.changed and ejabberd_enabled
|
#when: ejabberd_config.changed and ejabberd_enabled
|
||||||
|
|
||||||
#- name: Wait for ejabberd service start
|
#- name: Wait for ejabberd service start
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
url: "{{ iiab_download_url }}/elgg-{{ elgg_version }}.zip"
|
url: "{{ iiab_download_url }}/elgg-{{ elgg_version }}.zip"
|
||||||
dest: "{{ downloads_dir }}"
|
dest: "{{ downloads_dir }}"
|
||||||
timeout: "{{ download_timeout }}"
|
timeout: "{{ download_timeout }}"
|
||||||
when: internet_available
|
when: internet_available | bool
|
||||||
|
|
||||||
- name: Check for existence of /opt/elgg-{{ elgg_version }}/index.php
|
- name: Check for existence of /opt/elgg-{{ elgg_version }}/index.php
|
||||||
stat:
|
stat:
|
||||||
|
|
|
@ -59,7 +59,7 @@
|
||||||
mode: 0775
|
mode: 0775
|
||||||
tags:
|
tags:
|
||||||
- install
|
- install
|
||||||
when: internet_available
|
when: internet_available | bool
|
||||||
|
|
||||||
- name: Download Gitea GPG signature
|
- name: Download Gitea GPG signature
|
||||||
get_url:
|
get_url:
|
||||||
|
@ -68,7 +68,7 @@
|
||||||
tags:
|
tags:
|
||||||
- never
|
- never
|
||||||
- verify
|
- verify
|
||||||
when: internet_available
|
when: internet_available | bool
|
||||||
|
|
||||||
- name: Verify Gitea binary with GPG signature
|
- name: Verify Gitea binary with GPG signature
|
||||||
shell: |
|
shell: |
|
||||||
|
@ -131,7 +131,7 @@
|
||||||
name: gitea
|
name: gitea
|
||||||
enabled: yes
|
enabled: yes
|
||||||
state: restarted
|
state: restarted
|
||||||
when: gitea_enabled
|
when: gitea_enabled | bool
|
||||||
|
|
||||||
- name: Disable 'gitea' service
|
- name: Disable 'gitea' service
|
||||||
systemd:
|
systemd:
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
- name: Install Gitea {{ gitea_version }} if gitea_install
|
- name: Install Gitea {{ gitea_version }} if gitea_install
|
||||||
include_tasks: install.yml
|
include_tasks: install.yml
|
||||||
when: gitea_install
|
when: gitea_install | bool
|
||||||
|
|
|
@ -16,4 +16,4 @@
|
||||||
src: "/etc/{{ apache_config_dir }}/iiab-homepage.conf"
|
src: "/etc/{{ apache_config_dir }}/iiab-homepage.conf"
|
||||||
path: /etc/apache2/sites-enabled/iiab-homepage.conf
|
path: /etc/apache2/sites-enabled/iiab-homepage.conf
|
||||||
state: link
|
state: link
|
||||||
when: is_debuntu
|
when: is_debuntu | bool
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
- "php{{ php_version }}"
|
- "php{{ php_version }}"
|
||||||
- "php{{ php_version }}-curl"
|
- "php{{ php_version }}-curl"
|
||||||
state: present
|
state: present
|
||||||
when: is_debian
|
when: is_debian | bool
|
||||||
tags:
|
tags:
|
||||||
- download
|
- download
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
- apache2
|
- apache2
|
||||||
- php
|
- php
|
||||||
state: present
|
state: present
|
||||||
when: is_ubuntu
|
when: is_ubuntu | bool
|
||||||
tags:
|
tags:
|
||||||
- download
|
- download
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@
|
||||||
- php
|
- php
|
||||||
- php-curl
|
- php-curl
|
||||||
state: present
|
state: present
|
||||||
when: is_redhat
|
when: is_redhat | bool
|
||||||
tags:
|
tags:
|
||||||
- download
|
- download
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@
|
||||||
path: "/etc/php/{{ php_version }}/{{ apache_service }}/php.ini"
|
path: "/etc/php/{{ php_version }}/{{ apache_service }}/php.ini"
|
||||||
regexp: "{{ item.regexp }}"
|
regexp: "{{ item.regexp }}"
|
||||||
line: "{{ item.line }}"
|
line: "{{ item.line }}"
|
||||||
when: apache_high_php_limits
|
when: apache_high_php_limits | bool
|
||||||
with_items:
|
with_items:
|
||||||
- { regexp: '^upload_max_filesize', line: 'upload_max_filesize = 500M ; default is 2M' }
|
- { regexp: '^upload_max_filesize', line: 'upload_max_filesize = 500M ; default is 2M' }
|
||||||
- { regexp: '^post_max_size', line: 'post_max_size = 500M ; default is 8M' }
|
- { regexp: '^post_max_size', line: 'post_max_size = 500M ; default is 8M' }
|
||||||
|
@ -84,7 +84,7 @@
|
||||||
with_items:
|
with_items:
|
||||||
- mpm_event.conf
|
- mpm_event.conf
|
||||||
- mpm_event.load
|
- mpm_event.load
|
||||||
when: is_debuntu
|
when: is_debuntu | bool
|
||||||
|
|
||||||
- name: Create both mpm_prefork symlinks from /etc/apache2/mods-enabled to /etc/apache2/mods-available (debuntu)
|
- name: Create both mpm_prefork symlinks from /etc/apache2/mods-enabled to /etc/apache2/mods-available (debuntu)
|
||||||
file:
|
file:
|
||||||
|
@ -94,7 +94,7 @@
|
||||||
with_items:
|
with_items:
|
||||||
- mpm_prefork.conf
|
- mpm_prefork.conf
|
||||||
- mpm_prefork.load
|
- mpm_prefork.load
|
||||||
when: is_debuntu
|
when: is_debuntu | bool
|
||||||
|
|
||||||
- name: 'Turn on mod_proxy using a2enmod with: proxy, proxy_html, headers, rewrite (debuntu)'
|
- name: 'Turn on mod_proxy using a2enmod with: proxy, proxy_html, headers, rewrite (debuntu)'
|
||||||
command: a2enmod {{ item }}
|
command: a2enmod {{ item }}
|
||||||
|
@ -103,14 +103,14 @@
|
||||||
- proxy_html
|
- proxy_html
|
||||||
- headers
|
- headers
|
||||||
- rewrite
|
- rewrite
|
||||||
when: is_debuntu
|
when: is_debuntu | bool
|
||||||
|
|
||||||
- name: Enable our site, creating 010-iiab.conf symlink from sites-enabled to sites-available (debuntu)
|
- name: Enable our site, creating 010-iiab.conf symlink from sites-enabled to sites-available (debuntu)
|
||||||
file:
|
file:
|
||||||
src: "/etc/{{ apache_config_dir }}/010-iiab.conf"
|
src: "/etc/{{ apache_config_dir }}/010-iiab.conf"
|
||||||
path: /etc/apache2/sites-enabled/010-iiab.conf
|
path: /etc/apache2/sites-enabled/010-iiab.conf
|
||||||
state: link
|
state: link
|
||||||
when: is_debuntu
|
when: is_debuntu | bool
|
||||||
|
|
||||||
- name: Remove 000-default.conf from /etc/apache2 and /etc/apache2/sites-enabled (debuntu)
|
- name: Remove 000-default.conf from /etc/apache2 and /etc/apache2/sites-enabled (debuntu)
|
||||||
file:
|
file:
|
||||||
|
@ -119,7 +119,7 @@
|
||||||
with_items:
|
with_items:
|
||||||
- /etc/apache2/000-default.conf # Not nec on Raspbian. Is this really still needed elsewhere?
|
- /etc/apache2/000-default.conf # Not nec on Raspbian. Is this really still needed elsewhere?
|
||||||
- /etc/apache2/sites-enabled/000-default.conf
|
- /etc/apache2/sites-enabled/000-default.conf
|
||||||
when: is_debuntu
|
when: is_debuntu | bool
|
||||||
|
|
||||||
- name: Create Apache's pid dir /var/run/{{ apache_user }}
|
- name: Create Apache's pid dir /var/run/{{ apache_user }}
|
||||||
file:
|
file:
|
||||||
|
@ -178,7 +178,7 @@
|
||||||
path: /etc/apache2/sites-enabled/osm.conf
|
path: /etc/apache2/sites-enabled/osm.conf
|
||||||
#path: "/etc/{{ apache_service }}/sites-enabled/osm.conf"
|
#path: "/etc/{{ apache_service }}/sites-enabled/osm.conf"
|
||||||
state: link
|
state: link
|
||||||
when: is_debuntu
|
when: is_debuntu | bool
|
||||||
|
|
||||||
- include_tasks: html.yml
|
- include_tasks: html.yml
|
||||||
tags:
|
tags:
|
||||||
|
@ -200,7 +200,7 @@
|
||||||
src: 020_apache_poweroff.j2
|
src: 020_apache_poweroff.j2
|
||||||
dest: /etc/sudoers.d/020_apache_poweroff
|
dest: /etc/sudoers.d/020_apache_poweroff
|
||||||
mode: 0755
|
mode: 0755
|
||||||
when: apache_allow_sudo
|
when: apache_allow_sudo | bool
|
||||||
|
|
||||||
- name: Remove {{ apache_user }} (per variable apache_user) permission to poweroff, removing /etc/sudoers.d/020_apache_poweroff
|
- name: Remove {{ apache_user }} (per variable apache_user) permission to poweroff, removing /etc/sudoers.d/020_apache_poweroff
|
||||||
file:
|
file:
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
#- name: Download php-stem.rpi.tar
|
#- name: Download php-stem.rpi.tar
|
||||||
# command: cd /; wget http://download.iiab.io/packages/php-stem.rpi.tar
|
# command: cd /; wget http://download.iiab.io/packages/php-stem.rpi.tar
|
||||||
# when: is_rpi
|
# when: is_rpi | bool
|
||||||
|
|
||||||
#- name: Download php-stem.x86.tar
|
#- name: Download php-stem.x86.tar
|
||||||
# command: cd /; wget http://download.iiab.io/packages/php-stem.x64.tar
|
# command: cd /; wget http://download.iiab.io/packages/php-stem.x64.tar
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
group: root
|
group: root
|
||||||
#mode: ????
|
#mode: ????
|
||||||
remote_src: yes
|
remote_src: yes
|
||||||
when: is_rpi
|
when: is_rpi | bool
|
||||||
|
|
||||||
- name: Unarchive http://download.iiab.io/packages/php-stem.x64.tar to / (debian-9 on x86_64 only)
|
- name: Unarchive http://download.iiab.io/packages/php-stem.x64.tar to / (debian-9 on x86_64 only)
|
||||||
unarchive:
|
unarchive:
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
with_items:
|
with_items:
|
||||||
- idmgr
|
- idmgr
|
||||||
- xinetd
|
- xinetd
|
||||||
when: xo_services_enabled
|
when: xo_services_enabled | bool
|
||||||
|
|
||||||
- name: Disable idmgr service
|
- name: Disable idmgr service
|
||||||
service: name={{ item }}
|
service: name={{ item }}
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
group:
|
group:
|
||||||
name: sudo
|
name: sudo
|
||||||
state: present
|
state: present
|
||||||
when: is_redhat
|
when: is_redhat | bool
|
||||||
|
|
||||||
- name: 'Add user {{ iiab_admin_user }} to groups: wheel, sudo'
|
- name: 'Add user {{ iiab_admin_user }} to groups: wheel, sudo'
|
||||||
user:
|
user:
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
- include_tasks: admin-user.yml
|
- include_tasks: admin-user.yml
|
||||||
tags:
|
tags:
|
||||||
- base
|
- base
|
||||||
when: iiab_admin_user_install
|
when: iiab_admin_user_install | bool
|
||||||
|
|
||||||
- include_tasks: access.yml
|
- include_tasks: access.yml
|
||||||
tags:
|
tags:
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
with_items:
|
with_items:
|
||||||
- python-psutil
|
- python-psutil
|
||||||
- expect
|
- expect
|
||||||
when: is_F18
|
when: is_F18 | bool
|
||||||
|
|
||||||
- name: Install dependent pip packages (Fedora 18)
|
- name: Install dependent pip packages (Fedora 18)
|
||||||
pip:
|
pip:
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
url: "{{ kalite_requirements }}"
|
url: "{{ kalite_requirements }}"
|
||||||
dest: "{{ pip_packages_dir }}/kalite.txt"
|
dest: "{{ pip_packages_dir }}/kalite.txt"
|
||||||
timeout: "{{ download_timeout }}"
|
timeout: "{{ download_timeout }}"
|
||||||
when: internet_available
|
when: internet_available | bool
|
||||||
|
|
||||||
#- name: Install KA Lite non-static + reqs file with pip - (debuntu)
|
#- name: Install KA Lite non-static + reqs file with pip - (debuntu)
|
||||||
# pip: requirements={{ pip_packages_dir }}/kalite.txt
|
# pip: requirements={{ pip_packages_dir }}/kalite.txt
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
- name: Set KA Lite's SQLite filename (Fedora 18)
|
- name: Set KA Lite's SQLite filename (Fedora 18)
|
||||||
set_fact:
|
set_fact:
|
||||||
kalite_db_name: "{{ kalite_root }}/kalite/database/data.sqlite"
|
kalite_db_name: "{{ kalite_root }}/kalite/database/data.sqlite"
|
||||||
when: is_F18
|
when: is_F18 | bool
|
||||||
|
|
||||||
- name: Set KA Lite's SQLite filename (OS's other than Fedora 18)
|
- name: Set KA Lite's SQLite filename (OS's other than Fedora 18)
|
||||||
set_fact:
|
set_fact:
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
force: no
|
force: no
|
||||||
when: kiwix_force_install
|
when: kiwix_force_install | bool
|
||||||
|
|
||||||
- name: Create {{ kiwix_path }}/bin directory # /opt/iiab/kiwix/bin
|
- name: Create {{ kiwix_path }}/bin directory # /opt/iiab/kiwix/bin
|
||||||
file:
|
file:
|
||||||
|
@ -65,11 +65,11 @@
|
||||||
dest: /tmp
|
dest: /tmp
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
when: kiwix_force_install
|
when: kiwix_force_install | bool
|
||||||
|
|
||||||
- name: Move /tmp/{{ kiwix_src_dir }}/* to permanent location /opt/iiab/kiwix/bin (armhf & linux64 & i686)
|
- name: Move /tmp/{{ kiwix_src_dir }}/* to permanent location /opt/iiab/kiwix/bin (armhf & linux64 & i686)
|
||||||
shell: "mv /tmp/{{ kiwix_src_dir }}/* {{ kiwix_path }}/bin/"
|
shell: "mv /tmp/{{ kiwix_src_dir }}/* {{ kiwix_path }}/bin/"
|
||||||
when: kiwix_force_install
|
when: kiwix_force_install | bool
|
||||||
|
|
||||||
# 3. ENABLE MODS FOR APACHE PROXY IF DEBUNTU
|
# 3. ENABLE MODS FOR APACHE PROXY IF DEBUNTU
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@
|
||||||
- proxy_html
|
- proxy_html
|
||||||
- proxy_http
|
- proxy_http
|
||||||
- rewrite
|
- rewrite
|
||||||
when: is_debuntu
|
when: is_debuntu | bool
|
||||||
|
|
||||||
# 4. CREATE/ENABLE/RESTART (OR DISABLE) KIWIX SERVICE & ITS CRON JOB
|
# 4. CREATE/ENABLE/RESTART (OR DISABLE) KIWIX SERVICE & ITS CRON JOB
|
||||||
|
|
||||||
|
@ -106,14 +106,14 @@
|
||||||
src: /etc/apache2/sites-available/kiwix.conf
|
src: /etc/apache2/sites-available/kiwix.conf
|
||||||
path: /etc/apache2/sites-enabled/kiwix.conf
|
path: /etc/apache2/sites-enabled/kiwix.conf
|
||||||
state: link
|
state: link
|
||||||
when: is_debuntu
|
when: is_debuntu | bool
|
||||||
|
|
||||||
- name: Enable & Restart 'kiwix-serve' service
|
- name: Enable & Restart 'kiwix-serve' service
|
||||||
service:
|
service:
|
||||||
name: kiwix-serve
|
name: kiwix-serve
|
||||||
enabled: yes
|
enabled: yes
|
||||||
state: restarted
|
state: restarted
|
||||||
when: kiwix_enabled
|
when: kiwix_enabled | bool
|
||||||
|
|
||||||
- name: Disable 'kiwix-serve' service
|
- name: Disable 'kiwix-serve' service
|
||||||
service:
|
service:
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
url: "{{ iiab_download_url }}/{{ kiwix_src_file }}"
|
url: "{{ iiab_download_url }}/{{ kiwix_src_file }}"
|
||||||
dest: "{{ downloads_dir }}/{{ kiwix_src_file }}"
|
dest: "{{ downloads_dir }}/{{ kiwix_src_file }}"
|
||||||
timeout: "{{ download_timeout }}"
|
timeout: "{{ download_timeout }}"
|
||||||
when: internet_available
|
when: internet_available | bool
|
||||||
|
|
||||||
- name: Check for /opt/iiab/downloads/{{ kiwix_src_file }}
|
- name: Check for /opt/iiab/downloads/{{ kiwix_src_file }}
|
||||||
stat:
|
stat:
|
||||||
|
|
|
@ -27,17 +27,17 @@
|
||||||
virtualenv_site_packages: no
|
virtualenv_site_packages: no
|
||||||
state: latest
|
state: latest
|
||||||
extra_args: --no-cache-dir
|
extra_args: --no-cache-dir
|
||||||
when: internet_available
|
when: internet_available | bool
|
||||||
|
|
||||||
- name: Run Kolibri migrations
|
- name: Run Kolibri migrations
|
||||||
shell: export KOLIBRI_HOME="{{ kolibri_home }}" && "{{ kolibri_exec_path }}" manage migrate
|
shell: export KOLIBRI_HOME="{{ kolibri_home }}" && "{{ kolibri_exec_path }}" manage migrate
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
when: kolibri_provision
|
when: kolibri_provision | bool
|
||||||
|
|
||||||
- name: Set Kolibri default language
|
- name: Set Kolibri default language
|
||||||
shell: export KOLIBRI_HOME="{{ kolibri_home }}" && "{{ kolibri_exec_path }}" language setdefault "{{ kolibri_language }}"
|
shell: export KOLIBRI_HOME="{{ kolibri_home }}" && "{{ kolibri_exec_path }}" language setdefault "{{ kolibri_language }}"
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
when: kolibri_provision
|
when: kolibri_provision | bool
|
||||||
|
|
||||||
- name: Create Kolibri default facility name, admin account and language
|
- name: Create Kolibri default facility name, admin account and language
|
||||||
shell: >
|
shell: >
|
||||||
|
@ -46,7 +46,7 @@
|
||||||
--superusername "{{ kolibri_admin_user }}" --superuserpassword "{{ kolibri_admin_password }}"
|
--superusername "{{ kolibri_admin_user }}" --superuserpassword "{{ kolibri_admin_password }}"
|
||||||
--preset "{{ kolibri_preset }}" --language_id "{{ kolibri_language }}" --verbosity 0 --noinput
|
--preset "{{ kolibri_preset }}" --language_id "{{ kolibri_language }}" --verbosity 0 --noinput
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
when: kolibri_provision
|
when: kolibri_provision | bool
|
||||||
|
|
||||||
- name: chown -R {{ kolibri_user }}:{{ apache_user }} {{ kolibri_home }}
|
- name: chown -R {{ kolibri_user }}:{{ apache_user }} {{ kolibri_home }}
|
||||||
file:
|
file:
|
||||||
|
@ -72,12 +72,12 @@
|
||||||
enabled: yes
|
enabled: yes
|
||||||
state: restarted
|
state: restarted
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
when: kolibri_enabled
|
when: kolibri_enabled | bool
|
||||||
|
|
||||||
# Default: http://box/kolibri
|
# Default: http://box/kolibri
|
||||||
- name: Enable http://box{{ kolibri_url }} with Apache
|
- name: Enable http://box{{ kolibri_url }} with Apache
|
||||||
command: a2ensite kolibri.conf
|
command: a2ensite kolibri.conf
|
||||||
when: kolibri_enabled
|
when: kolibri_enabled | bool
|
||||||
|
|
||||||
- name: Disable kolibri service
|
- name: Disable kolibri service
|
||||||
systemd:
|
systemd:
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
virtualenv_command: python3 -m venv "{{ lokole_venv }}"
|
virtualenv_command: python3 -m venv "{{ lokole_venv }}"
|
||||||
tags:
|
tags:
|
||||||
- install
|
- install
|
||||||
when: internet_available
|
when: internet_available | bool
|
||||||
|
|
||||||
- name: Compile translations
|
- name: Compile translations
|
||||||
shell: |
|
shell: |
|
||||||
|
@ -73,7 +73,7 @@
|
||||||
name: lokole
|
name: lokole
|
||||||
enabled: yes
|
enabled: yes
|
||||||
state: restarted
|
state: restarted
|
||||||
when: lokole_enabled
|
when: lokole_enabled | bool
|
||||||
|
|
||||||
- name: Disable 'lokole' service, if not lokole_enabled
|
- name: Disable 'lokole' service, if not lokole_enabled
|
||||||
systemd:
|
systemd:
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
- name: Install Lokole {{ lokole_version }} if lokole_install
|
- name: Install Lokole {{ lokole_version }} if lokole_install
|
||||||
include_tasks: install.yml
|
include_tasks: install.yml
|
||||||
when: lokole_install
|
when: lokole_install | bool
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
timeout: "{{ download_timeout }}"
|
timeout: "{{ download_timeout }}"
|
||||||
#force: yes
|
#force: yes
|
||||||
#backup: yes
|
#backup: yes
|
||||||
when: internet_available
|
when: internet_available | bool
|
||||||
|
|
||||||
- name: Unpack it to permanent location {{ mediawiki_abs_path }}
|
- name: Unpack it to permanent location {{ mediawiki_abs_path }}
|
||||||
unarchive:
|
unarchive:
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
- name: Install MediaWiki {{ mediawiki_version }} if mediawiki_install
|
- name: Install MediaWiki {{ mediawiki_version }} if mediawiki_install
|
||||||
include_tasks: install.yml
|
include_tasks: install.yml
|
||||||
when: mediawiki_install
|
when: mediawiki_install | bool
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
# only works if server run as root
|
# only works if server run as root
|
||||||
minetest_runas_user: root
|
minetest_runas_user: root
|
||||||
minetest_runas_group: root
|
minetest_runas_group: root
|
||||||
when: is_rpi
|
when: is_rpi | bool
|
||||||
|
|
||||||
# For other installs
|
# For other installs
|
||||||
- name: Set some facts for other platforms
|
- name: Set some facts for other platforms
|
||||||
|
|
|
@ -78,7 +78,7 @@
|
||||||
name: minetest-server
|
name: minetest-server
|
||||||
enabled: yes
|
enabled: yes
|
||||||
state: restarted
|
state: restarted
|
||||||
when: minetest_enabled
|
when: minetest_enabled | bool
|
||||||
|
|
||||||
- name: Disable 'minetest-server' service
|
- name: Disable 'minetest-server' service
|
||||||
systemd:
|
systemd:
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
line: "{{ item.line }}"
|
line: "{{ item.line }}"
|
||||||
with_items:
|
with_items:
|
||||||
- { regexp: '^mg_name = ', line: 'mg_name = flat' }
|
- { regexp: '^mg_name = ', line: 'mg_name = flat' }
|
||||||
when: minetest_flat_world
|
when: minetest_flat_world | bool
|
||||||
|
|
||||||
- name: Create /library/games/minetest/worlds/world
|
- name: Create /library/games/minetest/worlds/world
|
||||||
file:
|
file:
|
||||||
|
|
|
@ -49,4 +49,4 @@
|
||||||
with_items:
|
with_items:
|
||||||
- { src: 'minetest.conf.j2', dest: '/etc/minetest/minetest.conf' }
|
- { src: 'minetest.conf.j2', dest: '/etc/minetest/minetest.conf' }
|
||||||
- { src: 'minetest-server.service.j2', dest: '/etc/systemd/system/minetest-server.service' }
|
- { src: 'minetest-server.service.j2', dest: '/etc/systemd/system/minetest-server.service' }
|
||||||
when: minetest_install
|
when: minetest_install | bool
|
||||||
|
|
|
@ -90,7 +90,7 @@
|
||||||
group:
|
group:
|
||||||
name: mongodb
|
name: mongodb
|
||||||
state: present
|
state: present
|
||||||
when: is_rpi
|
when: is_rpi | bool
|
||||||
|
|
||||||
- name: Create Linux user mongodb (rpi)
|
- name: Create Linux user mongodb (rpi)
|
||||||
user:
|
user:
|
||||||
|
@ -99,7 +99,7 @@
|
||||||
groups: mongodb
|
groups: mongodb
|
||||||
home: /var/lib/mongodb
|
home: /var/lib/mongodb
|
||||||
shell: /usr/sbin/nologin
|
shell: /usr/sbin/nologin
|
||||||
when: is_rpi
|
when: is_rpi | bool
|
||||||
|
|
||||||
|
|
||||||
# 2. CONFIGURE FOR IIAB
|
# 2. CONFIGURE FOR IIAB
|
||||||
|
@ -137,7 +137,7 @@
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
enabled: yes
|
enabled: yes
|
||||||
state: restarted
|
state: restarted
|
||||||
when: mongodb_enabled
|
when: mongodb_enabled | bool
|
||||||
|
|
||||||
- name: Disable 'mongodb' service, if not mongodb_enabled
|
- name: Disable 'mongodb' service, if not mongodb_enabled
|
||||||
systemd:
|
systemd:
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
force: yes
|
force: yes
|
||||||
mode: 0755
|
mode: 0755
|
||||||
register: monit_config
|
register: monit_config
|
||||||
when: false
|
when: false | bool
|
||||||
until: monit_config | success
|
until: monit_config | success
|
||||||
retries: 5
|
retries: 5
|
||||||
delay: 1
|
delay: 1
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
# mbstring is now included in php-cli
|
# mbstring is now included in php-cli
|
||||||
- php{{ php_version }}-cli
|
- php{{ php_version }}-cli
|
||||||
state: present
|
state: present
|
||||||
when: is_debuntu
|
when: is_debuntu | bool
|
||||||
|
|
||||||
- name: "Install package: php{{ php_version }}-zip (ubuntu or debian-9+)"
|
- name: "Install package: php{{ php_version }}-zip (ubuntu or debian-9+)"
|
||||||
package:
|
package:
|
||||||
|
@ -28,7 +28,7 @@
|
||||||
- name: "Install package: php-pclzip (debian-8)"
|
- name: "Install package: php-pclzip (debian-8)"
|
||||||
package:
|
package:
|
||||||
name: php-pclzip
|
name: php-pclzip
|
||||||
when: is_debian_8
|
when: is_debian_8 | bool
|
||||||
|
|
||||||
- name: Determine if Moodle is already downloaded
|
- name: Determine if Moodle is already downloaded
|
||||||
stat:
|
stat:
|
||||||
|
@ -80,7 +80,7 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
when: moodle_enabled
|
when: moodle_enabled | bool
|
||||||
|
|
||||||
- name: Create symlink 022-moodle.conf from sites-enabled to sites-available, if moodle_enabled (debuntu)
|
- name: Create symlink 022-moodle.conf from sites-enabled to sites-available, if moodle_enabled (debuntu)
|
||||||
file:
|
file:
|
||||||
|
@ -131,7 +131,7 @@
|
||||||
name: postgresql-iiab
|
name: postgresql-iiab
|
||||||
state: restarted
|
state: restarted
|
||||||
enabled: yes
|
enabled: yes
|
||||||
when: moodle_enabled
|
when: moodle_enabled | bool
|
||||||
|
|
||||||
- name: Restart Apache service ({{ apache_service }})
|
- name: Restart Apache service ({{ apache_service }})
|
||||||
service:
|
service:
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
with_items:
|
with_items:
|
||||||
- mosquitto
|
- mosquitto
|
||||||
- mosquitto-clients
|
- mosquitto-clients
|
||||||
when: mosquitto_install
|
when: mosquitto_install | bool
|
||||||
tags: download
|
tags: download
|
||||||
|
|
||||||
- name: Disable & Stop 'mosquitto' service
|
- name: Disable & Stop 'mosquitto' service
|
||||||
|
@ -13,18 +13,18 @@
|
||||||
name: mosquitto
|
name: mosquitto
|
||||||
enabled: no
|
enabled: no
|
||||||
state: stopped
|
state: stopped
|
||||||
when: mosquitto_install
|
when: mosquitto_install | bool
|
||||||
|
|
||||||
- name: Create (touch) file /etc/mosquitto/passwd
|
- name: Create (touch) file /etc/mosquitto/passwd
|
||||||
file:
|
file:
|
||||||
path: /etc/mosquitto/passwd
|
path: /etc/mosquitto/passwd
|
||||||
state: touch
|
state: touch
|
||||||
mode: "u=rw,g=r,o=r" # 0644
|
mode: "u=rw,g=r,o=r" # 0644
|
||||||
when: mosquitto_install
|
when: mosquitto_install | bool
|
||||||
|
|
||||||
- name: Populate /etc/mosquitto/passwd with actual username/password
|
- name: Populate /etc/mosquitto/passwd with actual username/password
|
||||||
shell: mosquitto_passwd -b /etc/mosquitto/passwd "{{ mosquitto_user }}" "{{ mosquitto_password }}"
|
shell: mosquitto_passwd -b /etc/mosquitto/passwd "{{ mosquitto_user }}" "{{ mosquitto_password }}"
|
||||||
when: mosquitto_install
|
when: mosquitto_install | bool
|
||||||
|
|
||||||
- name: Install /etc/mosquitto/conf.d/websockets.conf from template
|
- name: Install /etc/mosquitto/conf.d/websockets.conf from template
|
||||||
template:
|
template:
|
||||||
|
@ -34,7 +34,7 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0755
|
mode: 0755
|
||||||
when: mosquitto_install
|
when: mosquitto_install | bool
|
||||||
|
|
||||||
- name: Enable & Start 'mosquitto' service
|
- name: Enable & Start 'mosquitto' service
|
||||||
systemd:
|
systemd:
|
||||||
|
@ -42,4 +42,4 @@
|
||||||
name: mosquitto
|
name: mosquitto
|
||||||
enabled: yes
|
enabled: yes
|
||||||
state: started
|
state: started
|
||||||
when: mosquitto_enabled
|
when: mosquitto_enabled | bool
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
state: present
|
state: present
|
||||||
tags:
|
tags:
|
||||||
- download
|
- download
|
||||||
when: is_debuntu
|
when: is_debuntu | bool
|
||||||
|
|
||||||
- name: "Install 2 packages: munin, munin-node (OS's other than debuntu)"
|
- name: "Install 2 packages: munin, munin-node (OS's other than debuntu)"
|
||||||
package:
|
package:
|
||||||
|
@ -45,7 +45,7 @@
|
||||||
name: munin-node
|
name: munin-node
|
||||||
enabled: yes
|
enabled: yes
|
||||||
state: started
|
state: started
|
||||||
when: munin_enabled
|
when: munin_enabled | bool
|
||||||
|
|
||||||
- name: Create symlink munin24.conf from sites-enabled to sites-available (debuntu)
|
- name: Create symlink munin24.conf from sites-enabled to sites-available (debuntu)
|
||||||
file:
|
file:
|
||||||
|
@ -79,7 +79,7 @@
|
||||||
- /usr/share/munin/plugins/mysql_queries
|
- /usr/share/munin/plugins/mysql_queries
|
||||||
- /usr/share/munin/plugins/mysql_slowqueries
|
- /usr/share/munin/plugins/mysql_slowqueries
|
||||||
- /usr/share/munin/plugins/mysql_threads
|
- /usr/share/munin/plugins/mysql_threads
|
||||||
when: mysql_enabled
|
when: mysql_enabled | bool
|
||||||
|
|
||||||
- name: Add 'munin' variable values to {{ iiab_ini_file }}
|
- name: Add 'munin' variable values to {{ iiab_ini_file }}
|
||||||
ini_file:
|
ini_file:
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#- php{{ php_version }}-xml
|
#- php{{ php_version }}-xml
|
||||||
- php{{ php_version }}-xmlrpc
|
- php{{ php_version }}-xmlrpc
|
||||||
state: present
|
state: present
|
||||||
when: is_debuntu
|
when: is_debuntu | bool
|
||||||
tags:
|
tags:
|
||||||
- download
|
- download
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@
|
||||||
package:
|
package:
|
||||||
name: php-xml-parser
|
name: php-xml-parser
|
||||||
state: present
|
state: present
|
||||||
when: is_debian_8
|
when: is_debian_8 | bool
|
||||||
|
|
||||||
- name: "Install packages: mysql, MySQL-python and 9 php packages (OS's other than debuntu)"
|
- name: "Install packages: mysql, MySQL-python and 9 php packages (OS's other than debuntu)"
|
||||||
package:
|
package:
|
||||||
|
@ -64,13 +64,13 @@
|
||||||
systemd:
|
systemd:
|
||||||
name: "{{ mysql_service }}"
|
name: "{{ mysql_service }}"
|
||||||
state: started
|
state: started
|
||||||
when: mysql_enabled
|
when: mysql_enabled | bool
|
||||||
|
|
||||||
- name: Enable MySQL systemd service (upon subsequent boots) if mysql_enabled
|
- name: Enable MySQL systemd service (upon subsequent boots) if mysql_enabled
|
||||||
systemd:
|
systemd:
|
||||||
name: "{{ mysql_service }}"
|
name: "{{ mysql_service }}"
|
||||||
enabled: yes
|
enabled: yes
|
||||||
when: mysql_enabled
|
when: mysql_enabled | bool
|
||||||
|
|
||||||
# 'localhost' needs to be the last item for idempotency, see
|
# 'localhost' needs to be the last item for idempotency, see
|
||||||
# http://ansible.cc/docs/modules.html#mysql-user
|
# http://ansible.cc/docs/modules.html#mysql-user
|
||||||
|
@ -81,7 +81,7 @@
|
||||||
host: localhost
|
host: localhost
|
||||||
password: "{{ mysql_root_password }}"
|
password: "{{ mysql_root_password }}"
|
||||||
priv: "*.*:ALL,GRANT"
|
priv: "*.*:ALL,GRANT"
|
||||||
when: mysql_enabled
|
when: mysql_enabled | bool
|
||||||
|
|
||||||
- name: Install .my.cnf file from template, with root password credentials, if mysql_enabled
|
- name: Install .my.cnf file from template, with root password credentials, if mysql_enabled
|
||||||
template:
|
template:
|
||||||
|
@ -89,7 +89,7 @@
|
||||||
dest: /root/.my.cnf
|
dest: /root/.my.cnf
|
||||||
owner: root
|
owner: root
|
||||||
mode: 0600
|
mode: 0600
|
||||||
when: mysql_enabled
|
when: mysql_enabled | bool
|
||||||
|
|
||||||
- name: Update MySQL root password for all remaining root accounts (127.0.0.1, ::1) if mysql_enabled
|
- name: Update MySQL root password for all remaining root accounts (127.0.0.1, ::1) if mysql_enabled
|
||||||
mysql_user:
|
mysql_user:
|
||||||
|
@ -101,26 +101,26 @@
|
||||||
#- "{{ iiab_hostname }}.{{ iiab_domain }}"
|
#- "{{ iiab_hostname }}.{{ iiab_domain }}"
|
||||||
- 127.0.0.1
|
- 127.0.0.1
|
||||||
- ::1
|
- ::1
|
||||||
when: mysql_enabled
|
when: mysql_enabled | bool
|
||||||
|
|
||||||
- name: Delete anonymous MySQL server user for {{ ansible_hostname }}, if mysql_enabled
|
- name: Delete anonymous MySQL server user for {{ ansible_hostname }}, if mysql_enabled
|
||||||
mysql_user:
|
mysql_user:
|
||||||
user: ""
|
user: ""
|
||||||
host: "{{ ansible_hostname }}"
|
host: "{{ ansible_hostname }}"
|
||||||
state: absent
|
state: absent
|
||||||
when: mysql_enabled
|
when: mysql_enabled | bool
|
||||||
|
|
||||||
- name: Delete anonymous MySQL server user for localhost, if mysql_enabled
|
- name: Delete anonymous MySQL server user for localhost, if mysql_enabled
|
||||||
mysql_user:
|
mysql_user:
|
||||||
user: ""
|
user: ""
|
||||||
state: absent
|
state: absent
|
||||||
when: mysql_enabled
|
when: mysql_enabled | bool
|
||||||
|
|
||||||
- name: Remove the MySQL 'test' database, if mysql_enabled
|
- name: Remove the MySQL 'test' database, if mysql_enabled
|
||||||
mysql_db:
|
mysql_db:
|
||||||
db: test
|
db: test
|
||||||
state: absent
|
state: absent
|
||||||
when: mysql_enabled
|
when: mysql_enabled | bool
|
||||||
|
|
||||||
# we had to start mysql in order to configure it, now turn if off if not enabled
|
# we had to start mysql in order to configure it, now turn if off if not enabled
|
||||||
- name: Config is done but now DISABLE MySQL service, if not mysql_enabled
|
- name: Config is done but now DISABLE MySQL service, if not mysql_enabled
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
enabled: no
|
enabled: no
|
||||||
state: stopped
|
state: stopped
|
||||||
when: is_ubuntu and not is_ubuntu_16
|
when: is_ubuntu and not is_ubuntu_16
|
||||||
#when: is_ubuntu_18
|
#when: is_ubuntu_18 | bool
|
||||||
|
|
||||||
- name: Install systemd unit file to /etc/systemd/system/dhcpd.service
|
- name: Install systemd unit file to /etc/systemd/system/dhcpd.service
|
||||||
template:
|
template:
|
||||||
|
|
|
@ -107,7 +107,7 @@
|
||||||
- name: Netplan in use on Ubuntu 18.04+
|
- name: Netplan in use on Ubuntu 18.04+
|
||||||
include_tasks: netplan.yml
|
include_tasks: netplan.yml
|
||||||
when: is_ubuntu and not is_ubuntu_16
|
when: is_ubuntu and not is_ubuntu_16
|
||||||
#when: is_ubuntu_18
|
#when: is_ubuntu_18 | bool
|
||||||
#and not installing
|
#and not installing
|
||||||
tags:
|
tags:
|
||||||
- network
|
- network
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
url: "{{ nextcloud_dl_url }}/{{ nextcloud_orig_src_file }}"
|
url: "{{ nextcloud_dl_url }}/{{ nextcloud_orig_src_file }}"
|
||||||
dest: "{{ downloads_dir }}/{{ nextcloud_src_file }}"
|
dest: "{{ downloads_dir }}/{{ nextcloud_src_file }}"
|
||||||
timeout: "{{ download_timeout }}"
|
timeout: "{{ download_timeout }}"
|
||||||
when: internet_available
|
when: internet_available | bool
|
||||||
|
|
||||||
- name: Copy it to permanent location /opt
|
- name: Copy it to permanent location /opt
|
||||||
unarchive:
|
unarchive:
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
- "php{{ php_version }}-mbstring"
|
- "php{{ php_version }}-mbstring"
|
||||||
- "php{{ php_version }}-zip"
|
- "php{{ php_version }}-zip"
|
||||||
state: present
|
state: present
|
||||||
when: is_debian
|
when: is_debian | bool
|
||||||
|
|
||||||
# Ubuntu and Debian treat names differently
|
# Ubuntu and Debian treat names differently
|
||||||
- name: Install 4 php packages (ubuntu)
|
- name: Install 4 php packages (ubuntu)
|
||||||
|
@ -61,7 +61,7 @@
|
||||||
- php-zip
|
- php-zip
|
||||||
- php-mbstring
|
- php-mbstring
|
||||||
state: present
|
state: present
|
||||||
when: is_ubuntu
|
when: is_ubuntu | bool
|
||||||
|
|
||||||
- name: Install 5 more php packages (debuntu)
|
- name: Install 5 more php packages (debuntu)
|
||||||
package:
|
package:
|
||||||
|
@ -72,7 +72,7 @@
|
||||||
- "php{{ php_version }}-curl"
|
- "php{{ php_version }}-curl"
|
||||||
- "php{{ php_version }}-intl"
|
- "php{{ php_version }}-intl"
|
||||||
state: present
|
state: present
|
||||||
when: is_debuntu
|
when: is_debuntu | bool
|
||||||
|
|
||||||
- name: 'Install php{{ php_version }}-mcrypt IF this is a "pre-2018" distro in the debuntu family. NOTE: PHP 7.1 deprecated mcrypt 1-Dec-2016 and PHP 7.2 dropped it completely 30-Nov-2017, as it should no longer be nec.'
|
- name: 'Install php{{ php_version }}-mcrypt IF this is a "pre-2018" distro in the debuntu family. NOTE: PHP 7.1 deprecated mcrypt 1-Dec-2016 and PHP 7.2 dropped it completely 30-Nov-2017, as it should no longer be nec.'
|
||||||
package:
|
package:
|
||||||
|
@ -98,7 +98,7 @@
|
||||||
# CentOS does not have a package for php-imagick
|
# CentOS does not have a package for php-imagick
|
||||||
#- php-imagick
|
#- php-imagick
|
||||||
state: present
|
state: present
|
||||||
when: is_redhat
|
when: is_redhat | bool
|
||||||
|
|
||||||
- name: Unarchive {{ nextcloud_src_file_old }} to permanent location {{ nextcloud_prefix }}/nextcloud on older OS's lacking PHP 7.1+ # e.g. unpack nextcloud_latest-15.tar.bz2 to /opt/nextcloud
|
- name: Unarchive {{ nextcloud_src_file_old }} to permanent location {{ nextcloud_prefix }}/nextcloud on older OS's lacking PHP 7.1+ # e.g. unpack nextcloud_latest-15.tar.bz2 to /opt/nextcloud
|
||||||
unarchive:
|
unarchive:
|
||||||
|
@ -118,7 +118,7 @@
|
||||||
file:
|
file:
|
||||||
path: /etc/nextcloud
|
path: /etc/nextcloud
|
||||||
state: directory
|
state: directory
|
||||||
when: is_centos
|
when: is_centos | bool
|
||||||
|
|
||||||
- name: Install {{ nextcloud_prefix }}/nextcloud/config/autoconfig.php from template (centos)
|
- name: Install {{ nextcloud_prefix }}/nextcloud/config/autoconfig.php from template (centos)
|
||||||
template:
|
template:
|
||||||
|
@ -127,7 +127,7 @@
|
||||||
owner: "{{ apache_user }}"
|
owner: "{{ apache_user }}"
|
||||||
group: "{{ apache_user }}"
|
group: "{{ apache_user }}"
|
||||||
mode: 0640
|
mode: 0640
|
||||||
when: is_centos
|
when: is_centos | bool
|
||||||
|
|
||||||
- name: chown -R {{ apache_user }}:{{ apache_user }} {{ nextcloud_prefix }}/nextcloud
|
- name: chown -R {{ apache_user }}:{{ apache_user }} {{ nextcloud_prefix }}/nextcloud
|
||||||
file:
|
file:
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
when: nextcloud_enabled
|
when: nextcloud_enabled | bool
|
||||||
|
|
||||||
- name: Create symlink nextcloud.conf from sites-enabled to sites-available for http://box/nextcloud (debuntu)
|
- name: Create symlink nextcloud.conf from sites-enabled to sites-available for http://box/nextcloud (debuntu)
|
||||||
file:
|
file:
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
package:
|
package:
|
||||||
name: nodered
|
name: nodered
|
||||||
state: absent
|
state: absent
|
||||||
when: nodered_install
|
when: nodered_install | bool
|
||||||
|
|
||||||
# 2012-02-13: the 6 RPi stanzas below recreate Raspbian Desktop's Node-RED
|
# 2012-02-13: the 6 RPi stanzas below recreate Raspbian Desktop's Node-RED
|
||||||
# environment, inspired by:
|
# environment, inspired by:
|
||||||
|
@ -159,7 +159,7 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0666
|
mode: 0666
|
||||||
when: nodered_install
|
when: nodered_install | bool
|
||||||
|
|
||||||
- name: Install Apache's sites-available/nodered.conf from template
|
- name: Install Apache's sites-available/nodered.conf from template
|
||||||
template:
|
template:
|
||||||
|
@ -169,7 +169,7 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0666
|
mode: 0666
|
||||||
when: nodered_install
|
when: nodered_install | bool
|
||||||
|
|
||||||
- name: Create symlink nodered.conf from sites-enabled to sites-available, for short URL http://box/nodered (if nodered_enabled)
|
- name: Create symlink nodered.conf from sites-enabled to sites-available, for short URL http://box/nodered (if nodered_enabled)
|
||||||
file:
|
file:
|
||||||
|
@ -178,7 +178,7 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
state: link
|
state: link
|
||||||
when: nodered_enabled
|
when: nodered_enabled | bool
|
||||||
|
|
||||||
- name: Remove symlink /etc/apache2/sites-enabled/nodered.conf (if not nodered_enabled)
|
- name: Remove symlink /etc/apache2/sites-enabled/nodered.conf (if not nodered_enabled)
|
||||||
file:
|
file:
|
||||||
|
@ -190,14 +190,14 @@
|
||||||
apache2_module:
|
apache2_module:
|
||||||
state: present
|
state: present
|
||||||
name: proxy_wstunnel
|
name: proxy_wstunnel
|
||||||
when: nodered_install
|
when: nodered_install | bool
|
||||||
|
|
||||||
- name: Restart Apache service ({{ apache_service }}) to enable/disable http://box/nodered (not just http://box:{{ nodered_port }}/nodered)
|
- name: Restart Apache service ({{ apache_service }}) to enable/disable http://box/nodered (not just http://box:{{ nodered_port }}/nodered)
|
||||||
systemd:
|
systemd:
|
||||||
#daemon_reload: yes
|
#daemon_reload: yes
|
||||||
name: "{{ apache_service }}" # httpd or apache2
|
name: "{{ apache_service }}" # httpd or apache2
|
||||||
state: restarted
|
state: restarted
|
||||||
when: nodered_install
|
when: nodered_install | bool
|
||||||
|
|
||||||
- name: Enable & (Re)start 'nodered' systemd service (if nodered_enabled)
|
- name: Enable & (Re)start 'nodered' systemd service (if nodered_enabled)
|
||||||
systemd:
|
systemd:
|
||||||
|
@ -205,7 +205,7 @@
|
||||||
name: nodered
|
name: nodered
|
||||||
enabled: yes
|
enabled: yes
|
||||||
state: restarted
|
state: restarted
|
||||||
when: nodered_enabled
|
when: nodered_enabled | bool
|
||||||
|
|
||||||
- name: Disable & Stop 'nodered' systemd service (if not nodered_enabled)
|
- name: Disable & Stop 'nodered' systemd service (if not nodered_enabled)
|
||||||
systemd:
|
systemd:
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
- name: Install nodogsplash (Raspbian only)
|
- name: Install nodogsplash (Raspbian only)
|
||||||
include_tasks: rpi.yml
|
include_tasks: rpi.yml
|
||||||
when: is_rpi
|
when: is_rpi | bool
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
url: "{{ iiab_download_url }}/{{ nodogsplash_arm_deb }}"
|
url: "{{ iiab_download_url }}/{{ nodogsplash_arm_deb }}"
|
||||||
dest: "{{ downloads_dir }}/{{ nodogsplash_arm_deb }}"
|
dest: "{{ downloads_dir }}/{{ nodogsplash_arm_deb }}"
|
||||||
timeout: "{{ download_timeout }}"
|
timeout: "{{ download_timeout }}"
|
||||||
when: internet_available
|
when: internet_available | bool
|
||||||
#async: 300
|
#async: 300
|
||||||
#poll: 5
|
#poll: 5
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@
|
||||||
name: nodogsplash
|
name: nodogsplash
|
||||||
enabled: yes
|
enabled: yes
|
||||||
state: started
|
state: started
|
||||||
when: nodogsplash_enabled
|
when: nodogsplash_enabled | bool
|
||||||
|
|
||||||
- name: Disable 'nodogsplash' systemd service, if not nodogsplash_enabled
|
- name: Disable 'nodogsplash' systemd service, if not nodogsplash_enabled
|
||||||
systemd:
|
systemd:
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
regexp: "{{ item.regexp }}"
|
regexp: "{{ item.regexp }}"
|
||||||
path: /root/.ssh/authorized_keys
|
path: /root/.ssh/authorized_keys
|
||||||
#backup: yes
|
#backup: yes
|
||||||
when: openvpn_install
|
when: openvpn_install | bool
|
||||||
with_items:
|
with_items:
|
||||||
- regexp: "LvCSAAcfYIdZPR4ePVpVUZ/IbkGjpQSoRMa5HuVjMO3cZNR27ptqjNjq2husJOyhMFCOBTzo4thioGyTpBr4u3s=$" # Tim Moody
|
- regexp: "LvCSAAcfYIdZPR4ePVpVUZ/IbkGjpQSoRMa5HuVjMO3cZNR27ptqjNjq2husJOyhMFCOBTzo4thioGyTpBr4u3s=$" # Tim Moody
|
||||||
pubkey: "ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAhlQIh8ZPx4awdM0O6QNcPbx3qIZ39FHjF2YJ2SX3z7iLnYiz03Ek6Bux9P4HvaVAqlApiz2I68Vq8TfU2s/+LvCSAAcfYIdZPR4ePVpVUZ/IbkGjpQSoRMa5HuVjMO3cZNR27ptqjNjq2husJOyhMFCOBTzo4thioGyTpBr4u3s="
|
pubkey: "ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAhlQIh8ZPx4awdM0O6QNcPbx3qIZ39FHjF2YJ2SX3z7iLnYiz03Ek6Bux9P4HvaVAqlApiz2I68Vq8TfU2s/+LvCSAAcfYIdZPR4ePVpVUZ/IbkGjpQSoRMa5HuVjMO3cZNR27ptqjNjq2husJOyhMFCOBTzo4thioGyTpBr4u3s="
|
||||||
|
@ -117,7 +117,7 @@
|
||||||
# template:
|
# template:
|
||||||
# src: up_wan
|
# src: up_wan
|
||||||
# dest: /usr/lib/iiab/up_wan
|
# dest: /usr/lib/iiab/up_wan
|
||||||
# when: is_debuntu
|
# when: is_debuntu | bool
|
||||||
|
|
||||||
# Contained serious bug (15-openvpn called up-wan instead of up_wan in
|
# Contained serious bug (15-openvpn called up-wan instead of up_wan in
|
||||||
# /usr/lib/iiab/ as of August 2018) so evidently unused for ~2 years:
|
# /usr/lib/iiab/ as of August 2018) so evidently unused for ~2 years:
|
||||||
|
@ -178,7 +178,7 @@
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
enabled: yes
|
enabled: yes
|
||||||
state: restarted # 2018-09-02: Should we be concerned that "systemctl status openvpn" often shows "active (exited)" ? If so we might consider "state: started" or "state: reloaded" instead?
|
state: restarted # 2018-09-02: Should we be concerned that "systemctl status openvpn" often shows "active (exited)" ? If so we might consider "state: started" or "state: reloaded" instead?
|
||||||
when: openvpn_enabled
|
when: openvpn_enabled | bool
|
||||||
|
|
||||||
- name: Enable hourly cron job for OpenVPN (starts CHILD service openvpn@xscenet, typically for CentOS only?)
|
- name: Enable hourly cron job for OpenVPN (starts CHILD service openvpn@xscenet, typically for CentOS only?)
|
||||||
lineinfile:
|
lineinfile:
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
- libapache2-mod-wsgi
|
- libapache2-mod-wsgi
|
||||||
- libapache2-mod-xsendfile
|
- libapache2-mod-xsendfile
|
||||||
state: present
|
state: present
|
||||||
when: is_debuntu
|
when: is_debuntu | bool
|
||||||
|
|
||||||
- name: Install 6 OSM required packages (not debuntu)
|
- name: Install 6 OSM required packages (not debuntu)
|
||||||
package:
|
package:
|
||||||
|
@ -110,7 +110,7 @@
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
backup: no
|
backup: no
|
||||||
when: osm_enabled
|
when: osm_enabled | bool
|
||||||
|
|
||||||
- name: Create softlink osm.conf from sites-enabled to sites-available (debuntu)
|
- name: Create softlink osm.conf from sites-enabled to sites-available (debuntu)
|
||||||
file:
|
file:
|
||||||
|
@ -144,7 +144,7 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
state: link
|
state: link
|
||||||
when: osm_enabled
|
when: osm_enabled | bool
|
||||||
|
|
||||||
- name: Create dir /library/knowledge/modules
|
- name: Create dir /library/knowledge/modules
|
||||||
file:
|
file:
|
||||||
|
@ -165,7 +165,7 @@
|
||||||
- { src: 'map.html', dest: "{{ osm_path }}/static/map.html" }
|
- { src: 'map.html', dest: "{{ osm_path }}/static/map.html" }
|
||||||
- { src: 'l.control.geosearch.js', dest: "{{ osm_path }}/static/lib/leaflet/geosearch/l.control.geosearch.js" }
|
- { src: 'l.control.geosearch.js', dest: "{{ osm_path }}/static/lib/leaflet/geosearch/l.control.geosearch.js" }
|
||||||
- { src: "{{ osm_path }}/static/map.html", dest: "{{ osm_path }}/static/index.html" }
|
- { src: "{{ osm_path }}/static/map.html", dest: "{{ osm_path }}/static/index.html" }
|
||||||
when: osm_enabled
|
when: osm_enabled | bool
|
||||||
|
|
||||||
- name: Restart httpd service
|
- name: Restart httpd service
|
||||||
service:
|
service:
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
- name: add a repo def for ubuntu
|
- name: add a repo def for ubuntu
|
||||||
template: dest=/etc/apt/sources.list.d/
|
template: dest=/etc/apt/sources.list.d/
|
||||||
src=owncloud.list
|
src=owncloud.list
|
||||||
when: is_ubuntu
|
when: is_ubuntu | bool
|
||||||
|
|
||||||
- name: See if the owncloud startup page exists
|
- name: See if the owncloud startup page exists
|
||||||
stat: path={{ owncloud_prefix }}/owncloud/index.php
|
stat: path={{ owncloud_prefix }}/owncloud/index.php
|
||||||
|
@ -40,7 +40,7 @@
|
||||||
|
|
||||||
- name: Get the owncloud software
|
- name: Get the owncloud software
|
||||||
get_url: url={{ iiab_download_url }}/{{ owncloud_src_file }} dest={{ downloads_dir }}/{{ owncloud_src_file }}
|
get_url: url={{ iiab_download_url }}/{{ owncloud_src_file }} dest={{ downloads_dir }}/{{ owncloud_src_file }}
|
||||||
when: internet_available
|
when: internet_available | bool
|
||||||
async: 300
|
async: 300
|
||||||
poll: 5
|
poll: 5
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@
|
||||||
- name: Copy it to permanent location /opt
|
- name: Copy it to permanent location /opt
|
||||||
unarchive: src={{ downloads_dir }}/{{ owncloud_src_file }}
|
unarchive: src={{ downloads_dir }}/{{ owncloud_src_file }}
|
||||||
dest={{ owncloud_prefix }}
|
dest={{ owncloud_prefix }}
|
||||||
when: is_F18
|
when: is_F18 | bool
|
||||||
|
|
||||||
- name: in Centos, the following config dir is symlink to /etc/owncloud
|
- name: in Centos, the following config dir is symlink to /etc/owncloud
|
||||||
file: path=/etc/owncloud
|
file: path=/etc/owncloud
|
||||||
|
@ -103,7 +103,7 @@
|
||||||
# Enable owncloud by copying template to httpd config
|
# Enable owncloud by copying template to httpd config
|
||||||
|
|
||||||
- include_tasks: owncloud_enabled.yml
|
- include_tasks: owncloud_enabled.yml
|
||||||
when: owncloud_enabled
|
when: owncloud_enabled | bool
|
||||||
|
|
||||||
- name: Add 'owncloud' variable values to {{ iiab_ini_file }}
|
- name: Add 'owncloud' variable values to {{ iiab_ini_file }}
|
||||||
ini_file:
|
ini_file:
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
- libapache2-mod-wsgi
|
- libapache2-mod-wsgi
|
||||||
- libxml2-dev
|
- libxml2-dev
|
||||||
- libxslt-dev
|
- libxslt-dev
|
||||||
when: is_debuntu
|
when: is_debuntu | bool
|
||||||
|
|
||||||
- name: Install Pathagar prerequisites (not debuntu)
|
- name: Install Pathagar prerequisites (not debuntu)
|
||||||
package:
|
package:
|
||||||
|
@ -69,7 +69,7 @@
|
||||||
- django-tagging==0.3.1
|
- django-tagging==0.3.1
|
||||||
- django-sendfile==0.3.6
|
- django-sendfile==0.3.6
|
||||||
- lxml==3.4.4
|
- lxml==3.4.4
|
||||||
when: internet_available
|
when: internet_available | bool
|
||||||
|
|
||||||
- name: Install Pathagar requirements in a virtualenv
|
- name: Install Pathagar requirements in a virtualenv
|
||||||
pip:
|
pip:
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
url: "{{ asterisk_url }}/{{ asterisk_src_file }}"
|
url: "{{ asterisk_url }}/{{ asterisk_src_file }}"
|
||||||
dest: "{{ downloads_dir }}/{{ asterisk_src_file }}"
|
dest: "{{ downloads_dir }}/{{ asterisk_src_file }}"
|
||||||
timeout: "{{ download_timeout }}"
|
timeout: "{{ download_timeout }}"
|
||||||
when: internet_available
|
when: internet_available | bool
|
||||||
|
|
||||||
- name: Asterisk - Check for /opt/iiab/downloads/{{ asterisk_src_file }}
|
- name: Asterisk - Check for /opt/iiab/downloads/{{ asterisk_src_file }}
|
||||||
stat:
|
stat:
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
url: "{{ chan_dongle_url }}/{{ chan_dongle_src_file }}"
|
url: "{{ chan_dongle_url }}/{{ chan_dongle_src_file }}"
|
||||||
dest: "{{ downloads_dir }}/{{ chan_dongle_src_file }}"
|
dest: "{{ downloads_dir }}/{{ chan_dongle_src_file }}"
|
||||||
timeout: "{{ download_timeout }}"
|
timeout: "{{ download_timeout }}"
|
||||||
when: internet_available
|
when: internet_available | bool
|
||||||
|
|
||||||
- name: chan_dongle - Check for /opt/iiab/downloads/{{ chan_dongle_src_file }}
|
- name: chan_dongle - Check for /opt/iiab/downloads/{{ chan_dongle_src_file }}
|
||||||
stat:
|
stat:
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
url: "{{ freepbx_url }}/{{ freepbx_src_file }}"
|
url: "{{ freepbx_url }}/{{ freepbx_src_file }}"
|
||||||
dest: "{{ downloads_dir }}/{{ freepbx_src_file }}"
|
dest: "{{ downloads_dir }}/{{ freepbx_src_file }}"
|
||||||
timeout: "{{ download_timeout }}"
|
timeout: "{{ download_timeout }}"
|
||||||
when: internet_available
|
when: internet_available | bool
|
||||||
|
|
||||||
- name: FreePBX - Check for {{ downloads_dir }}/{{ freepbx_src_file }}
|
- name: FreePBX - Check for {{ downloads_dir }}/{{ freepbx_src_file }}
|
||||||
stat:
|
stat:
|
||||||
|
@ -121,7 +121,7 @@
|
||||||
src: /etc/apache2/sites-available/freepbx.conf
|
src: /etc/apache2/sites-available/freepbx.conf
|
||||||
dest: /etc/apache2/sites-enabled/freepbx.conf
|
dest: /etc/apache2/sites-enabled/freepbx.conf
|
||||||
state: link
|
state: link
|
||||||
when: pbx_enabled
|
when: pbx_enabled | bool
|
||||||
|
|
||||||
- name: FreePBX - Remove symlink /etc/apache2/sites-enabled/freepbx.conf (if not pbx_enabled)
|
- name: FreePBX - Remove symlink /etc/apache2/sites-enabled/freepbx.conf (if not pbx_enabled)
|
||||||
file:
|
file:
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
name: freepbx
|
name: freepbx
|
||||||
enabled: yes
|
enabled: yes
|
||||||
state: restarted
|
state: restarted
|
||||||
when: pbx_enabled
|
when: pbx_enabled | bool
|
||||||
|
|
||||||
- name: FreePBX - Disable & Stop 'freepbx' systemd service (if not pbx_enabled)
|
- name: FreePBX - Disable & Stop 'freepbx' systemd service (if not pbx_enabled)
|
||||||
systemd:
|
systemd:
|
||||||
|
|
|
@ -44,4 +44,4 @@
|
||||||
|
|
||||||
- name: Asterisk - Install chan_dongle
|
- name: Asterisk - Install chan_dongle
|
||||||
include: chan_dongle.yml
|
include: chan_dongle.yml
|
||||||
when: asterisk_chan_dongle
|
when: asterisk_chan_dongle | bool
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
dest: "{{ downloads_dir }}"
|
dest: "{{ downloads_dir }}"
|
||||||
timeout: "{{ download_timeout }}"
|
timeout: "{{ download_timeout }}"
|
||||||
#register: phpmyadmin_dl_output
|
#register: phpmyadmin_dl_output
|
||||||
when: internet_available
|
when: internet_available | bool
|
||||||
|
|
||||||
- name: Does {{ downloads_dir }}/{{ phpmyadmin_name_zip }} exist? # e.g. /opt/iiab/downloads/phpMyAdmin-4.8.3-all-languages.zip
|
- name: Does {{ downloads_dir }}/{{ phpmyadmin_name_zip }} exist? # e.g. /opt/iiab/downloads/phpMyAdmin-4.8.3-all-languages.zip
|
||||||
stat:
|
stat:
|
||||||
|
@ -50,7 +50,7 @@
|
||||||
template:
|
template:
|
||||||
src: phpmyadmin.j2
|
src: phpmyadmin.j2
|
||||||
dest: "/etc/{{ apache_config_dir }}/phpmyadmin.conf"
|
dest: "/etc/{{ apache_config_dir }}/phpmyadmin.conf"
|
||||||
when: phpmyadmin_enabled
|
when: phpmyadmin_enabled | bool
|
||||||
|
|
||||||
- name: Create symlink phpmyadmin.conf from sites-enabled to sites-available (debuntu)
|
- name: Create symlink phpmyadmin.conf from sites-enabled to sites-available (debuntu)
|
||||||
file:
|
file:
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
package:
|
package:
|
||||||
name: postgresql-client
|
name: postgresql-client
|
||||||
state: present
|
state: present
|
||||||
when: is_debuntu
|
when: is_debuntu | bool
|
||||||
tags:
|
tags:
|
||||||
- download
|
- download
|
||||||
|
|
||||||
|
@ -41,11 +41,11 @@
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/locale.gen
|
dest: /etc/locale.gen
|
||||||
line: "{{ postgresql_locale }} UTF-8"
|
line: "{{ postgresql_locale }} UTF-8"
|
||||||
when: is_debuntu
|
when: is_debuntu | bool
|
||||||
|
|
||||||
- name: Generate locales (debuntu)
|
- name: Generate locales (debuntu)
|
||||||
command: /usr/sbin/locale-gen
|
command: /usr/sbin/locale-gen
|
||||||
when: is_debuntu
|
when: is_debuntu | bool
|
||||||
|
|
||||||
- name: Initialize the PostgreSQL db, creating /library/pgsql-iiab/pg_hba.conf (debuntu)
|
- name: Initialize the PostgreSQL db, creating /library/pgsql-iiab/pg_hba.conf (debuntu)
|
||||||
#command: su - postgres -c "/usr/lib/postgresql/{{ postgresql_version }}/bin/initdb -E 'UTF-8' --locale={{ postgresql_locale }} -D /library/pgsql-iiab"
|
#command: su - postgres -c "/usr/lib/postgresql/{{ postgresql_version }}/bin/initdb -E 'UTF-8' --locale={{ postgresql_locale }} -D /library/pgsql-iiab"
|
||||||
|
@ -54,7 +54,7 @@
|
||||||
creates: /library/pgsql-iiab/pg_hba.conf
|
creates: /library/pgsql-iiab/pg_hba.conf
|
||||||
become: yes
|
become: yes
|
||||||
become_user: postgres
|
become_user: postgres
|
||||||
when: is_debuntu
|
when: is_debuntu | bool
|
||||||
|
|
||||||
- name: Initialize the PostgreSQL db, creating /library/pgsql-iiab/pg_hba.conf (OS's other than debuntu)
|
- name: Initialize the PostgreSQL db, creating /library/pgsql-iiab/pg_hba.conf (OS's other than debuntu)
|
||||||
#command: su - postgres -c "/usr/bin/initdb -E 'UTF-8' --lc-collate={{ postgresql_locale }} --lc-ctype={{ postgresql_locale }} -D /library/pgsql-iiab"
|
#command: su - postgres -c "/usr/bin/initdb -E 'UTF-8' --lc-collate={{ postgresql_locale }} --lc-ctype={{ postgresql_locale }} -D /library/pgsql-iiab"
|
||||||
|
@ -91,7 +91,7 @@
|
||||||
name: postgresql-iiab
|
name: postgresql-iiab
|
||||||
state: started
|
state: started
|
||||||
enabled: yes
|
enabled: yes
|
||||||
when: postgresql_enabled
|
when: postgresql_enabled | bool
|
||||||
|
|
||||||
- name: Disable postgresql-iiab service, if not postgresql_enabled
|
- name: Disable postgresql-iiab service, if not postgresql_enabled
|
||||||
systemd:
|
systemd:
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
enabled: yes
|
enabled: yes
|
||||||
tags:
|
tags:
|
||||||
- samba
|
- samba
|
||||||
when: samba_enabled
|
when: samba_enabled | bool
|
||||||
|
|
||||||
- name: Enable & Start NetBIOS name server ({{ nmb_service }})
|
- name: Enable & Start NetBIOS name server ({{ nmb_service }})
|
||||||
service:
|
service:
|
||||||
|
@ -46,7 +46,7 @@
|
||||||
enabled: yes
|
enabled: yes
|
||||||
tags:
|
tags:
|
||||||
- samba
|
- samba
|
||||||
when: samba_enabled
|
when: samba_enabled | bool
|
||||||
|
|
||||||
- name: Disable Samba if not samba_enabled
|
- name: Disable Samba if not samba_enabled
|
||||||
service:
|
service:
|
||||||
|
|
|
@ -41,13 +41,13 @@
|
||||||
service: name=docker
|
service: name=docker
|
||||||
state=restarted
|
state=restarted
|
||||||
enabled=yes
|
enabled=yes
|
||||||
when: schooltool_enabled
|
when: schooltool_enabled | bool
|
||||||
|
|
||||||
- name: Enable schooltool
|
- name: Enable schooltool
|
||||||
service: name=schooltool
|
service: name=schooltool
|
||||||
state=started
|
state=started
|
||||||
enabled=yes
|
enabled=yes
|
||||||
when: schooltool_enabled
|
when: schooltool_enabled | bool
|
||||||
|
|
||||||
- name: Disable schooltool
|
- name: Disable schooltool
|
||||||
service: name=schooltool
|
service: name=schooltool
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
package:
|
package:
|
||||||
name: "{{ sshd_package }}"
|
name: "{{ sshd_package }}"
|
||||||
state: present
|
state: present
|
||||||
when: sshd_enabled
|
when: sshd_enabled | bool
|
||||||
|
|
||||||
- name: Disable root login with password
|
- name: Disable root login with password
|
||||||
lineinfile:
|
lineinfile:
|
||||||
|
@ -10,7 +10,7 @@
|
||||||
regexp: '^PermitRootLogin'
|
regexp: '^PermitRootLogin'
|
||||||
line: 'PermitRootLogin without-password'
|
line: 'PermitRootLogin without-password'
|
||||||
state: present
|
state: present
|
||||||
when: sshd_enabled
|
when: sshd_enabled | bool
|
||||||
#TODO: use handler to reload ssh
|
#TODO: use handler to reload ssh
|
||||||
|
|
||||||
- name: Create root .ssh
|
- name: Create root .ssh
|
||||||
|
@ -20,7 +20,7 @@
|
||||||
group: root
|
group: root
|
||||||
mode: 0700
|
mode: 0700
|
||||||
state: directory
|
state: directory
|
||||||
when: sshd_enabled
|
when: sshd_enabled | bool
|
||||||
|
|
||||||
- name: Install dummy root keys as placeholder
|
- name: Install dummy root keys as placeholder
|
||||||
copy:
|
copy:
|
||||||
|
@ -30,14 +30,14 @@
|
||||||
group: root
|
group: root
|
||||||
mode: 0600
|
mode: 0600
|
||||||
force: no
|
force: no
|
||||||
when: sshd_enabled
|
when: sshd_enabled | bool
|
||||||
|
|
||||||
- name: Enable & start ssh daemon
|
- name: Enable & start ssh daemon
|
||||||
service:
|
service:
|
||||||
name: "{{ sshd_service }}"
|
name: "{{ sshd_service }}"
|
||||||
enabled: yes
|
enabled: yes
|
||||||
state: started
|
state: started
|
||||||
when: sshd_enabled
|
when: sshd_enabled | bool
|
||||||
|
|
||||||
- name: Disable ssh daemon
|
- name: Disable ssh daemon
|
||||||
service:
|
service:
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
- name: Enable sugar-stats service
|
- name: Enable sugar-stats service
|
||||||
service: name=sugar-stats-server
|
service: name=sugar-stats-server
|
||||||
enabled=yes
|
enabled=yes
|
||||||
when: sugar_stats_enabled
|
when: sugar_stats_enabled | bool
|
||||||
|
|
||||||
- name: Disable sugar-stats service
|
- name: Disable sugar-stats service
|
||||||
service: name=sugar-stats-server
|
service: name=sugar-stats-server
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
- name: Install statistics-consolidation with pip
|
- name: Install statistics-consolidation with pip
|
||||||
pip: name=stats-consolidation version=2.1.2
|
pip: name=stats-consolidation version=2.1.2
|
||||||
when: internet_available
|
when: internet_available | bool
|
||||||
|
|
||||||
- name: Install required libraries
|
- name: Install required libraries
|
||||||
package: name={{ item }}
|
package: name={{ item }}
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
version: "{{ sugarizer_git_version }}"
|
version: "{{ sugarizer_git_version }}"
|
||||||
force: yes
|
force: yes
|
||||||
depth: 1
|
depth: 1
|
||||||
when: internet_available
|
when: internet_available | bool
|
||||||
|
|
||||||
- name: Create symlink /opt/iiab/sugarizer -> /opt/iiab/{{ sugarizer_dir_version }}
|
- name: Create symlink /opt/iiab/sugarizer -> /opt/iiab/{{ sugarizer_dir_version }}
|
||||||
file:
|
file:
|
||||||
|
@ -46,7 +46,7 @@
|
||||||
version: "{{ sugarizer_server_git_version }}"
|
version: "{{ sugarizer_server_git_version }}"
|
||||||
force: yes
|
force: yes
|
||||||
depth: 1
|
depth: 1
|
||||||
when: internet_available
|
when: internet_available | bool
|
||||||
|
|
||||||
- name: Create symlink /opt/iiab/sugarizer-server -> /opt/iiab/{{ sugarizer_server_dir_version }}
|
- name: Create symlink /opt/iiab/sugarizer-server -> /opt/iiab/{{ sugarizer_server_dir_version }}
|
||||||
file:
|
file:
|
||||||
|
@ -133,7 +133,7 @@
|
||||||
command: npm install --allow-root --unsafe-perm=true path-prefix-proxy
|
command: npm install --allow-root --unsafe-perm=true path-prefix-proxy
|
||||||
args:
|
args:
|
||||||
chdir: "{{ iiab_base }}/sugarizer-server"
|
chdir: "{{ iiab_base }}/sugarizer-server"
|
||||||
when: internet_available
|
when: internet_available | bool
|
||||||
|
|
||||||
|
|
||||||
# 5. CONFIG FILES
|
# 5. CONFIG FILES
|
||||||
|
@ -244,7 +244,7 @@
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
enabled: yes
|
enabled: yes
|
||||||
state: restarted
|
state: restarted
|
||||||
when: sugarizer_enabled
|
when: sugarizer_enabled | bool
|
||||||
|
|
||||||
- name: Disable & Stop 'sugarizer' systemd service (if not sugarizer_enabled)
|
- name: Disable & Stop 'sugarizer' systemd service (if not sugarizer_enabled)
|
||||||
systemd:
|
systemd:
|
||||||
|
@ -258,7 +258,7 @@
|
||||||
systemd:
|
systemd:
|
||||||
name: "{{ apache_service }}" # httpd or apache2
|
name: "{{ apache_service }}" # httpd or apache2
|
||||||
state: restarted
|
state: restarted
|
||||||
#when: sugarizer_enabled
|
#when: sugarizer_enabled | bool
|
||||||
|
|
||||||
#- name: Enable services (all OS's)
|
#- name: Enable services (all OS's)
|
||||||
# service:
|
# service:
|
||||||
|
@ -268,7 +268,7 @@
|
||||||
# with_items:
|
# with_items:
|
||||||
## - { name: mongodb } # 2018-07-14: NICE TRY, but still doesn't bring http://box:8089 to life reliably, as a reboot usually does! (Is a "systemctl daemon-reload" or some such nec?)
|
## - { name: mongodb } # 2018-07-14: NICE TRY, but still doesn't bring http://box:8089 to life reliably, as a reboot usually does! (Is a "systemctl daemon-reload" or some such nec?)
|
||||||
# - { name: sugarizer }
|
# - { name: sugarizer }
|
||||||
# when: sugarizer_enabled
|
# when: sugarizer_enabled | bool
|
||||||
|
|
||||||
#- name: Disable service (all OS's)
|
#- name: Disable service (all OS's)
|
||||||
# service:
|
# service:
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
url: "{{ teamviewer_url }}/{{ teamviewer_rpm_file }}"
|
url: "{{ teamviewer_url }}/{{ teamviewer_rpm_file }}"
|
||||||
dest: "{{ yum_packages_dir }}/{{ teamviewer_rpm_file }}"
|
dest: "{{ yum_packages_dir }}/{{ teamviewer_rpm_file }}"
|
||||||
timeout: "{{ download_timeout }}"
|
timeout: "{{ download_timeout }}"
|
||||||
when: internet_available
|
when: internet_available | bool
|
||||||
tags:
|
tags:
|
||||||
- download
|
- download
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
- name: Install Teamviewer if intel
|
- name: Install Teamviewer if intel
|
||||||
include_tasks: install.yml
|
include_tasks: install.yml
|
||||||
when: teamviewer_install
|
when: teamviewer_install | bool
|
||||||
|
|
||||||
- name: Add 'teamviewer' variable values to {{ iiab_ini_file }}
|
- name: Add 'teamviewer' variable values to {{ iiab_ini_file }}
|
||||||
ini_file:
|
ini_file:
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
enabled: yes
|
enabled: yes
|
||||||
state: restarted
|
state: restarted
|
||||||
when: transmission_enabled
|
when: transmission_enabled | bool
|
||||||
|
|
||||||
- name: Add PAUSED KA Lite torrent(s) to transmission-daemon's queue
|
- name: Add PAUSED KA Lite torrent(s) to transmission-daemon's queue
|
||||||
shell: >
|
shell: >
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0751
|
mode: 0751
|
||||||
when: usb_lib_enabled
|
when: usb_lib_enabled | bool
|
||||||
|
|
||||||
- name: 'Install from template: /etc/udev/rules.d/usbmount.rules, /etc/systemd/system/usbmount@.service, /usr/bin/iiab-usb-lib-show-all-on, /usr/bin/iiab-usb-lib-show-all-off'
|
- name: 'Install from template: /etc/udev/rules.d/usbmount.rules, /etc/systemd/system/usbmount@.service, /usr/bin/iiab-usb-lib-show-all-on, /usr/bin/iiab-usb-lib-show-all-off'
|
||||||
template:
|
template:
|
||||||
|
@ -39,7 +39,7 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0751
|
mode: 0751
|
||||||
when: usb_lib_enabled
|
when: usb_lib_enabled | bool
|
||||||
|
|
||||||
- name: Remove /etc/usbmount/mount.d/70-usb-library if not usb_lib_enabled
|
- name: Remove /etc/usbmount/mount.d/70-usb-library if not usb_lib_enabled
|
||||||
file:
|
file:
|
||||||
|
@ -63,14 +63,14 @@
|
||||||
template:
|
template:
|
||||||
src: content_dir.conf
|
src: content_dir.conf
|
||||||
dest: "/etc/{{ apache_config_dir }}"
|
dest: "/etc/{{ apache_config_dir }}"
|
||||||
when: usb_lib_enabled
|
when: usb_lib_enabled | bool
|
||||||
|
|
||||||
- name: Create symlink content_dir.conf from sites-enabled to sites-available (debuntu)
|
- name: Create symlink content_dir.conf from sites-enabled to sites-available (debuntu)
|
||||||
file:
|
file:
|
||||||
src: "/etc/{{ apache_config_dir }}/content_dir.conf"
|
src: "/etc/{{ apache_config_dir }}/content_dir.conf"
|
||||||
dest: /etc/apache2/sites-enabled/content_dir.conf
|
dest: /etc/apache2/sites-enabled/content_dir.conf
|
||||||
state: link
|
state: link
|
||||||
when: is_debuntu
|
when: is_debuntu | bool
|
||||||
|
|
||||||
- name: Remove symlink content_dir.conf from /etc/apache2/sites-enabled (debuntu)
|
- name: Remove symlink content_dir.conf from /etc/apache2/sites-enabled (debuntu)
|
||||||
file:
|
file:
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
# force: yes
|
# force: yes
|
||||||
# backup: yes
|
# backup: yes
|
||||||
register: wp_download_output
|
register: wp_download_output
|
||||||
when: internet_available
|
when: internet_available | bool
|
||||||
|
|
||||||
- name: Create symlink from /opt/iiab/downloads/wordpress.tar.gz to {{ wp_download_output.dest }}
|
- name: Create symlink from /opt/iiab/downloads/wordpress.tar.gz to {{ wp_download_output.dest }}
|
||||||
file:
|
file:
|
||||||
|
|
|
@ -2,4 +2,4 @@
|
||||||
|
|
||||||
- name: Install WordPress if wordpress_install
|
- name: Install WordPress if wordpress_install
|
||||||
include_tasks: install.yml
|
include_tasks: install.yml
|
||||||
when: wordpress_install
|
when: wordpress_install | bool
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
- python-pip
|
- python-pip
|
||||||
- nodejs
|
- nodejs
|
||||||
- npm
|
- npm
|
||||||
when: internet_available
|
when: internet_available | bool
|
||||||
|
|
||||||
- name: Determine if xovis is already downloaded
|
- name: Determine if xovis is already downloaded
|
||||||
stat: path={{ downloadds_dir }}/xovis/xxx
|
stat: path={{ downloadds_dir }}/xovis/xxx
|
||||||
|
@ -23,7 +23,7 @@
|
||||||
npm: name=kanso
|
npm: name=kanso
|
||||||
global=yes
|
global=yes
|
||||||
path={{ downloads_dir }}
|
path={{ downloads_dir }}
|
||||||
when: internet_available
|
when: internet_available | bool
|
||||||
|
|
||||||
- name: move the xovis repo into place
|
- name: move the xovis repo into place
|
||||||
shell: "cp -rp {{ downloads_dir }}/xovis {{ xovis_root }}"
|
shell: "cp -rp {{ downloads_dir }}/xovis {{ xovis_root }}"
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
|
|
||||||
- name: Install the xovis python dependencies
|
- name: Install the xovis python dependencies
|
||||||
pip: requirements={{ xovis_root }}/process_stats/requirements.txt
|
pip: requirements={{ xovis_root }}/process_stats/requirements.txt
|
||||||
when: internet_available
|
when: internet_available | bool
|
||||||
|
|
||||||
- name: Update xovis repo with Chart Heading
|
- name: Update xovis repo with Chart Heading
|
||||||
lineinfile: dest="{{ xovis_root }}/index.html" regexp='(.+)<h1>(.*)</h1>' line='\1<h1>{{ xovis_chart_heading }}</h1>' backrefs=yes
|
lineinfile: dest="{{ xovis_root }}/index.html" regexp='(.+)<h1>(.*)</h1>' line='\1<h1>{{ xovis_chart_heading }}</h1>' backrefs=yes
|
||||||
|
@ -49,17 +49,17 @@
|
||||||
service: name=couchdb
|
service: name=couchdb
|
||||||
enabled=yes
|
enabled=yes
|
||||||
state=started
|
state=started
|
||||||
when: xovis_enabled
|
when: xovis_enabled | bool
|
||||||
|
|
||||||
- name: Wait for CouchDB to become ready
|
- name: Wait for CouchDB to become ready
|
||||||
wait_for: port=5984
|
wait_for: port=5984
|
||||||
delay=1
|
delay=1
|
||||||
timeout=5
|
timeout=5
|
||||||
when: xovis_enabled
|
when: xovis_enabled | bool
|
||||||
|
|
||||||
- name: Add admin user
|
- name: Add admin user
|
||||||
command: curl -X PUT {{ xovis_target_host }}/_config/admins/{{ xovis_db_user }} -d "\"{{ xovis_db_password }}\""
|
command: curl -X PUT {{ xovis_target_host }}/_config/admins/{{ xovis_db_user }} -d "\"{{ xovis_db_password }}\""
|
||||||
when: xovis_enabled
|
when: xovis_enabled | bool
|
||||||
|
|
||||||
- name: Check if db exists
|
- name: Check if db exists
|
||||||
shell: "kanso listdb | grep {{ xovis_db_name }}"
|
shell: "kanso listdb | grep {{ xovis_db_name }}"
|
||||||
|
@ -79,7 +79,7 @@
|
||||||
-d {{ xovis_backup_dir }}
|
-d {{ xovis_backup_dir }}
|
||||||
--deployment {{ xovis_deployment_name }}
|
--deployment {{ xovis_deployment_name }}
|
||||||
--server http://{{ xovis_db_login }}@{{ xovis_target_host }}"
|
--server http://{{ xovis_db_login }}@{{ xovis_target_host }}"
|
||||||
when: xovis_enabled
|
when: xovis_enabled | bool
|
||||||
|
|
||||||
- name: Add 'xovis' variable values to {{ iiab_ini_file }}
|
- name: Add 'xovis' variable values to {{ iiab_ini_file }}
|
||||||
ini_file:
|
ini_file:
|
||||||
|
|
|
@ -358,7 +358,7 @@ moodle_enabled: False
|
||||||
# If using Moodle intensively, set apache_high_php_limits in 3-BASE-SERVER
|
# If using Moodle intensively, set apache_high_php_limits in 3-BASE-SERVER
|
||||||
|
|
||||||
# MongoDB (/library/dbdata/mongodb) is used by Sugarizer:
|
# MongoDB (/library/dbdata/mongodb) is used by Sugarizer:
|
||||||
# Its 2 settings below are auto-set to True (in roles/0-init/tasks/main.yml) when: sugarizer_enabled
|
# Its 2 settings below are auto-set to True (in roles/0-init/tasks/main.yml) when: sugarizer_enabled | bool
|
||||||
# The mongodb playbook itself is later invoked by roles/sugarizer/meta/main.yml
|
# The mongodb playbook itself is later invoked by roles/sugarizer/meta/main.yml
|
||||||
mongodb_install: False
|
mongodb_install: False
|
||||||
mongodb_enabled: False
|
mongodb_enabled: False
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue