mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Notags (#73)
* bulk change use_cache/no_network->internet_available * bulk change use_cache/no_network->internet_available * remove unuseful debug statements * remove download tags * appendix has_internet_connection * ubuntu dhcpd needs to connect to br0
This commit is contained in:
parent
4462652deb
commit
30f4dfc1af
39 changed files with 50 additions and 232 deletions
|
@ -15,7 +15,7 @@ strict_networking: False
|
||||||
iiab_demo_mode: False
|
iiab_demo_mode: False
|
||||||
gw_active: False
|
gw_active: False
|
||||||
gui_static_wan: False
|
gui_static_wan: False
|
||||||
has_internet_connection: False
|
internet_available: False
|
||||||
is_F18: False
|
is_F18: False
|
||||||
is_F20: False
|
is_F20: False
|
||||||
is_F21: False
|
is_F21: False
|
||||||
|
|
|
@ -19,9 +19,6 @@
|
||||||
- name: Defaulting iiab_prepped
|
- name: Defaulting iiab_prepped
|
||||||
set_fact:
|
set_fact:
|
||||||
iiab_prepped: False
|
iiab_prepped: False
|
||||||
tags:
|
|
||||||
- download
|
|
||||||
- download2
|
|
||||||
|
|
||||||
- name: Set exFAT enabled for XOs
|
- name: Set exFAT enabled for XOs
|
||||||
set_fact:
|
set_fact:
|
||||||
|
|
|
@ -59,26 +59,15 @@
|
||||||
# poll: 2
|
# poll: 2
|
||||||
register: internet_access_test
|
register: internet_access_test
|
||||||
|
|
||||||
- name: Set has_internet_connection true if wget succeeded
|
- name: Set internet_available true if wget succeeded
|
||||||
set_fact:
|
set_fact:
|
||||||
has_internet_connection: True
|
internet_available: True
|
||||||
when: not internet_access_test|failed
|
when: not internet_access_test|failed
|
||||||
|
|
||||||
- name: Cleanup internet test file
|
- name: Cleanup internet test file
|
||||||
file: path=/tmp/heart-beat.txt
|
file: path=/tmp/heart-beat.txt
|
||||||
state=absent
|
state=absent
|
||||||
|
|
||||||
- name: Turn off downloads if no internet connection
|
|
||||||
set_fact:
|
|
||||||
no_network: True
|
|
||||||
when: not has_internet_connection
|
|
||||||
|
|
||||||
- name: Testing for iiab_preload
|
|
||||||
set_fact:
|
|
||||||
use_cache: True
|
|
||||||
no_network: True
|
|
||||||
when: iiab_preload == "True"
|
|
||||||
|
|
||||||
- name: Setting wan if detected
|
- name: Setting wan if detected
|
||||||
set_fact:
|
set_fact:
|
||||||
iiab_wan_iface: "{{ discovered_wan_iface }}"
|
iiab_wan_iface: "{{ discovered_wan_iface }}"
|
||||||
|
@ -250,7 +239,7 @@
|
||||||
- name: for debian, always use bridging
|
- name: for debian, always use bridging
|
||||||
set_fact:
|
set_fact:
|
||||||
iiab_lan_iface: br0
|
iiab_lan_iface: br0
|
||||||
when: 'discovered_lan_iface != "none" and num_lan_interfaces >= "1" and is_debian'
|
when: 'discovered_lan_iface != "none" and num_lan_interfaces >= "1" and is_debuntu'
|
||||||
|
|
||||||
- name: 2 or more devices on the LAN - use bridging
|
- name: 2 or more devices on the LAN - use bridging
|
||||||
set_fact:
|
set_fact:
|
||||||
|
@ -279,8 +268,8 @@
|
||||||
with_items:
|
with_items:
|
||||||
- option: 'gateway_active'
|
- option: 'gateway_active'
|
||||||
value: '{{ gw_active }}'
|
value: '{{ gw_active }}'
|
||||||
- option: 'internet_accessible'
|
- option: 'internet_available'
|
||||||
value: '{{ has_internet_connection }}'
|
value: '{{ internet_available }}'
|
||||||
- option: 'gateway_ifcfg'
|
- option: 'gateway_ifcfg'
|
||||||
value: '{{ has_ifcfg_gw }}'
|
value: '{{ has_ifcfg_gw }}'
|
||||||
- option: 'detected_gateway'
|
- option: 'detected_gateway'
|
||||||
|
|
|
@ -37,8 +37,6 @@
|
||||||
- syslog
|
- syslog
|
||||||
- xml-common
|
- xml-common
|
||||||
when: is_redhat
|
when: is_redhat
|
||||||
tags:
|
|
||||||
- download
|
|
||||||
|
|
||||||
- name: Install yum packages for Debian
|
- name: Install yum packages for Debian
|
||||||
package: name={{ item }}
|
package: name={{ item }}
|
||||||
|
@ -47,8 +45,6 @@
|
||||||
- inetutils-syslogd
|
- inetutils-syslogd
|
||||||
- wpasupplicant
|
- wpasupplicant
|
||||||
when: is_debuntu
|
when: is_debuntu
|
||||||
tags:
|
|
||||||
- download
|
|
||||||
|
|
||||||
- name: Install common packages
|
- name: Install common packages
|
||||||
package: name={{ item }}
|
package: name={{ item }}
|
||||||
|
@ -79,8 +75,6 @@
|
||||||
- curl
|
- curl
|
||||||
- pandoc
|
- pandoc
|
||||||
- lynx
|
- lynx
|
||||||
tags:
|
|
||||||
- download
|
|
||||||
|
|
||||||
- name: Install pip as a commonly required package management system
|
- name: Install pip as a commonly required package management system
|
||||||
command: curl https://bootstrap.pypa.io/get-pip.py -o {{ downloads_dir }}/get-pip.py
|
command: curl https://bootstrap.pypa.io/get-pip.py -o {{ downloads_dir }}/get-pip.py
|
||||||
|
@ -97,8 +91,6 @@
|
||||||
- bash
|
- bash
|
||||||
- iptables
|
- iptables
|
||||||
when: is_redhat
|
when: is_redhat
|
||||||
tags:
|
|
||||||
- download
|
|
||||||
|
|
||||||
- name: Update common packages (debian)
|
- name: Update common packages (debian)
|
||||||
package: name={{ item }}
|
package: name={{ item }}
|
||||||
|
@ -108,8 +100,6 @@
|
||||||
- bash
|
- bash
|
||||||
- iptables
|
- iptables
|
||||||
when: is_debuntu
|
when: is_debuntu
|
||||||
tags:
|
|
||||||
- download
|
|
||||||
|
|
||||||
|
|
||||||
# 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
|
||||||
|
|
|
@ -112,7 +112,7 @@
|
||||||
get_url: url="{{ iiab_download_url }}/{{ item }}" dest={{ downloads_dir}}/{{ item }}
|
get_url: url="{{ iiab_download_url }}/{{ item }}" dest={{ downloads_dir}}/{{ item }}
|
||||||
with_items:
|
with_items:
|
||||||
- hostapd_8188_i386
|
- hostapd_8188_i386
|
||||||
when: wifi_id == "tplink_WM725M" and xo_model == "XO-1.5" and not {{ use_cache }} and not {{ no_network }}
|
when: wifi_id == "tplink_WM725M" and xo_model == "XO-1.5" and internet_available
|
||||||
tags:
|
tags:
|
||||||
- xo
|
- xo
|
||||||
|
|
||||||
|
|
|
@ -37,8 +37,6 @@
|
||||||
- syslog
|
- syslog
|
||||||
- xml-common
|
- xml-common
|
||||||
when: is_redhat
|
when: is_redhat
|
||||||
tags:
|
|
||||||
- download
|
|
||||||
|
|
||||||
- name: Install yum packages for Debian
|
- name: Install yum packages for Debian
|
||||||
package: name={{ item }}
|
package: name={{ item }}
|
||||||
|
@ -47,8 +45,6 @@
|
||||||
- inetutils-syslogd
|
- inetutils-syslogd
|
||||||
- wpasupplicant
|
- wpasupplicant
|
||||||
when: is_debuntu
|
when: is_debuntu
|
||||||
tags:
|
|
||||||
- download
|
|
||||||
|
|
||||||
- name: Install common packages
|
- name: Install common packages
|
||||||
package: name={{ item }}
|
package: name={{ item }}
|
||||||
|
@ -77,8 +73,6 @@
|
||||||
- openssl #FC 18 does not supply, but pear requires
|
- openssl #FC 18 does not supply, but pear requires
|
||||||
- gawk
|
- gawk
|
||||||
- sqlite3
|
- sqlite3
|
||||||
tags:
|
|
||||||
- download
|
|
||||||
|
|
||||||
- name: Update common packages (not debian
|
- name: Update common packages (not debian
|
||||||
package: name={{ item }}
|
package: name={{ item }}
|
||||||
|
@ -89,8 +83,6 @@
|
||||||
- bash
|
- bash
|
||||||
- iptables
|
- iptables
|
||||||
when: is_redhat
|
when: is_redhat
|
||||||
tags:
|
|
||||||
- download
|
|
||||||
|
|
||||||
- name: Update common packages (debian)
|
- name: Update common packages (debian)
|
||||||
package: name={{ item }}
|
package: name={{ item }}
|
||||||
|
@ -100,8 +92,6 @@
|
||||||
- bash
|
- bash
|
||||||
- iptables
|
- iptables
|
||||||
when: is_debuntu
|
when: is_debuntu
|
||||||
tags:
|
|
||||||
- download
|
|
||||||
|
|
||||||
|
|
||||||
# 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
|
||||||
|
|
|
@ -1,14 +1,9 @@
|
||||||
- name: download wondershaper ajenti plugin
|
- name: download 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
|
||||||
extra_args="--download {{ pip_packages_dir }}"
|
extra_args="--download {{ pip_packages_dir }}"
|
||||||
when: not {{ use_cache }} and not {{ no_network }}
|
when: internet_available
|
||||||
tags:
|
|
||||||
- download2
|
|
||||||
|
|
||||||
|
|
||||||
- name: install wondershaper from local download directory
|
- name: install wondershaper from local download directory
|
||||||
pip: name=ajenti-plugin-wondershaper
|
pip: name=ajenti-plugin-wondershaper
|
||||||
extra_args="--no-index --find-links=file://{{ pip_packages_dir }}"
|
extra_args="--no-index --find-links=file://{{ pip_packages_dir }}"
|
||||||
|
|
||||||
# notify:
|
|
||||||
# - restart ajenti service
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
- name: Install python-pip package
|
- name: Install python-pip package
|
||||||
package: name=python-pip
|
package: name=python-pip
|
||||||
state=present
|
state=present
|
||||||
tags:
|
|
||||||
- download
|
|
||||||
|
|
||||||
- name: Install required libraries
|
- name: Install required libraries
|
||||||
package: name={{ item.pkg }}
|
package: name={{ item.pkg }}
|
||||||
|
@ -14,15 +12,11 @@
|
||||||
- pkg: pyOpenSSL
|
- pkg: pyOpenSSL
|
||||||
- pkg: python-daemon
|
- pkg: python-daemon
|
||||||
- pkg: gcc
|
- pkg: gcc
|
||||||
tags:
|
|
||||||
- download
|
|
||||||
|
|
||||||
- name: download ajenti from our repo
|
- name: download ajenti from our repo
|
||||||
pip: name="{{ iiab_download_url }}"/ajenti-0.99.34-patched5.tar.gz
|
pip: name="{{ iiab_download_url }}"/ajenti-0.99.34-patched5.tar.gz
|
||||||
extra_args="--download {{ pip_packages_dir }}"
|
extra_args="--download {{ pip_packages_dir }}"
|
||||||
when: not {{ use_cache }} and not {{ no_network }}
|
when: internet_available
|
||||||
tags:
|
|
||||||
- download2
|
|
||||||
|
|
||||||
- name: install ajenti from local download directory
|
- name: install ajenti from local download directory
|
||||||
pip: name=ajenti
|
pip: name=ajenti
|
||||||
|
@ -34,9 +28,7 @@
|
||||||
- name: download python-catcher
|
- name: download python-catcher
|
||||||
pip: name=python-catcher version=0.1.3
|
pip: name=python-catcher version=0.1.3
|
||||||
extra_args="--download {{ pip_packages_dir }}"
|
extra_args="--download {{ pip_packages_dir }}"
|
||||||
when: not {{ use_cache }} and not {{ no_network }}
|
when: internet_available
|
||||||
tags:
|
|
||||||
- download2
|
|
||||||
|
|
||||||
- name: install python-catcher from local download directory
|
- name: install python-catcher from local download directory
|
||||||
pip: name=python-catcher
|
pip: name=python-catcher
|
||||||
|
|
|
@ -1,15 +1,11 @@
|
||||||
- name: check pip is installed
|
- name: check pip is installed
|
||||||
package: name=python-pip
|
package: name=python-pip
|
||||||
state=present
|
state=present
|
||||||
tags:
|
|
||||||
- download
|
|
||||||
|
|
||||||
- name: download xs-authserver from pypi
|
- name: download xs-authserver from pypi
|
||||||
pip: name=xs-authserver
|
pip: name=xs-authserver
|
||||||
extra_args="--download {{ pip_packages_dir }}"
|
extra_args="--download {{ pip_packages_dir }}"
|
||||||
when: not {{ use_cache }} and not {{ no_network }}
|
when: internet_available
|
||||||
tags:
|
|
||||||
- download2
|
|
||||||
|
|
||||||
- name: install xs-authserver from pypi
|
- name: install xs-authserver from pypi
|
||||||
pip: name=xs-authserver
|
pip: name=xs-authserver
|
||||||
|
@ -18,8 +14,6 @@
|
||||||
- name: install gunicorn
|
- name: install gunicorn
|
||||||
package: name=python-gunicorn
|
package: name=python-gunicorn
|
||||||
state=present
|
state=present
|
||||||
tags:
|
|
||||||
- download
|
|
||||||
|
|
||||||
- name: Configure xs-authserver
|
- name: Configure xs-authserver
|
||||||
template: backup=yes
|
template: backup=yes
|
||||||
|
|
|
@ -58,7 +58,6 @@
|
||||||
stat: path=/etc/awstats/awstats.conf
|
stat: path=/etc/awstats/awstats.conf
|
||||||
register: awstats
|
register: awstats
|
||||||
|
|
||||||
- debug: var=awstats
|
|
||||||
|
|
||||||
- name: If there was a config file installed by package, move it aside
|
- name: If there was a config file installed by package, move it aside
|
||||||
command: mv /etc/awstats/awstats.conf /etc/awstats/awstats.conf.dist
|
command: mv /etc/awstats/awstats.conf /etc/awstats/awstats.conf.dist
|
||||||
|
|
|
@ -4,16 +4,12 @@
|
||||||
url="{{ calibre_src_url }}"
|
url="{{ calibre_src_url }}"
|
||||||
dest="{{ downloads_dir }}/calibre-installer.py"
|
dest="{{ downloads_dir }}/calibre-installer.py"
|
||||||
mode=0755
|
mode=0755
|
||||||
tags:
|
|
||||||
download2
|
|
||||||
when: ansible_distribution == "CentOS"
|
when: ansible_distribution == "CentOS"
|
||||||
|
|
||||||
- name: Install calibre
|
- name: Install calibre
|
||||||
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
|
||||||
tags:
|
|
||||||
download2
|
|
||||||
when: calibre_install and ansible_distribution == 'CentOS'
|
when: calibre_install and ansible_distribution == 'CentOS'
|
||||||
|
|
||||||
- name: Install Caibre rpms
|
- name: Install Caibre rpms
|
||||||
|
@ -23,7 +19,6 @@
|
||||||
with_items:
|
with_items:
|
||||||
- calibre
|
- calibre
|
||||||
when: calibre_install and ansible_distribution != 'CentOS'
|
when: calibre_install and ansible_distribution != 'CentOS'
|
||||||
tags: download
|
|
||||||
|
|
||||||
- name: Create calibre service(s) and support scripts
|
- name: Create calibre service(s) and support scripts
|
||||||
template: backup=no
|
template: backup=no
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
# administer this service by browsing to localhost:631
|
# administer this service by browsing to localhost:631
|
||||||
- debug: var=cups_install
|
|
||||||
- name: get the CUPS package installed
|
- name: get the CUPS package installed
|
||||||
package: name={{ item }}
|
package: name={{ item }}
|
||||||
state=present
|
state=present
|
||||||
|
|
|
@ -16,8 +16,6 @@
|
||||||
- libjpeg-dev
|
- libjpeg-dev
|
||||||
- xvfb
|
- xvfb
|
||||||
when: debian_schooltool_install and is_debuntu
|
when: debian_schooltool_install and is_debuntu
|
||||||
tags:
|
|
||||||
- download
|
|
||||||
|
|
||||||
- name: Create the font directory
|
- name: Create the font directory
|
||||||
file: path=/usr/share/fonts/truetype/ttf-ubuntu
|
file: path=/usr/share/fonts/truetype/ttf-ubuntu
|
||||||
|
@ -26,7 +24,6 @@
|
||||||
- name: get the ttf-ubuntu-font-family
|
- name: get the ttf-ubuntu-font-family
|
||||||
get_url: url={{ iiab_download_url }}/ubuntu-font-family-0.83.zip
|
get_url: url={{ iiab_download_url }}/ubuntu-font-family-0.83.zip
|
||||||
dest={{ downloads_dir }}
|
dest={{ downloads_dir }}
|
||||||
tags: download2
|
|
||||||
|
|
||||||
- name: expand the ttf fonts to the right place
|
- name: expand the ttf fonts to the right place
|
||||||
unarchive: src={{ downloads_dir }}/ubuntu-font-family-0.83.zip
|
unarchive: src={{ downloads_dir }}/ubuntu-font-family-0.83.zip
|
||||||
|
@ -35,7 +32,6 @@
|
||||||
- name: get the schooltool source
|
- name: get the schooltool source
|
||||||
get_url: url={{ iiab_download_url }}/{{ schooltool_src }}
|
get_url: url={{ iiab_download_url }}/{{ schooltool_src }}
|
||||||
dest={{ downloads_dir }}
|
dest={{ downloads_dir }}
|
||||||
tags: download2
|
|
||||||
|
|
||||||
- name: expand source to dest
|
- name: expand source to dest
|
||||||
unarchive: src={{ downloads_dir }}/{{ schooltool_src }}
|
unarchive: src={{ downloads_dir }}/{{ schooltool_src }}
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
- name: Get the Dokuwiki software
|
- name: Get the Dokuwiki software
|
||||||
get_url: url="{{ iiab_download_url }}/{{ dokuwiki_version }}.tgz" dest={{ downloads_dir}}/
|
get_url: url="{{ iiab_download_url }}/{{ dokuwiki_version }}.tgz" dest={{ downloads_dir}}/
|
||||||
when: not {{ use_cache }} and not {{ no_network }}
|
when: internet_available
|
||||||
tags:
|
|
||||||
- download2
|
|
||||||
|
|
||||||
- name: Copy it to permanent location /library
|
- name: Copy it to permanent location /library
|
||||||
unarchive: src={{ downloads_dir }}/{{ dokuwiki_version }}.tgz dest=/library creates=/library/{{ dokuwiki_version }}/VERSION
|
unarchive: src={{ downloads_dir }}/{{ dokuwiki_version }}.tgz dest=/library creates=/library/{{ dokuwiki_version }}/VERSION
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
- name: download current version from our copy
|
- name: download current version from our copy
|
||||||
shell: wget {{ iiab_download_url }}/elgg-{{ elgg_version }}.zip -c -P {{ downloads_dir }}
|
shell: wget {{ iiab_download_url }}/elgg-{{ elgg_version }}.zip -c -P {{ downloads_dir }}
|
||||||
when: not {{ use_cache }} and not {{ no_network }}
|
when: internet_available
|
||||||
tags:
|
|
||||||
- download2
|
|
||||||
|
|
||||||
- name: Determine if software is already expanded
|
- name: Determine if software is already expanded
|
||||||
stat: path=/opt/elgg/index.php
|
stat: path=/opt/elgg/index.php
|
||||||
|
|
|
@ -6,16 +6,12 @@
|
||||||
with_items:
|
with_items:
|
||||||
- python-psutil
|
- python-psutil
|
||||||
- expect
|
- expect
|
||||||
tags:
|
|
||||||
- download
|
|
||||||
when: is_F18
|
when: is_F18
|
||||||
|
|
||||||
- name: Download dependent pip packages F18
|
- name: Download dependent pip packages F18
|
||||||
pip: name=selenium
|
pip: name=selenium
|
||||||
extra_args="--download {{ pip_packages_dir }}"
|
extra_args="--download {{ pip_packages_dir }}"
|
||||||
when: not {{ use_cache }} and not {{ no_network }} and is_F18
|
when: internet_available and is_F18
|
||||||
tags:
|
|
||||||
- download2
|
|
||||||
|
|
||||||
- name: Install dependent pip packages F18
|
- name: Install dependent pip packages F18
|
||||||
pip: name=selenium
|
pip: name=selenium
|
||||||
|
@ -32,9 +28,7 @@
|
||||||
depth=1
|
depth=1
|
||||||
version="0.13.x"
|
version="0.13.x"
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
when: not {{ use_cache }} and not {{ no_network }} and kalite.stat.exists is defined an not kalite.stat.exists
|
when: internet_available and kalite.stat.exists is defined an not kalite.stat.exists
|
||||||
tags:
|
|
||||||
- download2
|
|
||||||
|
|
||||||
- name: Create iiab-kalite user and password F18
|
- name: Create iiab-kalite user and password F18
|
||||||
user: name={{ kalite_user }}
|
user: name={{ kalite_user }}
|
||||||
|
|
|
@ -5,9 +5,7 @@
|
||||||
state=present
|
state=present
|
||||||
with_items:
|
with_items:
|
||||||
- lsb
|
- lsb
|
||||||
tags:
|
when: internet_available and ansible_distribution == "CentOS"
|
||||||
- download
|
|
||||||
when: not {{ use_cache }} and not {{ no_network }} and ansible_distribution == "CentOS"
|
|
||||||
|
|
||||||
# Version 0.17.x
|
# Version 0.17.x
|
||||||
# pip show kalite
|
# pip show kalite
|
||||||
|
@ -39,9 +37,7 @@
|
||||||
- name: Downoad kalite with pip
|
- name: Downoad kalite with pip
|
||||||
pip: name=ka-lite version={{ kalite_version }}
|
pip: name=ka-lite version={{ kalite_version }}
|
||||||
extra_args="--download {{ pip_packages_dir }}"
|
extra_args="--download {{ pip_packages_dir }}"
|
||||||
when: not {{ use_cache }} and not {{ no_network }}
|
when: internet_available
|
||||||
tags:
|
|
||||||
- download2
|
|
||||||
|
|
||||||
- name: Install kalite with pip
|
- name: Install kalite with pip
|
||||||
pip: name=ka-lite version={{ kalite_version }}
|
pip: name=ka-lite version={{ kalite_version }}
|
||||||
|
|
|
@ -6,36 +6,21 @@
|
||||||
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
|
||||||
tags:
|
|
||||||
- download
|
|
||||||
- download2
|
|
||||||
|
|
||||||
- name: Calc kalite db file name
|
- name: Calc kalite db file name
|
||||||
set_fact:
|
set_fact:
|
||||||
kalite_db_name: "{{ kalite_root }}/database/data.sqlite"
|
kalite_db_name: "{{ kalite_root }}/database/data.sqlite"
|
||||||
when: not is_F18
|
when: not is_F18
|
||||||
tags:
|
|
||||||
- download
|
|
||||||
- download2
|
|
||||||
|
|
||||||
- name: See if kalite is already configured
|
- name: See if kalite is already configured
|
||||||
stat: path="{{ kalite_db_name }}"
|
stat: path="{{ kalite_db_name }}"
|
||||||
register: kalite_installed
|
register: kalite_installed
|
||||||
tags:
|
|
||||||
- download
|
|
||||||
- download2
|
|
||||||
|
|
||||||
- include: install-f18.yml
|
- include: install-f18.yml
|
||||||
when: not kalite_installed.stat.exists and is_F18
|
when: not kalite_installed.stat.exists and is_F18
|
||||||
tags:
|
|
||||||
- download
|
|
||||||
- download2
|
|
||||||
|
|
||||||
- include: install.yml
|
- include: install.yml
|
||||||
when: kalite_installed is defined and not kalite_installed.stat.exists and not is_F18
|
when: kalite_installed is defined and not kalite_installed.stat.exists and not is_F18
|
||||||
tags:
|
|
||||||
- download
|
|
||||||
- download2
|
|
||||||
|
|
||||||
- name: ask systemd to reread the unit files
|
- name: ask systemd to reread the unit files
|
||||||
shell: systemctl daemon-reload
|
shell: systemctl daemon-reload
|
||||||
|
|
|
@ -25,8 +25,6 @@
|
||||||
kiwix_first_pass: True
|
kiwix_first_pass: True
|
||||||
when: kiwix_first_pass_test.changed
|
when: kiwix_first_pass_test.changed
|
||||||
|
|
||||||
- debug: var=kiwix_first_pass_test
|
|
||||||
- debug: var=kiwix_first_pass
|
|
||||||
- name: Copy test.zim file
|
- name: Copy test.zim file
|
||||||
copy: src=test.zim
|
copy: src=test.zim
|
||||||
dest={{ kiwix_content_path }}/test.zim
|
dest={{ kiwix_content_path }}/test.zim
|
||||||
|
|
|
@ -19,9 +19,7 @@
|
||||||
|
|
||||||
- name: Get the kiwix software
|
- name: Get the kiwix software
|
||||||
get_url: url="{{ iiab_download_url }}/{{ kiwix_src_file }}" dest="{{ downloads_dir }}/{{ kiwix_src_file }}"
|
get_url: url="{{ iiab_download_url }}/{{ kiwix_src_file }}" dest="{{ downloads_dir }}/{{ kiwix_src_file }}"
|
||||||
when: not {{ use_cache }} and not {{ no_network }}
|
when: internet_available
|
||||||
tags:
|
|
||||||
- download2
|
|
||||||
|
|
||||||
- include: kiwix_install.yml
|
- include: kiwix_install.yml
|
||||||
when: kiwix_src_file is defined
|
when: kiwix_src_file is defined
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
with_items:
|
with_items:
|
||||||
- mongodb-server
|
- mongodb-server
|
||||||
- mongodb
|
- mongodb
|
||||||
when: not {{ use_cache }} and not {{ no_network }}
|
when: internet_available
|
||||||
tags:
|
tags:
|
||||||
- download
|
- download
|
||||||
|
|
||||||
|
|
|
@ -6,8 +6,6 @@
|
||||||
- python-psycopg2
|
- python-psycopg2
|
||||||
- php-pgsql
|
- php-pgsql
|
||||||
when: not is_debuntu
|
when: not is_debuntu
|
||||||
tags:
|
|
||||||
- download
|
|
||||||
|
|
||||||
- name: Install moodle required packages
|
- name: Install moodle required packages
|
||||||
package: name={{ item }}
|
package: name={{ item }}
|
||||||
|
@ -20,16 +18,11 @@
|
||||||
- php{{ php_version }}-gd
|
- php{{ php_version }}-gd
|
||||||
# - php-mbstring --perhaps debian libapache2-mod-php
|
# - php-mbstring --perhaps debian libapache2-mod-php
|
||||||
when: is_debuntu
|
when: is_debuntu
|
||||||
tags:
|
|
||||||
- download
|
|
||||||
|
|
||||||
- name: Determine if moodle is already downloaded
|
- name: Determine if moodle is already downloaded
|
||||||
stat: path={{ moodle_base }}/config-dist.php
|
stat: path={{ moodle_base }}/config-dist.php
|
||||||
register: moodle
|
register: moodle
|
||||||
|
|
||||||
- debug: var=moodle
|
|
||||||
- debug: var=no_network
|
|
||||||
|
|
||||||
- name: Download the latest moodle repo
|
- name: Download the latest moodle repo
|
||||||
git: repo={{ moodle_repo_url }}
|
git: repo={{ moodle_repo_url }}
|
||||||
dest={{ moodle_base }}
|
dest={{ moodle_base }}
|
||||||
|
@ -37,9 +30,7 @@
|
||||||
force=yes
|
force=yes
|
||||||
version="MOODLE_{{ moodle_version }}_STABLE"
|
version="MOODLE_{{ moodle_version }}_STABLE"
|
||||||
# ignore_errors: yes
|
# ignore_errors: yes
|
||||||
when: not {{ use_cache }} and not {{ no_network }} and moodle.stat.exists is defined and not moodle.stat.exists
|
when: internet_available and moodle.stat.exists is defined and not moodle.stat.exists
|
||||||
tags:
|
|
||||||
- download2
|
|
||||||
|
|
||||||
- name: Prepare the downloaded directory so apache can install config file
|
- name: Prepare the downloaded directory so apache can install config file
|
||||||
file: path={{ moodle_base }}
|
file: path={{ moodle_base }}
|
||||||
|
|
|
@ -10,14 +10,6 @@
|
||||||
# 5. In gateway: eth0 is wan, and wlan0 is under br0 (only one adapter under br0)
|
# 5. In gateway: eth0 is wan, and wlan0 is under br0 (only one adapter under br0)
|
||||||
# 6. As a slight concess to auto config, if eth1 exists, make it wan, and force gateway
|
# 6. As a slight concess to auto config, if eth1 exists, make it wan, and force gateway
|
||||||
|
|
||||||
- debug: var=discovered_lan_iface
|
|
||||||
- debug: var=discovered_wan_iface
|
|
||||||
- debug: var=gui_desired_network_role
|
|
||||||
- debug: var=gui_static_wan_ip
|
|
||||||
- debug: var=hostapd_enabled
|
|
||||||
- debug: var=discovered_wireless_iface
|
|
||||||
- debug: var=gui_static_wan
|
|
||||||
|
|
||||||
- name: in upgrade from earlier 6.2, delete the resolvconf
|
- name: in upgrade from earlier 6.2, delete the resolvconf
|
||||||
package: name=resolvconf
|
package: name=resolvconf
|
||||||
state=absent
|
state=absent
|
||||||
|
@ -80,8 +72,8 @@
|
||||||
with_items:
|
with_items:
|
||||||
- option: 'gateway_active'
|
- option: 'gateway_active'
|
||||||
value: '{{ gw_active }}'
|
value: '{{ gw_active }}'
|
||||||
- option: 'internet_accessible'
|
- option: 'internet_available'
|
||||||
value: '{{ has_internet_connection }}'
|
value: '{{ internet_available }}'
|
||||||
- option: 'gateway_ifcfg'
|
- option: 'gateway_ifcfg'
|
||||||
value: '{{ has_ifcfg_gw }}'
|
value: '{{ has_ifcfg_gw }}'
|
||||||
- option: 'detected_gateway'
|
- option: 'detected_gateway'
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
- debug: var=has_ifcfg_gw
|
|
||||||
- debug: var=iiab_wan_iface
|
|
||||||
- debug: var=iiab_lan_iface
|
|
||||||
- debug: var=iiab_network_mode
|
|
|
@ -4,10 +4,6 @@
|
||||||
- network
|
- network
|
||||||
- network-discover
|
- network-discover
|
||||||
|
|
||||||
- include: display-discover.yml
|
|
||||||
tags:
|
|
||||||
- network-discover
|
|
||||||
|
|
||||||
- name: Set hostname
|
- name: Set hostname
|
||||||
template: dest=/etc/hostname
|
template: dest=/etc/hostname
|
||||||
src=network/hostname.j2
|
src=network/hostname.j2
|
||||||
|
|
|
@ -77,14 +77,6 @@
|
||||||
#allocate wlan0 under br0 in all cases
|
#allocate wlan0 under br0 in all cases
|
||||||
#allocate eth0 under br0 if appliance, alone if gateway
|
#allocate eth0 under br0 if appliance, alone if gateway
|
||||||
|
|
||||||
- debug: var=discovered_lan_iface
|
|
||||||
- debug: var=discovered_wan_iface
|
|
||||||
- debug: var=gui_desired_network_role
|
|
||||||
- debug: var=gui_static_wan_ip
|
|
||||||
- debug: var=hostapd_enabled
|
|
||||||
- debug: var=discovered_wireless_iface
|
|
||||||
- debug: var=gui_static_wan
|
|
||||||
|
|
||||||
- name: Add location section to config file
|
- name: Add location section to config file
|
||||||
ini_file: dest='{{ iiab_config_file }}'
|
ini_file: dest='{{ iiab_config_file }}'
|
||||||
section=network
|
section=network
|
||||||
|
@ -93,8 +85,8 @@
|
||||||
with_items:
|
with_items:
|
||||||
- option: 'gateway_active'
|
- option: 'gateway_active'
|
||||||
value: '{{ gw_active }}'
|
value: '{{ gw_active }}'
|
||||||
- option: 'internet_accessible'
|
- option: 'internet_available'
|
||||||
value: '{{ has_internet_connection }}'
|
value: '{{ internet_available }}'
|
||||||
- option: 'gateway_ifcfg'
|
- option: 'gateway_ifcfg'
|
||||||
value: '{{ has_ifcfg_gw }}'
|
value: '{{ has_ifcfg_gw }}'
|
||||||
- option: 'detected_gateway'
|
- option: 'detected_gateway'
|
||||||
|
|
|
@ -5,9 +5,7 @@
|
||||||
# but we use the tar file to get the latest version; really only benefits the xo4 on fedora 18
|
# but we use the tar file to get the latest version; really only benefits the xo4 on fedora 18
|
||||||
- name: Get the nextcloud software
|
- name: Get the nextcloud software
|
||||||
get_url: url="{{ nextcloud_dl_url }}"/{{ nextcloud_src_file }} dest={{ downloads_dir }}/{{ nextcloud_src_file }}
|
get_url: url="{{ nextcloud_dl_url }}"/{{ nextcloud_src_file }} dest={{ downloads_dir }}/{{ nextcloud_src_file }}
|
||||||
when: not {{ use_cache }} and not {{ no_network }}
|
when: internet_available
|
||||||
tags:
|
|
||||||
- download2
|
|
||||||
|
|
||||||
- name: Copy it to permanent location /opt
|
- name: Copy it to permanent location /opt
|
||||||
unarchive: src={{ downloads_dir }}/{{ nextcloud_src_file }} dest=/opt/
|
unarchive: src={{ downloads_dir }}/{{ nextcloud_src_file }} dest=/opt/
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
- name: Get the nextcloud software
|
- name: Get the nextcloud software
|
||||||
get_url: url={{ nextcloud_dl_url }}/{{ nextcloud_src_file }} dest={{ downloads_dir }}/{{ nextcloud_src_file }}
|
get_url: url={{ nextcloud_dl_url }}/{{ nextcloud_src_file }} dest={{ downloads_dir }}/{{ nextcloud_src_file }}
|
||||||
when: not {{ use_cache }} and not {{ no_network }}
|
when: internet_available
|
||||||
async: 900
|
async: 900
|
||||||
poll: 15
|
poll: 15
|
||||||
tags:
|
tags:
|
||||||
|
|
|
@ -8,8 +8,6 @@
|
||||||
- libapache2-mod-wsgi
|
- libapache2-mod-wsgi
|
||||||
- libapache2-mod-xsendfile
|
- libapache2-mod-xsendfile
|
||||||
when: is_debuntu
|
when: is_debuntu
|
||||||
tags:
|
|
||||||
- download
|
|
||||||
|
|
||||||
- name: fix the pip bug (incompatible with requests)
|
- name: fix the pip bug (incompatible with requests)
|
||||||
command: easy_install --upgrade pip
|
command: easy_install --upgrade pip
|
||||||
|
@ -26,14 +24,10 @@
|
||||||
- mod_wsgi
|
- mod_wsgi
|
||||||
- mod_xsendfile
|
- mod_xsendfile
|
||||||
when: not is_debuntu
|
when: not is_debuntu
|
||||||
tags:
|
|
||||||
- download
|
|
||||||
|
|
||||||
#- name: download latest setuptools
|
#- name: download latest setuptools
|
||||||
# shell: pip install --download {{ pip_packages_dir }} ez_setup
|
# shell: pip install --download {{ pip_packages_dir }} ez_setup
|
||||||
# when: not {{ use_cache }} and not {{ no_network }}
|
# when: internet_available
|
||||||
# tags:
|
|
||||||
# - download2
|
|
||||||
#
|
#
|
||||||
#- name: install setuptools from local download directory
|
#- name: install setuptools from local download directory
|
||||||
# pip: name=ez_setup
|
# pip: name=ez_setup
|
||||||
|
@ -50,9 +44,7 @@
|
||||||
pip: name=MarkupSafe
|
pip: name=MarkupSafe
|
||||||
extra_args="--download {{ pip_packages_dir }}"
|
extra_args="--download {{ pip_packages_dir }}"
|
||||||
state=latest
|
state=latest
|
||||||
when: not {{ use_cache }} and not {{ no_network }}
|
when: internet_available
|
||||||
tags:
|
|
||||||
- download2
|
|
||||||
|
|
||||||
- name: install Markupsafe from local download directory
|
- name: install Markupsafe from local download directory
|
||||||
pip: name=MarkupSafe
|
pip: name=MarkupSafe
|
||||||
|
@ -62,9 +54,7 @@
|
||||||
pip: name=pytz
|
pip: name=pytz
|
||||||
extra_args="--download {{ pip_packages_dir }}"
|
extra_args="--download {{ pip_packages_dir }}"
|
||||||
state=latest
|
state=latest
|
||||||
when: not {{ use_cache }} and not {{ no_network }}
|
when: internet_available
|
||||||
tags:
|
|
||||||
- download2
|
|
||||||
|
|
||||||
- name: install pytz from local download directory
|
- name: install pytz from local download directory
|
||||||
pip: name=pytz
|
pip: name=pytz
|
||||||
|
@ -74,9 +64,7 @@
|
||||||
pip: name=Internet-in-a-Box
|
pip: name=Internet-in-a-Box
|
||||||
state=latest
|
state=latest
|
||||||
extra_args="--download {{ pip_packages_dir }}"
|
extra_args="--download {{ pip_packages_dir }}"
|
||||||
when: not {{ use_cache }} and not {{ no_network }}
|
when: internet_available
|
||||||
tags:
|
|
||||||
- download2
|
|
||||||
|
|
||||||
- name: install IIAB from local download directory
|
- name: install IIAB from local download directory
|
||||||
pip: name=Internet-in-a-Box
|
pip: name=Internet-in-a-Box
|
||||||
|
@ -93,9 +81,7 @@
|
||||||
version=2.6
|
version=2.6
|
||||||
state=present
|
state=present
|
||||||
extra_args="--download {{ pip_packages_dir }}"
|
extra_args="--download {{ pip_packages_dir }}"
|
||||||
when: not {{ use_cache }} and not {{ no_network }}
|
when: internet_available
|
||||||
tags:
|
|
||||||
- download2
|
|
||||||
|
|
||||||
- name: install Whoosh 2.6 from local download directory
|
- name: install Whoosh 2.6 from local download directory
|
||||||
pip: name=whoosh
|
pip: name=whoosh
|
||||||
|
|
|
@ -5,9 +5,7 @@
|
||||||
# but we use the tar file to get the latest version; really only benefits the xo4 on fedora 18
|
# but we use the tar file to get the latest version; really only benefits the xo4 on fedora 18
|
||||||
- name: Get the owncloud software
|
- name: Get the owncloud software
|
||||||
get_url: url="{{ owncloud_dl_url }}"/{{ owncloud_src_file }} dest={{ downloads_dir }}/{{ owncloud_src_file }}
|
get_url: url="{{ owncloud_dl_url }}"/{{ owncloud_src_file }} dest={{ downloads_dir }}/{{ owncloud_src_file }}
|
||||||
when: not {{ use_cache }} and not {{ no_network }}
|
when: internet_available
|
||||||
tags:
|
|
||||||
- download2
|
|
||||||
|
|
||||||
- name: Copy it to permanent location /opt
|
- name: Copy it to permanent location /opt
|
||||||
unarchive: src={{ downloads_dir }}/{{ owncloud_src_file }} dest=/opt/
|
unarchive: src={{ downloads_dir }}/{{ owncloud_src_file }} dest=/opt/
|
||||||
|
|
|
@ -16,8 +16,6 @@
|
||||||
with_items:
|
with_items:
|
||||||
- curl
|
- curl
|
||||||
- owncloud
|
- owncloud
|
||||||
tags:
|
|
||||||
- download
|
|
||||||
when: owncloud_page.stat.exists is defined and not owncloud_page.stat.exists
|
when: owncloud_page.stat.exists is defined and not owncloud_page.stat.exists
|
||||||
|
|
||||||
- name: Remove owncloud package
|
- name: Remove owncloud package
|
||||||
|
@ -42,11 +40,9 @@
|
||||||
|
|
||||||
- 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: not {{ use_cache }} and not {{ no_network }}
|
when: internet_available
|
||||||
async: 300
|
async: 300
|
||||||
poll: 5
|
poll: 5
|
||||||
tags:
|
|
||||||
- download2
|
|
||||||
|
|
||||||
- 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 }}
|
||||||
|
|
|
@ -9,8 +9,6 @@
|
||||||
- python-virtualenv
|
- python-virtualenv
|
||||||
- python-pip
|
- python-pip
|
||||||
- python-psycopg2
|
- python-psycopg2
|
||||||
tags:
|
|
||||||
- download
|
|
||||||
|
|
||||||
- name: Install pathagar pre requisites for debian
|
- name: Install pathagar pre requisites for debian
|
||||||
package: name={{ item }}
|
package: name={{ item }}
|
||||||
|
@ -20,8 +18,6 @@
|
||||||
- libxml2-dev
|
- libxml2-dev
|
||||||
- libxslt-dev
|
- libxslt-dev
|
||||||
when: is_debuntu
|
when: is_debuntu
|
||||||
tags:
|
|
||||||
- download
|
|
||||||
|
|
||||||
- name: Install pathagar pre requisites not debian
|
- name: Install pathagar pre requisites not debian
|
||||||
package: name={{ item }}
|
package: name={{ item }}
|
||||||
|
@ -31,8 +27,6 @@
|
||||||
- libxml2-devel
|
- libxml2-devel
|
||||||
- libxslt-devel
|
- libxslt-devel
|
||||||
when: not is_debuntu
|
when: not is_debuntu
|
||||||
tags:
|
|
||||||
- download
|
|
||||||
|
|
||||||
- name: Create destination folder
|
- name: Create destination folder
|
||||||
file: path={{ pathagar_src }}
|
file: path={{ pathagar_src }}
|
||||||
|
@ -57,9 +51,7 @@
|
||||||
dest={{ pathagar_src }}
|
dest={{ pathagar_src }}
|
||||||
update=yes
|
update=yes
|
||||||
version=master
|
version=master
|
||||||
when: not {{ use_cache }} and not {{ no_network }} and pathagar.stat.exists is defined and not pathagar.stat.exists
|
when: internet_available and pathagar.stat.exists is defined and not pathagar.stat.exists
|
||||||
tags:
|
|
||||||
- download2
|
|
||||||
|
|
||||||
- name: download pathagar requirements in a virtualenv
|
- name: download pathagar requirements in a virtualenv
|
||||||
pip: name={{ item }}
|
pip: name={{ item }}
|
||||||
|
@ -70,9 +62,7 @@
|
||||||
- django-sendfile==0.3.6
|
- django-sendfile==0.3.6
|
||||||
- django-taggit==0.14
|
- django-taggit==0.14
|
||||||
- lxml==3.4.4
|
- lxml==3.4.4
|
||||||
when: not {{ use_cache }} and not {{ no_network }}
|
when: internet_available
|
||||||
tags:
|
|
||||||
- download2
|
|
||||||
|
|
||||||
- name: Install pathagar requirements in a virtualenv
|
- name: Install pathagar requirements in a virtualenv
|
||||||
pip: name={{ item }}
|
pip: name={{ item }}
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
- name: Get the phpmyadmin software
|
- name: Get the phpmyadmin software
|
||||||
get_url: url="{{ iiab_download_url }}/{{ phpMyAdmin }}" dest="{{ downloads_dir}}/phpMyAdmin.zip"
|
get_url: url="{{ iiab_download_url }}/{{ phpMyAdmin }}" dest="{{ downloads_dir}}/phpMyAdmin.zip"
|
||||||
when: not {{ use_cache }} and not {{ no_network }}
|
when: internet_available
|
||||||
tags:
|
|
||||||
- download2
|
|
||||||
|
|
||||||
- name: Copy it to permanent location /opt
|
- name: Copy it to permanent location /opt
|
||||||
unarchive: src={{ downloads_dir }}/phpMyAdmin.zip dest=/opt/
|
unarchive: src={{ downloads_dir }}/phpMyAdmin.zip dest=/opt/
|
||||||
|
|
|
@ -4,9 +4,7 @@
|
||||||
ports=7080:7080
|
ports=7080:7080
|
||||||
state=present
|
state=present
|
||||||
pull=missing
|
pull=missing
|
||||||
when: schooltool_install and docker_install and not {{ use_cache }} and not {{ no_network }}
|
when: schooltool_install and docker_install and internet_available
|
||||||
tags:
|
|
||||||
- download2
|
|
||||||
|
|
||||||
|
|
||||||
- name: Configure schooltool to run in docker container under systemd
|
- name: Configure schooltool to run in docker container under systemd
|
||||||
|
|
|
@ -1,15 +1,11 @@
|
||||||
- name: Install python-pip package
|
- name: Install python-pip package
|
||||||
package: name=python-pip
|
package: name=python-pip
|
||||||
state=present
|
state=present
|
||||||
tags:
|
|
||||||
- download
|
|
||||||
|
|
||||||
- name: Download statistics-consolidation with pip
|
- name: Download statistics-consolidation with pip
|
||||||
pip: name=stats-consolidation version=2.1.2
|
pip: name=stats-consolidation version=2.1.2
|
||||||
extra_args="--download {{ pip_packages_dir }}"
|
extra_args="--download {{ pip_packages_dir }}"
|
||||||
when: not {{ use_cache }} and not {{ no_network }}
|
when: internet_available
|
||||||
tags:
|
|
||||||
- download2
|
|
||||||
|
|
||||||
- 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
|
||||||
|
@ -22,8 +18,6 @@
|
||||||
- rrdtool-python
|
- rrdtool-python
|
||||||
- python-sqlalchemy
|
- python-sqlalchemy
|
||||||
- python-psycopg2
|
- python-psycopg2
|
||||||
tags:
|
|
||||||
- download
|
|
||||||
|
|
||||||
- name: Enable postgresl access by md5 method
|
- name: Enable postgresl access by md5 method
|
||||||
lineinfile: backup=yes
|
lineinfile: backup=yes
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
with_items:
|
with_items:
|
||||||
- nodejs
|
- nodejs
|
||||||
- npm
|
- npm
|
||||||
when: not {{ use_cache }} and not {{ no_network }}
|
when: internet_available
|
||||||
tags:
|
tags:
|
||||||
- download
|
- download
|
||||||
|
|
||||||
|
|
|
@ -1,38 +1,38 @@
|
||||||
# we need to install X11 and the xfce display manager
|
# we need to install X11 and the xfce display manager
|
||||||
- name: Install xfce group of packages
|
- name: Install xfce group of packages
|
||||||
shell: "yum groupinstall -y xfce"
|
shell: "yum groupinstall -y xfce"
|
||||||
when: xo_model == "none" and not {{ use_cache }} and not {{ no_network }} and ansible_distribution_version <= "20"
|
when: xo_model == "none" and internet_available and ansible_distribution_version <= "20"
|
||||||
tags:
|
tags:
|
||||||
- download
|
- download
|
||||||
|
|
||||||
- name: Install X11 group of packages
|
- name: Install X11 group of packages
|
||||||
shell: "yum groupinstall -y 'X Window system'"
|
shell: "yum groupinstall -y 'X Window system'"
|
||||||
when: xo_model == "none" and not {{ use_cache }} and not {{ no_network }} and ansible_distribution_version <= "20"
|
when: xo_model == "none" and internet_available and ansible_distribution_version <= "20"
|
||||||
tags:
|
tags:
|
||||||
- download
|
- download
|
||||||
|
|
||||||
- name: Install xfce group of packages
|
- name: Install xfce group of packages
|
||||||
shell: yum groupinstall -y "Xfce Desktop" --exclude fedora-release\*
|
shell: yum groupinstall -y "Xfce Desktop" --exclude fedora-release\*
|
||||||
when: xo_model == "none" and not {{ use_cache }} and not {{ no_network }} and ansible_distribution_version >= "21"
|
when: xo_model == "none" and internet_available and ansible_distribution_version >= "21"
|
||||||
tags:
|
tags:
|
||||||
- download
|
- download
|
||||||
|
|
||||||
- name: Install X Windows on CentOS
|
- name: Install X Windows on CentOS
|
||||||
shell: yum groupinstall -y "Server with GUI"
|
shell: yum groupinstall -y "Server with GUI"
|
||||||
when: not {{ use_cache }} and not {{ no_network }} and ansible_distribution == "CentOS"
|
when: internet_available and ansible_distribution == "CentOS"
|
||||||
tags:
|
tags:
|
||||||
- download
|
- download
|
||||||
|
|
||||||
- name: Get the teamviewer software
|
- name: Get the teamviewer software
|
||||||
get_url: url="{{ teamviewer_url }}/{{ teamviewer_rpm_file }}" dest="{{ yum_packages_dir }}/{{ teamviewer_rpm_file }}"
|
get_url: url="{{ teamviewer_url }}/{{ teamviewer_rpm_file }}" dest="{{ yum_packages_dir }}/{{ teamviewer_rpm_file }}"
|
||||||
when: not {{ use_cache }} and not {{ no_network }}
|
when: internet_available
|
||||||
tags:
|
tags:
|
||||||
- download
|
- download
|
||||||
|
|
||||||
# F22 has issues with yum localinstall exclude for now
|
# F22 has issues with yum localinstall exclude for now
|
||||||
- name: Do the install of teamviewer, pulling in any required dependencies
|
- name: Do the install of teamviewer, pulling in any required dependencies
|
||||||
shell: "yum localinstall -y {{ yum_packages_dir }}/{{ teamviewer_rpm_file }}"
|
shell: "yum localinstall -y {{ yum_packages_dir }}/{{ teamviewer_rpm_file }}"
|
||||||
when: teamviewer_install and not {{ use_cache }} and not {{ no_network }}
|
when: teamviewer_install and internet_available
|
||||||
and xo_model == "none" and ansible_distribution_version <= "21"
|
and xo_model == "none" and ansible_distribution_version <= "21"
|
||||||
|
|
||||||
- name: making local copy available
|
- name: making local copy available
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
- name: Get the WordPress software
|
- name: Get the WordPress software
|
||||||
get_url: url="{{ iiab_download_url }}/{{ wordpress_src }}" dest={{ downloads_dir}}/
|
get_url: url="{{ iiab_download_url }}/{{ wordpress_src }}" dest={{ downloads_dir}}/
|
||||||
when: not {{ use_cache }} and not {{ no_network }}
|
when: internet_available
|
||||||
tags:
|
|
||||||
- download2
|
|
||||||
|
|
||||||
- name: Copy it to permanent location /library
|
- name: Copy it to permanent location /library
|
||||||
unarchive: src={{ downloads_dir}}/{{ wordpress_src }} dest=/library
|
unarchive: src={{ downloads_dir}}/{{ wordpress_src }} dest=/library
|
||||||
|
|
|
@ -7,9 +7,7 @@
|
||||||
- python-pip
|
- python-pip
|
||||||
- nodejs
|
- nodejs
|
||||||
- npm
|
- npm
|
||||||
when: not {{ use_cache }} and not {{ no_network }}
|
when: internet_available
|
||||||
tags:
|
|
||||||
- download
|
|
||||||
|
|
||||||
- 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
|
||||||
|
@ -19,24 +17,18 @@
|
||||||
git: repo={{ xovis_repo_url }}
|
git: repo={{ xovis_repo_url }}
|
||||||
dest={{ downloads_dir }}/xovis
|
dest={{ downloads_dir }}/xovis
|
||||||
depth=1
|
depth=1
|
||||||
when: not {{ use_cache }} and not {{ no_network }} and xovis.stat.exists is defined and not xovis.stat.exists
|
when: internet_available and xovis.stat.exists is defined and not xovis.stat.exists
|
||||||
tags:
|
|
||||||
- download2
|
|
||||||
|
|
||||||
- name: download xovis python dependencies
|
- name: download xovis python dependencies
|
||||||
pip: requirements={{ downloads_dir }}/xovis/process_stats/requirements.txt
|
pip: requirements={{ downloads_dir }}/xovis/process_stats/requirements.txt
|
||||||
extra_args="--download {{ pip_packages_dir }}"
|
extra_args="--download {{ pip_packages_dir }}"
|
||||||
when: not {{ use_cache }} and not {{ no_network }}
|
when: internet_available
|
||||||
tags:
|
|
||||||
- download2
|
|
||||||
|
|
||||||
- name: Install node.js package kanso to maintain couchdb
|
- name: Install node.js package kanso to maintain couchdb
|
||||||
npm: name=kanso
|
npm: name=kanso
|
||||||
global=yes
|
global=yes
|
||||||
path={{ downloads_dir }}
|
path={{ downloads_dir }}
|
||||||
when: not {{ use_cache }} and not {{ no_network }}
|
when: internet_available
|
||||||
tags:
|
|
||||||
- download2
|
|
||||||
|
|
||||||
- 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 }}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue