Skip to content

Conversation

@ronardcaktus
Copy link
Member

Issue

Ansible deployments are failing because of a faulty config. We first noticed it on GP, so this PR fixes it to avoid running into the same error.
The version of Django is also updated to the latest.

More on the failure and fix

cd deploy/ && ansible-playbook deploy.yml -l staging -e k8s_container_image_tag=develop-tag# Warning: : Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. [DEPRECATION WARNING]: DEFAULT_UNDEFINED_VAR_BEHAVIOR option. Reason: This option is no longer used in the Ansible Core code base. Alternatives: There is no alternative at the moment. A different mechanism would have to be implemented in the current code base. This feature will be removed from ansible-core version 2.23.

Error: : The 'community.general.yaml' callback plugin has been removed. The plugin has been superseded by the option result_format=yaml in callback plugin ansible.builtin.default from ansible-core 2.13 onwards. This feature was removed from collection 'community.general' version 12.0.0.
Error: Process completed with exit code 1.

https://forum.ansible.com/t/ansible-yaml-output-community-general-yaml-has-been-deprecated/39480/9

and

https://docs.ansible.com/projects/ansible/latest/collections/ansible/builtin/default_callback.html#parameter-result_format

Removing error_on_undefined_vars to quiet the deprecation warning, since it isn't supported any more.

@copelco copelco merged commit 5f45884 into develop Dec 10, 2025
1 check passed
@copelco copelco deleted the fix-ansible-deployment branch December 10, 2025 15:11
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