- name: Create (or retain) the {{ celery_application_name }} log file copy: content="" dest={{ celery_log_file }} owner={{ celery_user }} group={{ celery_group }} force=no
问题是此命令意外挂起。基本上,playbook在这个命令上暂停(只是有时),然后TravisCI超时,因为在十分钟内没有进一步的日志被调用。参见示例 this failed build
我在创建或保留日志文件时是否有不正确的地方?有没有更好的方法来实现这个命令以避免挂起Ansible?
https://github.com/jcalazan/ansible-django-stack/blob/master/roles/celery/tasks/setup_supervisor.yml