-
I am trying use Semaphore to run playbooks against EC2 instances. I am using the Semaphore Docker image and I have augmented it with the AWS CLI, Boto3 and the AWS session manager plugin. I can run playbooks with dynamic inventory from a shell in the container but the same play does not work if launched from the UI. Here is an example output from the UI
Here is an example of a shell session
I've spent quite a lot of time looking at this today, I feel I am quite close to having it work but I can't find what the problem is. I suspect a difference between the environments in which I have also tried a play with static inventory and that works fine, the same from UI and shell. Everything is identical excpet the inventory file, which is yaml. So I am pretty sure that the only issue is the EC2 dynamic inventory plugin not invoking correctly or with the correct environment. Any ideas would be appreciated, ways to troubleshoot further, etc. I wanted to increase the Logger output of Semaphore but could not work out how to do it, despite having my nose in the code all afternoon. Go isn't my thing, aparently ;) It'd be great to hear thoughts / get some pointers. I'd love to get this working. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hello, try to run the task with |
Beta Was this translation helpful? Give feedback.
Hello, try to run the task with
-vvvv
option, you're probably missing permissionsec2:DescribeInstances
, I've just run into this problem.