ansible-role-degoss | Ansible role for installing , running , and removing Goss | DevOps library
kandi X-RAY | ansible-role-degoss Summary
kandi X-RAY | ansible-role-degoss Summary
An Ansible role for installing, running, and removing Goss from a system without leaving any traces.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Executes the tests
- Execute the test cases
- Install the Goss binary
- Deserialize value into a dictionary
- Clean up Goss
- Logs the module or goss execution
- Make a HTTP request
- Return the URL of the release
- Version of the request
- Get the latest Goss version
- Fires a result if it fails
- Pretty print a task result
- Print task result
- Invoked when a result is failed
- Calls v2 runner on success
ansible-role-degoss Key Features
ansible-role-degoss Examples and Code Snippets
Community Discussions
Trending Discussions on ansible-role-degoss
QUESTION
As evidenced here, I have noticed a strange new behavior in Ansible.
I have an Ansible role named "degoss" which installs Goss along with some test files to a system, executes the tests, and then removes all traces of them. I'm using a callback plugin to format the output and a custom module to invoke Goss.
When tests fail, rather than getting sensible output, in newer versions of Ansible (around 2.3 as far as I can tell), I get the following unintuitive error message and no output whatsoever from my plugin:
...ANSWER
Answered 2017-Sep-18 at 21:08Here's a guess:
ansible's callback plugin loader creates a module in ansible.plugins.callback
which happens to also contain a json module. When your callback plugin imports json you get ansible.plugins.callback.json
, which doesn't contain dumps
. You can fix this by adding from __future__ import absolute_import
to your plugin.
The reason you can't reproduce it might be that you're using Python 3 locally, which defaults to absolute imports.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ansible-role-degoss
You can use ansible-role-degoss like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page