Skip to content

Args warn is deprecated for newer Ansible#609

Merged
otakup0pe merged 2 commits intoANXS:masterfrom
triviadata:fix/cmd-warn-removed
Apr 19, 2026
Merged

Args warn is deprecated for newer Ansible#609
otakup0pe merged 2 commits intoANXS:masterfrom
triviadata:fix/cmd-warn-removed

Conversation

@matus-cuper
Copy link
Copy Markdown

In Ansible

$ ansible --version
ansible [core 2.17.4]

Postgres Initialization is failing https://github.com/triviadata/ansible-postgresql/blob/master/tasks/configure.yml#L154 with error


TASK [anxs.postgresql : PostgreSQL | Initialize the database | RedHat] *******************************************************************************************************
fatal: [my-pg-server]: FAILED! => {"changed": false, "msg": "Unsupported parameters for (ansible.legacy.command) module: warn. Supported parameters include: _raw_params, _uses_shell, argv, chdir, creates, executable, expand_argument_vars, removes, stdin, stdin_add_newline, strip_empty_ends."}

The args.warn parameter was deprecated in Ansible 2.13 and removed in Ansible 2.14 for both ansible.builtin.shell and ansible.builtin.command, it can be safely removed.

@otakup0pe
Copy link
Copy Markdown
Member

Conceptually fine with this, and bumping minimum ansible to 2.13 unless @MrMegaNova objects....

Copy link
Copy Markdown

@flotho flotho left a comment

Choose a reason for hiding this comment

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

easy code revie
LGTM

@otakup0pe
Copy link
Copy Markdown
Member

sure why not heh. i will try and get galaxy to pull too.

@otakup0pe otakup0pe merged commit 672d19e into ANXS:master Apr 19, 2026
5 checks passed
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