adoptium / infrastructure

This repo contains all information about machine maintenance.
Apache License 2.0
84 stars 100 forks source link

github: Fix latest linter errors #3616

Closed Haroon-Khel closed 1 week ago

Haroon-Khel commented 1 week ago

Using warn: False/warn=False is deprecated, which is causing linter errors FAILED! => {"changed": false, "msg": "Unsupported parameters for (ansible.legacy.command) module: warn. Supported parameters include: _raw_params, _uses_shell, argv, chdir, creates, executable, removes, stdin, stdin_add_newline, strip_empty_ends."}

inline-env-var: Command module does not accept setting environment variables inline.
ansible/playbooks/AdoptOpenJDK_AIX_Playbook/roles/yum/tasks/main.yml:70 Task/Handler: Unpack yum bundle

inline-env-var: Command module does not accept setting environment variables inline.
ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/ccache/tasks/main.yml:17 Task/Handler: Download ccache.tar.gz

For the aix yum task, the yum role is deprecated. We install dnf on 7.2+ so I am comfortable removing the warn option there. For the ccache role, running the task without the warn makes no difference to the output, so i've removed it for that task