Get rid of deprecation warnings #34

Open
opened 2021-05-18 18:33:11 +00:00 by lukas · 0 comments
Owner

There are currently these:

[WARNING]: Platform linux on host default is using the discovered Python
interpreter at /usr/bin/python, but future installation of another Python
interpreter could change the meaning of that path. See https://docs.ansible.com
/ansible/2.11/reference_appendices/interpreter_discovery.html for more
information.
[DEPRECATION WARNING]: The container_default_behavior option will change its 
default value from "compatibility" to "no_defaults" in community.docker 2.0.0. 
To remove this warning, please specify an explicit value for it now. This 
feature will be removed from community.docker in version 2.0.0. Deprecation 
warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
[DEPRECATION WARNING]: Please note that the default value for `network_mode` 
will change from not specified (which is equal to `default`) to the name of the
 first network in `networks` if `networks` has at least one entry and 
`networks_cli_compatible` is `true`. You can change the behavior now by 
explicitly setting `network_mode` to the name of the first network in 
`networks`, and remove this warning by setting `network_mode` to `default`. 
Please make sure that the value you set to `network_mode` equals the inspection
 result for existing containers, otherwise the module will recreate them. You 
can find out the correct value by running "docker inspect --format 
'{{.HostConfig.NetworkMode}}' <container_name>". This feature will be removed 
from community.docker in version 2.0.0. Deprecation warnings can be disabled by
 setting deprecation_warnings=False in ansible.cfg.
There are currently these: ``` [WARNING]: Platform linux on host default is using the discovered Python interpreter at /usr/bin/python, but future installation of another Python interpreter could change the meaning of that path. See https://docs.ansible.com /ansible/2.11/reference_appendices/interpreter_discovery.html for more information. ``` ``` [DEPRECATION WARNING]: The container_default_behavior option will change its default value from "compatibility" to "no_defaults" in community.docker 2.0.0. To remove this warning, please specify an explicit value for it now. This feature will be removed from community.docker in version 2.0.0. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ``` ``` [DEPRECATION WARNING]: Please note that the default value for `network_mode` will change from not specified (which is equal to `default`) to the name of the first network in `networks` if `networks` has at least one entry and `networks_cli_compatible` is `true`. You can change the behavior now by explicitly setting `network_mode` to the name of the first network in `networks`, and remove this warning by setting `network_mode` to `default`. Please make sure that the value you set to `network_mode` equals the inspection result for existing containers, otherwise the module will recreate them. You can find out the correct value by running "docker inspect --format '{{.HostConfig.NetworkMode}}' <container_name>". This feature will be removed from community.docker in version 2.0.0. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ```
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ansible/homelab#34
No description provided.