Use "is succeeded" instead of | succeeded

This removes this deprecation warning:
[DEPRECATION WARNING]: Using tests as filters is deprecated. Instead of
using `result|succeeded` instead use `result is succeeded`. This feature
will be removed in version 2.9. Deprecation warnings can be disabled by
setting deprecation_warnings=False in ansible.cfg.
This commit is contained in:
Till Maas 2018-05-23 11:06:28 +02:00
parent 0bb66af883
commit 791d271d0b

View file

@ -43,7 +43,7 @@
register: python2_available
- command: python2 /tmp/test-unit-1/test_network_connections.py --verbose
when: python2_available | succeeded
when: python2_available is succeeded
register: python2_result
- package:
@ -53,7 +53,7 @@
register: python3_available
- command: python3 /tmp/test-unit-1/test_network_connections.py --verbose
when: python3_available | succeeded
when: python3_available is succeeded
register: python3_result
- command: python /tmp/test-unit-1/test_network_connections.py --verbose