replace nodejs task by role (#23)
WIP as node role PR need to be merged first Co-authored-by: muppeth <muppeth@no-reply@disroot.org> Reviewed-on: #23 Reviewed-by: muppeth <muppeth@no-reply@disroot.org>
This commit is contained in:
parent
0fedce36a6
commit
292c04cbc0
4 changed files with 5 additions and 15 deletions
|
@ -3,6 +3,7 @@
|
|||
- hosts: etherpad
|
||||
roles:
|
||||
- mariadb
|
||||
- node
|
||||
- etherpad
|
||||
|
||||
vars_files:
|
||||
|
|
|
@ -12,7 +12,7 @@ Then you can access etherpad from your computer on http://192.168.33.8:9001
|
|||
|
||||
|
||||
## Playbook
|
||||
The playbook includes mariadb role and deploys entire stack needed to run Etherpad-lite. Additional role is also available in the Ansible roles repos in git.
|
||||
The playbook includes mariadb and node roles and deploys entire stack needed to run Etherpad-lite. Additional roles are also available in the Ansible roles repos in git.
|
||||
|
||||
## Tags
|
||||
You can use tags when you deploy:
|
||||
|
|
|
@ -51,12 +51,13 @@ etherpad_smtp_host: 'localhost'
|
|||
etherpad_smtp_port: '587'
|
||||
etherpad_smtp_user: 'support'
|
||||
etherpad_smtp_pass: 'changeme'
|
||||
etherpad_nodejs_version: '21'
|
||||
etherpad_apt:
|
||||
- curl
|
||||
- nodejs
|
||||
- git
|
||||
|
||||
# Nodejs
|
||||
nodejs_version: '21'
|
||||
|
||||
etherpad_admin_page: 'true' # set to something else if you don't want to build admin page
|
||||
|
||||
etherpad_plugins_list: # set to "removed" if you want to remove à plugin
|
||||
|
|
|
@ -1,17 +1,5 @@
|
|||
---
|
||||
|
||||
- name: '[INSTALL] - Add Nodesource apt key.'
|
||||
apt_key:
|
||||
url: https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key
|
||||
state: present
|
||||
|
||||
- name: '[INSTALLDEPS] - Add repository for nodejs'
|
||||
apt_repository:
|
||||
repo: deb https://deb.nodesource.com/node_{{ etherpad_nodejs_version }}.x nodistro main
|
||||
state: present
|
||||
update_cache: yes
|
||||
filename: 'nodesource'
|
||||
|
||||
- name: '[INSTALLDEPS] - Install dependencies'
|
||||
apt:
|
||||
name: "{{ etherpad_apt }}"
|
||||
|
|
Loading…
Reference in a new issue