Browse Source

Fix ansible deprecation warnings

===
[DEPRECATION WARNING]: Using tests as filters is deprecated.
Instead of using `result|search` use `result is search`. This
feature will be removed in version 2.9.
===

Change-Id: Ia837837e76bb25cf6e5d48e4612128fc58668e62
Jonathan Rosser 4 months ago
parent
commit
0f23dc604a
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      tasks/galera_install_apt.yml
  2. 1
    1
      tasks/galera_setup.yml

+ 1
- 1
tasks/galera_install_apt.yml View File

@@ -84,7 +84,7 @@
84 84
   apt:
85 85
     update_cache: yes
86 86
   when:
87
-    - add_galera_repo | changed or add_percona_repo  is changed
87
+    - add_galera_repo is changed or add_percona_repo is changed
88 88
   register: update_apt_cache
89 89
   until: update_apt_cache is success
90 90
   retries: 5

+ 1
- 1
tasks/galera_setup.yml View File

@@ -59,7 +59,7 @@
59 59
   command: "/usr/bin/mysql_upgrade"
60 60
   register: galera_mysql_upgrade
61 61
   changed_when:
62
-    - not galera_mysql_upgrade.stdout | search("already upgraded")
62
+    - not galera_mysql_upgrade.stdout is search("already upgraded")
63 63
   until: galera_mysql_upgrade is success
64 64
   retries: 3
65 65
   delay: 10

Loading…
Cancel
Save