Skip to content

Args warn is deprecated for newer Ansible#609

Open
matus-cuper wants to merge 2 commits intoANXS:masterfrom
triviadata:fix/cmd-warn-removed
Open

Args warn is deprecated for newer Ansible#609
matus-cuper wants to merge 2 commits intoANXS:masterfrom
triviadata:fix/cmd-warn-removed

Conversation

@matus-cuper
Copy link

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
Member

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

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.

2 participants