bennojoy / mysql

ansible role for mysql
150 stars 137 forks source link

Deprecation warnings #40

Open maccadia opened 6 years ago

maccadia commented 6 years ago

Hi,

If you have some time, could you fix the deprecated syntax (I'm running Ansible 2.6.1) :

TASK [mysql : Install the mysql packages in Debian derivatives] ***********************************************************************************************************************************************************************************************
[DEPRECATION WARNING]: State 'installed' is deprecated. Using state 'present' instead.. This feature will be removed in version 2.9. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
TASK [mysql : Ensure the hostname entry for master is available for the client.] ******************************************************************************************************************************************************************************
[DEPRECATION WARNING]: Using tests as filters is deprecated. Instead of using `result|failed` use `result is failed`. This feature will be removed in version 2.9. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
TASK [mysql : Get the current master servers replication status] **********************************************************************************************************************************************************************************************
[DEPRECATION WARNING]: Using tests as filters is deprecated. Instead of using `result|failed` use `result is failed`. This feature will be removed in version 2.9. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
TASK [mysql : Change the master in slave to start the replication] ********************************************************************************************************************************************************************************************
[DEPRECATION WARNING]: Using tests as filters is deprecated. Instead of using `result|failed` use `result is failed`. This feature will be removed in version 2.9. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.

No hurry though, syntax will be dropped in Ansible 2.9.

Thank you for the this clean role.