Skip to content

Conversation

@justinbarclay
Copy link
Member

In previous versions of machine stats we used an outdated way of wrapping the ansible CLI. This refactor allows us to use Ansible's approved way of programmatically running Ansible, through ansible-runner.

Now, we can more easily maintain the same support for Ansible versions as ansible-runner which, as of this writing, is anything 3.10 and above.

Additionally, for convenience I've also added a --version flag command for ease of future debugging efforts.

Copy link
Contributor

@SamDesmondKing SamDesmondKing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome work, you're a magician. Like I said I'll take it for a spin later today and report back if any issues

author="Tidal",
author_email="[email protected]",
description="A simple and effective way to gather machine statistics (RAM, Storage, CPU, etc.) from virtual environment",
description="This program is now deprecated.\n\nA simple and effective way to gather machine statistics (RAM, Storage, CPU, etc.) from virtual environment",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🫗

unix/Pipfile Outdated

[packages]
ansible = "<2.10"
ansible = "<6"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

phew that's a lot of major versions

unix/Pipfile Outdated

[packages]
ansible = "<6"
ansible-core = "==2.12"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah yep I remember you talking about this

nargs="*",
)

parser.add_argument(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome 👍

@justinbarclay justinbarclay merged commit 2e94034 into master Nov 6, 2025
4 checks passed
@justinbarclay justinbarclay deleted the jb/python310-ansible-runner branch November 6, 2025 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants