Skip to content

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.

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.

1 participant