mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
cleaner Ansible messaging
This commit is contained in:
parent
d3017d764c
commit
a7cf338aa9
1 changed files with 8 additions and 8 deletions
|
@ -1,4 +1,4 @@
|
|||
- name: Download the latest stable version of sugarizer from location under our control
|
||||
- name: Download the latest stable version of Sugarizer from location under our control
|
||||
get_url: url={{ iiab_download_url }}/{{ sugarizer_version }}.tar.gz
|
||||
dest={{ downloads_dir }}/{{ sugarizer_version }}.tar.gz
|
||||
|
||||
|
@ -29,12 +29,12 @@
|
|||
- nodejs
|
||||
- npm
|
||||
|
||||
# attempting to reinstall npm is broken on raspbian 9
|
||||
- name: check for sugarizer already installed
|
||||
# attempting to reinstall npm is broken on Raspbian 9
|
||||
- name: Check for Sugarizer already installed
|
||||
stat: path={{ sugarizer_location }}/sugarizer/server/node_modules
|
||||
register: npm
|
||||
|
||||
- name: set a flag to abort second attempt to install
|
||||
- name: Set a flag to abort second attempt to install
|
||||
set_fact:
|
||||
npm_exists: True
|
||||
when: npm.stat.exists is defined and npm.stat.exists
|
||||
|
@ -68,7 +68,7 @@
|
|||
chdir: "{{ sugarizer_location }}/sugarizer/server"
|
||||
when: is_F18 and not npm_exists
|
||||
|
||||
- name: enable services - All
|
||||
- name: Enable services - All
|
||||
service: name={{ item.name }}
|
||||
enabled=yes
|
||||
state=restarted
|
||||
|
@ -76,7 +76,7 @@
|
|||
- { name: sugarizer }
|
||||
when: sugarizer_enabled
|
||||
|
||||
- name: disable services - All
|
||||
- name: Disable services - All
|
||||
service: name={{ item.name }}
|
||||
enabled=no
|
||||
state=stopped
|
||||
|
@ -84,7 +84,7 @@
|
|||
- { name: sugarizer }
|
||||
when: not sugarizer_enabled
|
||||
|
||||
- name: add sugarizer to service list
|
||||
- name: Add Sugarizer to service list
|
||||
ini_file: dest='{{ service_filelist }}'
|
||||
section=sugarizer
|
||||
option='{{ item.option }}'
|
||||
|
@ -93,6 +93,6 @@
|
|||
- option: name
|
||||
value: Sugarizer
|
||||
- option: description
|
||||
value: '"The Sugar Learning Platform is a leading learning platform that began in the famous One Laptop Per Child project. Sugarizer is a web implementation of that platform"'
|
||||
value: '"The Sugar Learning Platform is a leading learning platform that began in the famous One Laptop Per Child project. Sugarizer is a web implementation of that platform."'
|
||||
- option: enabled
|
||||
value: "{{ sugarizer_enabled }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue