Comments (6)
If the plugin is being run from Morpheus, it will use morpheus['morpheus']['applianceUrl']
and morpheus['morpheus']['apiAccessToken']
. If you add -vv
to the command options for the ansible task, it will output Using ephemeral Morpheus token from Morpheus task
to let you know that it's found and is using the token.
from ansible-collection-morpheus-core.
It seems like the task isn't picking up the token nor the appliance url, even though it says so with the -vv flag, it fails because no hosts are matched, though it does work if you supply url and token.
from ansible-collection-morpheus-core.
Even weirder is when I supply the url and token in our test environment, it seems to be reading the wrong appliance_url, and targeting production, so I'm not sure if that has something to do with how our test environment was created(DB copy), or something else.
from ansible-collection-morpheus-core.
There's something odd about the environment in that case. If you run an ansible task and debug the morpheus
var, you will see what the plugin should be using.
from ansible-collection-morpheus-core.
Okay, so it works fine when run as a task, but not when run as a workflow, anything you're able to reproduce perhaps?
from ansible-collection-morpheus-core.
I've run a test with the plugin using the api key supplied by morpheus. I'm using an operational workflow. I was getting a bad token error, but it only happened once, and I haven't been able to reproduce it. Perhaps you'll have better luck. I inserted 2 lines before line 78 in morpheus_inventory.py
:
self.print_verbose_message(self.extravars['morpheus']['morpheus'])
self.print_verbose_message(returned_v)
That will show you the ephemeral token the task is being given, as well as any error from the version query, which is the first time the plugin tries to use the token.
from ansible-collection-morpheus-core.
Related Issues (20)
- No hosts fetched HOT 11
- Update distutils.Looseversion to packaging.version.parse
- Running job on master tenant to subtenant hosts HOT 1
- Implement proper API result paging
- Verbose output
- f-string not supported in python 2
- settings role not working
- Remove debug message from virtualimages role
- Fix flake8 warnings for v0.2.2
- Morpheus task API key not used when running from Morpheus task
- App searchtype not working Morpheus 5.4.3
- Change choices for FQCN compatibility
- Failed to parse morpheusinv.yml with auto plugin: HOT 1
- Target instances only if the status is running
- Issues with fetching hosts on 0.2.3 HOT 11
- Adding further modules HOT 2
- Bump Minimum Ansible Core version to 2.15 HOT 3
- Can't set OS type in virtual images
- Morpheus 5.4.3 requires login for version info, update inventory plugin
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 ansible-collection-morpheus-core.