mesaguy / ansible-prometheus

Ansible role for the management of Prometheus software and Prometheus exporters
https://galaxy.ansible.com/mesaguy/prometheus
MIT License
71 stars 31 forks source link

Unsupported parameter for "command" module #45

Open fabricat-mdb opened 1 year ago

fabricat-mdb commented 1 year ago

The Find {{ prometheus_software_name_version }} archive contents task fails with the following error:

FAILED! => {
  "changed": false,
  "msg": "Unsupported parameters for (ansible.legacy.command) module: warn. Supported parameters include: _uses_shell, strip_empty_ends, executable, _raw_params, removes, stdin_add_newline, stdin, argv, creates, chdir."}

The unsupported parameter is warn here: https://github.com/mesaguy/ansible-prometheus/blob/c70442500bdd374fb2beecc70b2eb63954eaf877/tasks/_install_from_binary.yml#L155-L159