diff --git a/Playbooks/kuma.yml b/Playbooks/kuma.yml index 8c8ffcd..5898db9 100644 --- a/Playbooks/kuma.yml +++ b/Playbooks/kuma.yml @@ -2,4 +2,5 @@ - hosts: kuma roles: + - node - kuma diff --git a/README.md b/README.md index 4942c50..2408e22 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,9 @@ Then you can then access forgejo from your computer on `http://192.168.33.44:300 The first user you create becomes the admin. +## Playbook +The playbook includes node role and deploys entire stack needed to run hubot. Additional role is also available in the Ansible roles repos in git. + ## Tags You can use tags when you deploy: diff --git a/defaults/main.yml b/defaults/main.yml index 44434a3..f8bcf78 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,6 +1,7 @@ --- + #node -nodejs_version: '16' +nodejs_version: '18' #User kuma_username: 'kuma' @@ -9,7 +10,4 @@ kuma_homedir: '/opt/kuma' kuma_app_dir: '{{ kuma_homedir }}/app' kuma_version: '1.23.11' -kuma_pkg: - - nodejs -kuma_node_version: '18' kuma_pm2_binpath: '/usr/bin/pm2' diff --git a/tasks/installdeps.yml b/tasks/installdeps.yml index c94c9bf..92d7202 100644 --- a/tasks/installdeps.yml +++ b/tasks/installdeps.yml @@ -1,21 +1,5 @@ --- -- name: "[INSTALLDEPS] - Add nodejs apt key" - apt_key: - url: https://deb.nodesource.com/gpgkey/nodesource.gpg.key - state: present - -- name: "[INSTALLDEPS] - Add nodejs source" - apt_repository: - repo: "deb https://deb.nodesource.com/node_{{ kuma_node_version }}.x {{ ansible_distribution_release }} main" - update_cache: yes - -- name: "[INSTALLDEPS] - Install Dependencies" - apt: - name: "{{ kuma_pkg }}" - update_cache: yes - state: latest - - name: '[INSTALLDEPS] - Install PM2' npm: name: 'pm2'