Browse Source

Fix usage of "|" for tests

With the more recent versions of ansible, we should now use
"is" instead of the "|" sign for the tests.

This should fix it.

Change-Id: Ie5d46021a433be3bf40243546ca1e10f05e2fe8e
Jean-Philippe Evrard 9 months ago
parent
commit
be6bbec459
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      tests/test-install-mongodb.yml

+ 2
- 2
tests/test-install-mongodb.yml View File

@@ -40,7 +40,7 @@
40 40
         name: mongodb
41 41
         state: restarted
42 42
       when:
43
-        - mongodb_bind | changed or mongodb_smallfiles | changed
43
+        - mongodb_bind | changed or mongodb_smallfiles  is changed
44 44
       register: mongodb_restart
45 45
     - name: Wait for mongodb to come back online after the restart
46 46
       wait_for:
@@ -50,7 +50,7 @@
50 50
         timeout: 30
51 51
       when:
52 52
         - mongodb_restart is defined
53
-        - mongodb_restart | changed
53
+        - mongodb_restart  is changed
54 54
     - name: Test mongodb connectivity
55 55
       command: "mongo --host 10.100.100.2 --eval ' '"
56 56
       changed_when: False

Loading…
Cancel
Save