1
0
Fork 0
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:
A Holt 2017-10-27 10:23:08 -04:00 committed by GitHub
parent d3017d764c
commit a7cf338aa9

View file

@ -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 get_url: url={{ iiab_download_url }}/{{ sugarizer_version }}.tar.gz
dest={{ downloads_dir }}/{{ sugarizer_version }}.tar.gz dest={{ downloads_dir }}/{{ sugarizer_version }}.tar.gz
@ -29,12 +29,12 @@
- nodejs - nodejs
- npm - npm
# attempting to reinstall npm is broken on raspbian 9 # attempting to reinstall npm is broken on Raspbian 9
- name: check for sugarizer already installed - name: Check for Sugarizer already installed
stat: path={{ sugarizer_location }}/sugarizer/server/node_modules stat: path={{ sugarizer_location }}/sugarizer/server/node_modules
register: npm register: npm
- name: set a flag to abort second attempt to install - name: Set a flag to abort second attempt to install
set_fact: set_fact:
npm_exists: True npm_exists: True
when: npm.stat.exists is defined and npm.stat.exists when: npm.stat.exists is defined and npm.stat.exists
@ -68,7 +68,7 @@
chdir: "{{ sugarizer_location }}/sugarizer/server" chdir: "{{ sugarizer_location }}/sugarizer/server"
when: is_F18 and not npm_exists when: is_F18 and not npm_exists
- name: enable services - All - name: Enable services - All
service: name={{ item.name }} service: name={{ item.name }}
enabled=yes enabled=yes
state=restarted state=restarted
@ -76,7 +76,7 @@
- { name: sugarizer } - { name: sugarizer }
when: sugarizer_enabled when: sugarizer_enabled
- name: disable services - All - name: Disable services - All
service: name={{ item.name }} service: name={{ item.name }}
enabled=no enabled=no
state=stopped state=stopped
@ -84,7 +84,7 @@
- { name: sugarizer } - { name: sugarizer }
when: not sugarizer_enabled when: not sugarizer_enabled
- name: add sugarizer to service list - name: Add Sugarizer to service list
ini_file: dest='{{ service_filelist }}' ini_file: dest='{{ service_filelist }}'
section=sugarizer section=sugarizer
option='{{ item.option }}' option='{{ item.option }}'
@ -93,6 +93,6 @@
- option: name - option: name
value: Sugarizer value: Sugarizer
- option: description - 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 - option: enabled
value: "{{ sugarizer_enabled }}" value: "{{ sugarizer_enabled }}"