1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00
* 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:
georgejhunt 2017-06-29 10:48:41 -07:00 committed by GitHub
parent 4462652deb
commit 30f4dfc1af
39 changed files with 50 additions and 232 deletions

View file

@ -6,8 +6,6 @@
- python-psycopg2
- php-pgsql
when: not is_debuntu
tags:
- download
- name: Install moodle required packages
package: name={{ item }}
@ -20,16 +18,11 @@
- php{{ php_version }}-gd
# - php-mbstring --perhaps debian libapache2-mod-php
when: is_debuntu
tags:
- download
- name: Determine if moodle is already downloaded
stat: path={{ moodle_base }}/config-dist.php
register: moodle
- debug: var=moodle
- debug: var=no_network
- name: Download the latest moodle repo
git: repo={{ moodle_repo_url }}
dest={{ moodle_base }}
@ -37,9 +30,7 @@
force=yes
version="MOODLE_{{ moodle_version }}_STABLE"
# ignore_errors: yes
when: not {{ use_cache }} and not {{ no_network }} and moodle.stat.exists is defined and not moodle.stat.exists
tags:
- download2
when: internet_available and moodle.stat.exists is defined and not moodle.stat.exists
- name: Prepare the downloaded directory so apache can install config file
file: path={{ moodle_base }}