Skip to content

Commit 8ecf6b4

Browse files
committed
Merge branch 'feature/ansible-2.10'
2 parents bbc5999 + dc6440b commit 8ecf6b4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ services:
1212
addons:
1313
postgresql: "9.6"
1414
env:
15-
- ANSIBLE_VERSION='~=2.9.0'
15+
- ANSIBLE_VERSION='~=2.10.0'
1616
matrix:
1717
fast_finish: true
1818
# FIXME: Ansible 2.10.x going through major restructuring.
@@ -42,8 +42,8 @@ script:
4242
- ansible-playbook -i inventory deploy.yml
4343
- 'ANSIBLE_STDOUT_CALLBACK=debug ANSIBLE_DISPLAY_SKIPPED_HOSTS=no ANSIBLE_DISPLAY_OK_HOSTS=no
4444
unbuffer ansible-playbook -vvi inventory deploy.yml &>play.log; printf "Idempotence: ";
45-
grep -A1 "PLAY RECAP" play.log | grep -qP "changed=0 .*failed=0 .*"
46-
&& (echo "PASS"; exit 0) || (echo "FAIL"; cat play.log; exit 1)'
45+
sed -ne "/PLAY RECAP/,/^$/{/PLAY RECAP/d;/^$/d;p}" /tmp/h | grep -vqP "changed=0 .*failed=0 .*"
46+
&& (echo "FAIL"; cat play.log; exit 1) || (echo "PASS"; exit 0)'
4747
- ANSIBLE_STDOUT_CALLBACK=debug ansible-playbook -i inventory -v test.yml
4848
notifications:
4949
webhooks:

0 commit comments

Comments
 (0)