StackStorm / ansible-st2

Ansible Roles and Playbooks to deploy StackStorm
https://galaxy.ansible.com/StackStorm/stackstorm/
Apache License 2.0
100 stars 75 forks source link

Installation fails on Ubuntu Focal 20.04.3 #304

Closed mamercad closed 2 years ago

mamercad commented 2 years ago

Fresh installation of Focal (minimal) yields:

TASK [StackStorm.mongodb : apt | Add mongodb key] ********************************************************************************************
FAILED - RETRYING: [stackstorm]: apt | Add mongodb key (5 retries left).
FAILED - RETRYING: [stackstorm]: apt | Add mongodb key (4 retries left).
FAILED - RETRYING: [stackstorm]: apt | Add mongodb key (3 retries left).
FAILED - RETRYING: [stackstorm]: apt | Add mongodb key (2 retries left).
FAILED - RETRYING: [stackstorm]: apt | Add mongodb key (1 retries left).
fatal: [stackstorm]: FAILED! => {"attempts": 5, "changed": false, "msg": "Failed to find required executable \"gpg\" in paths: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"}
mamercad commented 2 years ago

After installing gpg, fails with:

TASK [StackStorm.st2 : Ensure StackStorm services are enabled and running] *****************************************************************
fatal: [stackstorm]: FAILED! => {"msg": "Invalid data passed to 'loop', it requires a list, got this instead: ['st2actionrunner', 'st2garbagecollector', 'st2notifier', 'st2rulesengine', 'st2sensorcontainer', 'st2api', 'st2stream', 'st2auth'] + ['st2scheduler'] + ['st2workflowengine'] + ['st2timersengine']. Hint: If you passed a list/dict of just one element, try adding wantlist=True to your lookup invocation or use q/query instead of lookup."}
b2ag commented 2 years ago

What about the second problem? I ran into the same issue. What looks to be a list might actually be a string judging by the '[...] + [...]' in there. So a previous step might have converted those lists to a string or something. I'm an ansible noob so sorry for no PR.

EDIT: Had tag v3.1.0 checked out. Issue seems to be fixed in master.