Merge "Fix minor Ansible syntax"

This commit is contained in:
Zuul 2019-01-19 05:08:02 +00:00 committed by Gerrit Code Review
commit c20484c062
1 changed files with 6 additions and 3 deletions

View File

@ -16,7 +16,10 @@
shell: 'docker exec keystone_cron crontab -l -u keystone |grep -v "^#"'
register: cron_result
changed_when: False
-
name: Check keystone crontab
fail: msg="keystone token_flush does not appear to be enabled via cron. You should add '<desired interval > {{ cron_check }}' to the keystone users crontab."
- name: Check keystone crontab
fail:
msg: >-
keystone token_flush does not appear to be enabled via cron. You should
add '<desired interval > {{ cron_check }}' to the keystone users
crontab.
failed_when: "cron_check not in cron_result.stdout"