Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

Role doesn't work with Ansible 7.0.0 #276

Closed
gygitlab opened this issue Nov 25, 2022 · 5 comments
Closed

Role doesn't work with Ansible 7.0.0 #276

gygitlab opened this issue Nov 25, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@gygitlab
Copy link

gygitlab commented Nov 25, 2022

Hey. Looks like the role doesn't support Ansible 7.0.0 due to the following shell deprecation:

TASK [cloudalchemy.node_exporter : Gather currently installed node_exporter version (if any)] **********************************************************************************************
fatal: [node-1]: FAILED! => changed=false
  msg: 'Unsupported parameters for (ansible.legacy.command) module: warn. Supported parameters include: _raw_params, executable, strip_empty_ends, stdin_add_newline, creates, chdir, removes, stdin, _uses_shell, argv.'
@gygitlab gygitlab added the bug Something isn't working label Nov 25, 2022
@piyoki
Copy link

piyoki commented Dec 5, 2022

I am underging the same issue. Any solutions available?

@nono-lqdn
Copy link

You can just remove the part with

  args:
     warn: false

and replace it with a ignore_errors : false

This is because we are, in the task with the name "[ansible-node-exporter : Gather currently installed node_exporter version (if any)] ", we are trying to execute a shell command that might not exist. Thus we need to ignore errors.

@nono-lqdn
Copy link

I've pushed the fix I've applied locally.

@vladget
Copy link

vladget commented Feb 28, 2023

+1

@SuperQ
Copy link
Collaborator

SuperQ commented Mar 6, 2023

This role has been deprecated in favor of a the prometheus-community/ansible collection.

@SuperQ SuperQ closed this as completed Mar 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants