This repository was archived by the owner on Feb 13, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 641
This repository was archived by the owner on Feb 13, 2023. It is now read-only.
Deprecation warnings from Ansible if running Ansible 2.4+ #1553
Copy link
Copy link
Closed
Description
Issue Type
- Bug Report
Full console output
[DEPRECATION WARNING]: The use of 'include' for tasks has been deprecated. Use
'import_tasks' for static inclusions or 'include_tasks' for dynamic inclusions.
This feature will be removed in a future release. Deprecation warnings can be
disabled by setting deprecation_warnings=False in ansible.cfg.
[DEPRECATION WARNING]: include is kept for backwards compatibility but usage is
discouraged. The module documentation details page may explain more about this
rationale.. This feature will be removed in a future release. Deprecation
warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
[DEPRECATION WARNING]: The use of 'static' has been deprecated. Use
'import_tasks' for static inclusion, or 'include_tasks' for dynamic inclusion.
This feature will be removed in a future release. Deprecation warnings can be
disabled by setting deprecation_warnings=False in ansible.cfg.
[WARNING]: file /Users/jeff.geerling/Dropbox/Development/GitHub/drupal-
vm/provisioning/roles/geerlingguy.apache-php-fpm/tasks/configure-RedHat.yml is
empty and had no tasks to include
Summary
There are a few warnings that occur when running Drupal VM's playbook under Ansible 2.4.0+ (released today):
[defaults]hostfile option, The key is misleading as it can also be a list of hosts, a directory or a list of paths . This feature will be removed in version 2.8.(This was from my own ansible.cfg file, not Drupal VM's—fix is to switchhostfile
toinventory
under the[defaults]
section inansible.cfg
.)- The use of 'include' for tasks has been deprecated. Use 'import_tasks' for static inclusions or 'include_tasks' for dynamic inclusions. This feature will be removed in a future release. (same with 'static)
(And in Ansible 2.5+) [DEPRECATION WARNING]: State 'installed' is deprecated. Using state 'present' instead.. This feature will be removed in version 2.9.Fixed.
It looks like we're hitting a chicken-and-egg issue again (like with 2.0->2.2) where something is deprecated, but if I fix it, then anyone using < 2.4.0 will not be able to run the playbook. So do I force everyone everywhere to upgrade to 2.4.0 now, or do I wait and live with the deprecation warnings... And the inevitable slew of issues people will report saying "Drupal VM is broken, it is scary, make these warnings go away!"
Roles to update for include
deprecation
- franklinkim.newrelic (need to submit a PR upstream)
- geerlingguy.varnish
- geerlingguy.apache
- geerlingguy.mysql
- geerlingguy.php
- geerlingguy.postgresql
- geerlingguy.blackfire
- geerlingguy.composer
- geerlingguy.elasticsearch
- geerlingguy.java
- geerlingguy.drupal
- geerlingguy.drush
- geerlingguy.firewall
- geerlingguy.nodejs
- geerlingguy.php-redis
- geerlingguy.php-tideways
- geerlingguy.php-versions
- geerlingguy.php-xhprof
- geerlingguy.redis
- geerlingguy.ruby
- geerlingguy.security
joemaller