Comments (31)
@pgporada I agree. I'm able to do it using an empty inventory in Semaphore (I named it "From Hosts File"), and adding this to the "Extra CLI Arguments":
["--inventory", "hosts",
"--limit", "some-group"]
Being able to specify a file from the git repository would allow running it as a script, as per normal ansible behaviour.
from semaphore.
Actually you can specify custom inventory. You jsut need to override the parameter -i in the task template. The last -i in the code is given the priority.
If you need override any other parameters, try to override it in task template.
With -i, you can specify a custom script located in your git playbook, the custom script will be downloaded automatically and so you can use relative path. ex: ["-i","script.sh"] and script.sh is in the directory of your playboo in git.
from semaphore.
closing this as file type of inventory allows for dynamic inventory files to be included in the source repo
from semaphore.
@here... Any updates on this?
from semaphore.
@gvenka008c No answers. Built my own Ansible Tower.
from semaphore.
@Lakshman-LD Thanks. Got any repo to clone / view your Ansible tower version?
from semaphore.
@Lakshman-LD Any updates?
from semaphore.
You can automate the API, or adjust runner.js to have dynamic inventory.
from semaphore.
Dont have any repo to share!! sorry @gvenka008c
from semaphore.
@matejkramny I updated runner.js. How can i ensure the updated script is picked up by docker?
from semaphore.
@Lakshman-LD Thanks.
from semaphore.
@gvenka008c you can re-build the image or create an image from the semaphore image, and then edit those files.. Or you can attach to the container and edit files directly, restarting the node process afterwards
from semaphore.
Dynamic inventories will be supported in version 2 of semaphore.
It is WIP in branch https://github.com/ansible-semaphore/semaphore/tree/v2
from semaphore.
Sorry guys, reassigned to v2.1 release
from semaphore.
👍
from semaphore.
Is there any update on when this feature will be available?
from semaphore.
It'll be a couple of weeks/days.
So far (in my mind) the inventory will fetch EC2 instances using an AWS key, then filter it by a regex specified by the user.
Is there more to it or just simple as that?
from semaphore.
Better would be utilizing the EC2 instance tags rather than just the instance metadata.
My preference would be to also allow instance selection by grabbing instances that are members of an Auto Scaling Group. Often instances in AWS are deployed initially as AMIs to ASGs; being able to target the ASG members would be awesome.
from semaphore.
Why not just use ec2.py instead of creating something new? or give the option of piping to it?
from semaphore.
I was expecting to be able to point at a custom inventory file as well.
from semaphore.
@theasp Fantastic idea!
from semaphore.
Beeing able to choose an inventory file from a git repository would be awesome.
from semaphore.
Jip, would love it! So far, the extra cli arguments stuff works for me.
from semaphore.
Is there anywhere a howto for someone not familiar with nodejs?
I still cannot selct AWS dynamical inventory.
Thank you in advance for your help.
from semaphore.
is this released yet? It's greyed out in 2.3.0
from semaphore.
Still grayed out in v2.4.1. I have added AWS credentials in Key Store.
from semaphore.
Hi there,
I've just installed semaphore 2.4.1 and got all excited that I could now use AWS as the inventory. But when trying to create an inventory, as @tobiasfielitz said, AWS is greyed out as an option.
Is there a configuration step I am missing which is why it is greyed out? Or is the functionality not available yet?
Thanks!
Anita
from semaphore.
@aioue @tobiasfielitz @anitakrueger It's still unchecked in the roadmap (listed there as "Remote Inventories")
from semaphore.
I think this missing feature is what's going to prevent me from using Semaphore. I'd really like to be able to point it at a custom script.
from semaphore.
Is there a way to just point a static inventory to the ansible hosts file on the server semaphore is running off? e.g. /etc/ansible/hosts
from semaphore.
I would like to try to get this feature in, via the api rather than an -i override into a 2.6.0 version
Dynamic inventory source should also allow 'none' so user can set only with cli arguments if required (to avoid empty inventory workarounds etc.....)
from semaphore.
Related Issues (20)
- Bad Key Store behavior, permissions denied when use become
- v2.9.70 Database Migration Error HOT 2
- Increase Width Of PopUp when Click On RUN
- Support Additional Types of Input Boxes at Popup before RUN
- Not possible to set working directory for a template task HOT 1
- How to add Modules?
- Edit Task Templates Disappear/Gone
- Playbook error
- Template which should run all 2 minutes is stuck in waiting since updating to 2.9.75 HOT 4
- Installing packags through requirements.txt are not on the path HOT 7
- how to use ansible built-in variables HOT 1
- Could I use UTF-8 as default character set for MySQL or others? HOT 2
- [Feature Request] A button to download for tasks outputs
- [Feature Request] Repository branch as Task's run Variable HOT 2
- Problem: DNS traffic times out over Tailscale HOT 2
- Problem: Edit and Copy of a task doesn't use task name
- Docs: Invalid download link in 'Installation' section
- Problem: ModuleNotFoundError: No module named 'ansible' HOT 1
- Problem: Not possible to edit task template after restoring project HOT 3
- Problem: Fails to find the playbook in the cloned repository
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from semaphore.