mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Update main.yml
This commit is contained in:
parent
995f7e7630
commit
0ca4f33525
1 changed files with 3 additions and 8 deletions
|
@ -38,11 +38,6 @@
|
||||||
force: yes
|
force: yes
|
||||||
when: internet_available
|
when: internet_available
|
||||||
|
|
||||||
#- name: Move /opt/iiab/sugarizer-server to /opt/iiab/{{ sugarizer_server_version }}
|
|
||||||
# command: mv "{{ sugarizer_location }}/sugarizer-server" "{{ sugarizer_location }}/{{ sugarizer_server_version }}"
|
|
||||||
# args:
|
|
||||||
# creates: "{{ sugarizer_location }}/{{ sugarizer_server_version }}"
|
|
||||||
|
|
||||||
- name: Create symbolic link /opt/iiab/sugarizer-server -> /opt/iiab/{ sugarizer_server_version }}
|
- name: Create symbolic link /opt/iiab/sugarizer-server -> /opt/iiab/{ sugarizer_server_version }}
|
||||||
file:
|
file:
|
||||||
src: "{{ sugarizer_location }}/{{ sugarizer_server_version }}"
|
src: "{{ sugarizer_location }}/{{ sugarizer_server_version }}"
|
||||||
|
@ -51,7 +46,7 @@
|
||||||
|
|
||||||
# 3. INSTALL A GOOD VERSION OF Node.js AND npm
|
# 3. INSTALL A GOOD VERSION OF Node.js AND npm
|
||||||
|
|
||||||
# Both Raspbian and Debian 9 STILL need this approach as of 2018-07-11,
|
# Both Raspbian and Debian 9 STILL need this approach as of July 2018,
|
||||||
# as documented at https://github.com/iiab/iiab/issues/798#issuecomment-404324530
|
# as documented at https://github.com/iiab/iiab/issues/798#issuecomment-404324530
|
||||||
- name: Set up Node.js 8.x apt sources (debuntu but avoid ubuntu-18)
|
- name: Set up Node.js 8.x apt sources (debuntu but avoid ubuntu-18)
|
||||||
shell: curl -sL https://deb.nodesource.com/setup_8.x | bash -
|
shell: curl -sL https://deb.nodesource.com/setup_8.x | bash -
|
||||||
|
@ -85,7 +80,7 @@
|
||||||
|
|
||||||
# 4. RUN "npm install" TO POPULATE ~35MB /opt/iiab/sugarizer-server/node_modules
|
# 4. RUN "npm install" TO POPULATE ~35MB /opt/iiab/sugarizer-server/node_modules
|
||||||
|
|
||||||
# re-running "npm install" fails on Raspbian 9
|
# Re-running "npm install" fails on Raspbian 9 if not other OS's
|
||||||
- name: Check for Sugarizer already installed
|
- name: Check for Sugarizer already installed
|
||||||
stat:
|
stat:
|
||||||
path: "{{ sugarizer_location }}/{{ sugarizer_server_version }}/node_modules"
|
path: "{{ sugarizer_location }}/{{ sugarizer_server_version }}/node_modules"
|
||||||
|
@ -125,7 +120,7 @@
|
||||||
- { src: 'sugarizer.ini', dest: '{{ sugarizer_location }}/{{ sugarizer_server_version }}/env/sugarizer.ini', mode: '0644' }
|
- { src: 'sugarizer.ini', dest: '{{ sugarizer_location }}/{{ sugarizer_server_version }}/env/sugarizer.ini', mode: '0644' }
|
||||||
- { src: 'sugarizer.conf', dest: '/etc/apache2/sites-available', mode: '0644' }
|
- { src: 'sugarizer.conf', dest: '/etc/apache2/sites-available', mode: '0644' }
|
||||||
|
|
||||||
- name: Create symlink enabling short URL http://box/sugarizer
|
- name: Create symlink for short URL http://box/sugarizer
|
||||||
file:
|
file:
|
||||||
src: /etc/apache2/sites-available/sugarizer.conf
|
src: /etc/apache2/sites-available/sugarizer.conf
|
||||||
dest: /etc/apache2/sites-enabled/sugarizer.conf
|
dest: /etc/apache2/sites-enabled/sugarizer.conf
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue