diff --git a/Playbooks/hubot.yml b/Playbooks/hubot.yml index 2c93dba..0c00080 100644 --- a/Playbooks/hubot.yml +++ b/Playbooks/hubot.yml @@ -2,4 +2,5 @@ - hosts: hubot roles: + - node - hubot diff --git a/README.md b/README.md index 080c4c4..a04596d 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,9 @@ You can deploy test instance using `Vagrantfile` attached to the role. `ansible-playbook -b Playbooks/hubot.yml` +## 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. + ## XMPP Each new bot is created as a linux user with in its home path. It needs its own xmpp account. diff --git a/defaults/main.yml b/defaults/main.yml index 58f5b83..b712cd7 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -3,9 +3,7 @@ #HUBOT DEFAULT VARIABLES # used for hubot bots -hubot_nodejs_version: '14' -hubot_apt: - - nodejs +nodejs_version: '18' hubot_list: - hubot_name: myhubot1 diff --git a/tasks/installdeps.yml b/tasks/installdeps.yml deleted file mode 100644 index 24445cb..0000000 --- a/tasks/installdeps.yml +++ /dev/null @@ -1,18 +0,0 @@ ---- - -- name: '[INSTALLDEPS] - Add Nodesource apt key.' - apt_key: - url: https://keyserver.ubuntu.com/pks/lookup?op=get&fingerprint=on&search=0x1655A0AB68576280 - id: "68576280" - state: present - -- name: '[INSTALLDEPS] - Add repository for nodejs' - apt_repository: - repo: deb https://deb.nodesource.com/node_{{ hubot_nodejs_version }}.x {{ ansible_distribution_release }} main - state: present - filename: 'nodesource' - -- name: '[INSTALLDEPS] - Install dependencies' - apt: - name: "{{ hubot_apt }}" - update_cache: yes diff --git a/tasks/main.yml b/tasks/main.yml index 5bfa988..bb0d96e 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -3,9 +3,6 @@ - name: Add user include_tasks: user.yml -- name: Install and configure npm and nodejs - include_tasks: installdeps.yml - - name: Generate hubot instance include_tasks: createhubot.yml